mes/libc/include
Jan Nieuwenhuizen 45ce77df85 core: Add current-output-port, open-output-file, set-current-output-port.
* libc/include/fcntl.h: Declare it.  Add some fcntl defines.
* libc/include/stdio.h: Remove fcntl defines, Declare g_stdout.
* module/language/c99/compiler.mes (c99-input->ast): Define O_WRONLY, O_RDWR.
* module/mes/guile.mes (with-output-to-file, with-output-to-port): New functions.
* src/posix.c (current_output_port, open_output_file,
  set_current_output_port): New functions.
* libc/mlibc.c (open): Add optional mode parameter.
* module/mes/libc-i386.mes (i386:open): Forward third parameter.
* scaffold/mini-mes.c (main): Init g_stdout.
* src/mes.c (main): Likewise.
2017-05-19 06:56:47 +02:00
..
assert.h mescc: Support regular C99 compile, headers + mlibc. 2017-05-02 23:30:46 +02:00
ctype.h mescc: Support regular C99 compile, headers + mlibc. 2017-05-02 23:30:46 +02:00
errno.h mescc: Support regular C99 compile, headers + mlibc. 2017-05-02 23:30:46 +02:00
fcntl.h core: Add current-output-port, open-output-file, set-current-output-port. 2017-05-19 06:56:47 +02:00
limits.h mescc: Support regular C99 compile, headers + mlibc. 2017-05-02 23:30:46 +02:00
mlibc.h mescc: Support regular C99 compile, headers + mlibc. 2017-05-02 23:30:46 +02:00
stdio.h core: Add current-output-port, open-output-file, set-current-output-port. 2017-05-19 06:56:47 +02:00
stdlib.h mescc: Support regular C99 compile, headers + mlibc. 2017-05-02 23:30:46 +02:00
string.h mescc: Add strcpy. 2017-05-08 21:15:53 +02:00
unistd.h mescc: Support regular C99 compile, headers + mlibc. 2017-05-02 23:30:46 +02:00