diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2002-06-21 18:29:23 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2002-06-21 18:29:23 +0000 |
commit | d427d09204c97df14607149e94a1da9beddd76ab (patch) | |
tree | 364e68aebab51cfb339ff2b0f21a1f97d22a131d /newlib/libc/include/stdio.h | |
parent | 35728d4f142bbab0d8a963561d76b9066421b1ac (diff) | |
download | cygnal-d427d09204c97df14607149e94a1da9beddd76ab.tar.gz cygnal-d427d09204c97df14607149e94a1da9beddd76ab.tar.bz2 cygnal-d427d09204c97df14607149e94a1da9beddd76ab.zip |
2002-06-21 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdio.h (__getline, __getdelim): New prototypes.
* libc/include/time.h [HAVE_GETDATE](getdate, getdate_r): Ditto.
[HAVE_GETDATE](getdate_err): New error code.
* libc/stdio/Makefile.am: Add support for getline.c and getdelim.c.
* libc/stdio/Makefile.in: Regenerated.
* libc/stdio/getdelim.c: New file.
* libc/stdio/getline.c: Ditto.
* libc/sys/linux/Makefile.am: Add support for getdate.c, getdate_err.c
and ntp_gettime.c. Also add AM_CFLAGS to point to libc/stdio.
* libc/sys/linux/Makefile.in: Regenerated.
* libc/sys/linux/getdate.c: New file.
* libc/sys/linux/getdate_err.c: Ditto.
* libc/sys/linux/ntp_gettime.c: Ditto.
* libc/sys/linux/time.c (adjtimex, ntp_adjtime): New functions.
* libc/sys/linux/sys/stdio.h (getline, getdelim): New macros.
Diffstat (limited to 'newlib/libc/include/stdio.h')
-rw-r--r-- | newlib/libc/include/stdio.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/newlib/libc/include/stdio.h b/newlib/libc/include/stdio.h index 73204cb72..51403a352 100644 --- a/newlib/libc/include/stdio.h +++ b/newlib/libc/include/stdio.h @@ -46,13 +46,13 @@ extern "C" { */ #include <sys/reent.h> - -#include <sys/stdio.h> +#include <sys/types.h> typedef _fpos_t fpos_t; - typedef struct __sFILE FILE; +#include <sys/stdio.h> + #define __SLBF 0x0001 /* line buffered */ #define __SNBF 0x0002 /* unbuffered */ #define __SRD 0x0004 /* OK to read */ @@ -271,6 +271,9 @@ int _EXFUN(_vfscanf_r, (struct _reent *, FILE *, const char *, __VALIST)); int _EXFUN(_vscanf_r, (struct _reent *, const char *, __VALIST)); int _EXFUN(_vsscanf_r, (struct _reent *, const char *, const char *, __VALIST)); +ssize_t _EXFUN(__getdelim, (char **, size_t *, int, FILE *)); +ssize_t _EXFUN(__getline, (char **, size_t *, FILE *)); + /* * Routines internal to the implementation. */ |