summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/sys
Commit message (Collapse)AuthorAgeFilesLines
* 2008-01-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-01-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make isatty syscall handling consistent with other newlib syscalls. * libc/include/_syslist.h: Add _isatty. * libc/include/reent.h: Add _isatty_r. * libc/include/sys/unistd.h: Add _isatty. * libc/posix/Makefile.am: Add new _isatty.c file. * libc/posix/Makefile.in: Regenerated. * libc/posix/_isatty.c: New file. * libc/posix/isatty.c: Changed to call _isatty(). * libc/reent/Makefile.am: Add new isattyr.c file. * libc/reent/Makefile.in: Regenerated. * libc/reent/isattyr.c: New file. * libc/stdio/freopen.c: Changed to call _isatty_r(). * libc/stdio/makebuf.c: Ditto. * libc/sys/a29khif/_isatty.S: Change isatty to _isatty. * libc/sys/arc/isatty.c: Ditto. * libc/sys/arm/syscalls.c: Ditto. * libc/sys/d10v/syscalls.c: Ditto. * libc/sys/h8300hms/syscalls.c: Ditto. * libc/sys/h8500hms/syscalls.c: Ditto. * libc/sys/linux/Makefile.am: Add new isatty.c file. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/isatty.c: New file. * libc/syscalls/Makefile.am: Add new sysisatty.c file. * libc/syscalls/Makefile.in: Regenerated. * libc/syscalls/sysisatty.c: New file.
* 2007-12-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-12-191-1/+4
| | | | | * libc/include/sys/features.h: Add checks for C90 compilers using -ansi.
* 2007-11-15 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-12-192-182/+186
| | | | | | | | | * libc/include/sys/_default_fcntl.h: New header file that is the default version of sys/fcntl.h. * libc/include/sys/fcntl.h: Changed to simply include sys/_default_fcntl.h. * libc/sys/arm/sys/fcntl.h: New file that includes sys/_default_fcntl.h and defines O_BINARY.
* * libc/include/sys/unistd.h: Remove Cygwin definition of MAXPATHLEN.Corinna Vinschen2007-11-081-4/+1
|
* 2007-09-18 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2007-09-182-21/+28
| | | | | | | | | | | * libc/include/sys/types.h: Use __dev_t, __uid_t, and __gid_t to typedef dev_t, gid_t, and uid_t. * libc/include/sys/_types.h: Move previous dev_t, uid_t and gid_t types.h code to here, but typedef __dev_t, __uid_t, and __gid_t instead. Change to lower case for all __foo_t_defined names. * libc/machine/spu/machine/_types.h: Add SPU specific __dev_t, __uid_t, and __gid_t making them all four bytes. Change to lower case for all __foo_t_defined names.
* 2007-09-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-09-071-0/+13
| | | | | * libc/include/sys/_types.h: Protect all types with flag checks to allow definition in machine/_types.h.
* 2007-09-07 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2007-09-072-12/+16
| | | | | | | | | | | | * libc/include/machine/_default_types.h: New file, contains what was previously in libc/include/machine/_types.h. * libc/include/machine/_types.h: Now only includes machine/_default_types.h. * libc/include/sys/reent.h: Remove _fpos_t and _fpos64_t. * libc/include/sys/_types.h: Move _fpos_t and _fpos64_t to here, with conditional declarations. * libc/machine/spu/machine/_types.h: New file, add SPU specific typedefs for _fpos_t and _fpos64_t.
* 2007-07-06 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-07-061-1/+1
| | | | | | | | | | | | | * libc/include/sys/time.h (gettimeofday): Change to proper prototype where second parameter is void *. * libc/reent/gettimeofdayr.c (_gettimeofday_r): Change prototype accordingly. * libc/include/reent.h: Fix prototype for _gettimeofday_r. * libc/sys/arm/syscalls.c: Fix gettimeofday function signature. * libc/sys/rdos/gettod.c: Ditto. * libc/sys/sh/syscalls.c: Ditto. * libc/time/time.c (time): Change call to _gettimeofday_r to pass NULL as 2nd argument.
* 2007-06-20 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2007-06-201-4/+13
| | | | | * libc/include/sys/unistd.h[__SPU__]: Add lockf prototype and related defines; expose ftruncate, truncate and sync prototypes.
* 2007-06-20 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2007-06-202-2/+2
| | | | | | * libc/include/sys/unistd.h[__SPU__]: Make fchdir prototype visible. * libc/include/sys/stat.h[__SPU__]: Make mknod and lstat prototypes visible.
* 2007-06-13 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2007-06-132-1/+7
| | | | | | | | | | * libc/include/sys/features.h: Define _POSIX_TIMERS for spu. * libc/include/sys/unistd.h: Change usleep prototype to Posix form and move outside of OS flag checks. * libc/machine/spu/Makefile.am: Add sleep and usleep. * libc/machine/spu/Makefile.in: Regenerate. * libc/machine/spu/sleep.c: Copy libc/posix/sleep.c. * libc/machine/spu/usleep.c: Copy libc/posix/usleep.c.
* * libc/include/sys/unistd.h: Declare confstr for Cygwin.Corinna Vinschen2007-06-111-0/+44
| | | | Define confstr constants for Cygwin. Add comment.
* Implement funopen, fopencookie.Eric Blake2007-06-041-11/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/include/sys/reent.h (struct __sFILE, struct __sFILE64): Switch to reentrant callbacks. * libc/include/stdio.h (funopen): Fix declaration. (fopencookie): Declare. * libc/stdio/local.h (__sread, __swrite, __sseek, __sclose) (__sseek64, __swrite64): Fix prototypes. [__SCLE]: Pull in setmode declaration. * libc/stdio/stdio.c (__sread, __swrite, __sseek, __sclose): Fix reentrancy. * libc/stdio64/stdio64.c (__sseek64_r, __swrite64_r): Delete. (__sseek64, __swrite64): Fix reentrancy. * libc/stdio/fseek.c (_fseek_r): Account for overflow, and fix reentrancy. * libc/stdio/ftell.c (_ftell_r): Likewise. * libc/stdio/flags.c (__sflags): Don't lose __SAPP on "a+". * libc/stdio/fclose.c (_fclose_r): Fix reentrancy. * libc/stdio/freopen.c (_freopen_r): Likewise. * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise. * libc/stdio/refill.c (__srefill_r): Likewise. * libc/stdio/siscanf.c (eofread): Likewise. * libc/stdio/sscanf.c (eofread): Likewise. * libc/stdio/vsiscanf.c (eofread1): Likewise. * libc/stdio/vsscanf.c (eofread1): Likewise. * libc/stdio64/freopen64.c (_freopen64_r): Likewise. * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise. * libc/stdio64/ftello64.c (_ftello64_r): Likewise. * libc/stdio/fflush.c (fflush): Improve reentrancy, although more could be fixed. * libc/stdio/fopencookie.c (_fopencookie_r, fopencookie): New file. * libc/stdio/funopen.c (_funopen_r, funopen): New file. * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Build new files. * libc/stdio/Makefile.in: Regenerate.
* 2007-03-15 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-03-151-0/+8
| | | | | | | | | | | | | | | * configure.in: Add new --enable-newlib-reent-small option. * configure: Regenerated. * acconfig.h: Add _WANT_REENT_SMALL. * newlib.hin: Regenerated minus PACKAGE macros to add _WANT_REENT_SMALL macro. * libc/include/sys/config.h[_WANT_REENT_SMALL]: Set _REENT_SMALL if not already set. * libc/stdio/fflush.c[_REENT_SMALL]: Return immediately if there is no buffer. * libc/stdio/local.h[_REENT_SMALL]: Fix CHECK_INIT macro to use reentrant pointer passed in when resetting the file pointer to one of the std streams.
* * libc/include/sys/features.h: Add _POSIX_MESSAGE_PASSING forCorinna Vinschen2007-02-141-1/+1
| | | | Cygwin.
* * libc/include/sys/features.h: Add _POSIX_SHARED_MEMORY_OBJECTS forCorinna Vinschen2007-02-081-3/+3
| | | | Cygwin. Fix value of _POSIX_SEMAPHORES. Fix formatting.
* * libc/include/sys/features.h: Add definition of all supportedCorinna Vinschen2007-02-073-86/+217
| | | | | | | | | _POSIX_xxx values for Cygwin. * libc/include/sys/types.h (pthread_rwlock_t): Omit definition on Cygwin. (pthread_rwlockattr_t): Ditto. * libc/include/sys/unistd.h: Define all _SC_xxx values as required by SUSv3. Unify formatting.
* 2007-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>Jeff Johnston2007-02-021-0/+1
| | | | * libc/include/sys/errno.h: Add ECANCELED.
* 2007-02-01 Joel Schopp <jschopp@austin.ibm.com>Jeff Johnston2007-02-013-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Kazunori Asayama <asayama@sm.sony.co.jp> * configure.host: Enable SPU specific stdio directory. * libc/machine/spu/Makefile.am: Add objects. * libc/machine/spu/Makefile.in: Regenerated. * libc/machine/spu/c99ppe.h: Add macros and function declarations to initialize SPU specific stdio stuffs. * libc/machine/spu/stdio.c: Add functions to manage Cell SPU specific FILE structures. * libc/machine/spu/perror.c: Add initialization routine of stdio stuffs. * libc/machine/spu/printf.c: Ditto. * libc/machine/spu/putchar.c: Ditto. * libc/machine/spu/puts.c: Ditto. * libc/machine/spu/vprintf.c: Ditto. * libc/machine/spu/clearerr.c: New file. Add a stdio function implementation. * libc/machine/spu/feof.c: Ditto. * libc/machine/spu/ferror.c: Ditto. * libc/machine/spu/fileno.c: Ditto. * libc/machine/spu/fopen.c: Ditto. * libc/machine/spu/fclose.c: Ditto. * libc/machine/spu/freopen.c: Ditto. * libc/machine/spu/fflush.c: Ditto. * libc/machine/spu/fseek.c: Ditto. * libc/machine/spu/ftell.c: Ditto. * libc/machine/spu/rewind.c: Ditto. * libc/machine/spu/fgetpos.c: Ditto. * libc/machine/spu/fsetpos.c: Ditto. * libc/machine/spu/fread.c: Ditto. * libc/machine/spu/fwrite.c: Ditto. * libc/machine/spu/getc.c: Ditto. * libc/machine/spu/getchar.c: Ditto. * libc/machine/spu/gets.c: Ditto. * libc/machine/spu/fgetc.c: Ditto. * libc/machine/spu/fgets.c: Ditto. * libc/machine/spu/ungetc.c: Ditto. * libc/machine/spu/putc.c: Ditto. * libc/machine/spu/fputc.c: Ditto. * libc/machine/spu/fputs.c: Ditto. * libc/machine/spu/vfprintf.c: Ditto. * libc/machine/spu/vfscanf.c: Ditto. * libc/machine/spu/fprintf.c: Ditto. * libc/machine/spu/fscanf.c: Ditto. * libc/machine/spu/scanf.c: Ditto. * libc/machine/spu/vscanf.c: Ditto. * libc/machine/spu/setbuf.c: Ditto. * libc/machine/spu/setvbuf.c: Ditto. * libc/machine/spu/tmpfile.c: Ditto. 2007-02-01 Jeff Johnston <jjohnstn@redhat.com> * libc/include/sys/config.h[__SPU__]: Define __CUSTOM_FILE_IO__. * libc/include/stdio.h[!__CUSTOM_FILE_IO__]: Add flag check around stdio macros that manipulate fields in the normal file structure. * libc/include/sys/reent.h[__CUSTOM_FILE_IO__]: Include <sys/custom_file.h> to define custom FILE structure. * libc/include/sys/custom_file.h: New default header file that generates error if not overridden when __CUSTOM_FILE_IO__ set. * libc/machine/spu/sys/custom_file.h: New file.
* * libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.Corinna Vinschen2006-11-071-1/+6
| | | | | | (_PC_FILESIZEBITS): Add definition. (_PC_2_SYMLINKS): Ditto. (_PC_SYMLINK_MAX): Ditto.
* 2006-09-26 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-09-261-21/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/include/stdio.h[_REENT_SMALL]: Do not allow macros for clearerr, feof, or fileno. * libc/include/sys/reent.h[_REENT_SMALL](struct _reent): Change the dummy std stream scheme to use pointers to const external fake files, one for each standard stream. * libc/stdio/local.h (CHECK_INIT): Change to take a file pointer argument. For _REENT_SMALL, reset the file pointer if it matches one of the fake std stream pointers. * libc/stdio/clearerr.c: Fix CHECK_INIT macro to add file pointer argument. * libc/stdio/fclose.c: Ditto. * libc/stdio/feof.c: Ditto. * libc/stdio/ferror.c: Ditto. * libc/stdio/fflush.c: Ditto. * libc/stdio/fgetc.c: Ditto. * libc/stdio/fgets.c: Ditto. * libc/stdio/fileno.c: Ditto. * libc/stdio/findfp.c: Ditto. * libc/stdio/fputc.c: Ditto. * libc/stdio/fputs.c: Ditto. * libc/stdio/fread.c: Ditto. * libc/stdio/freopen.c: Ditto. * libc/stdio/fseek.c: Ditto. * libc/stdio/ftell.c: Ditto. * libc/stdio/fwrite.c: Ditto. * libc/stdio/getc.c: Ditto. * libc/stdio/getdelim.c: Ditto. * libc/stdio/putc.c: Ditto. * libc/stdio/refill.c: Ditto. * libc/stdio/setvbuf.c: Ditto. * libc/stdio/ungetc.c: Ditto. * libc/stdio/vfprintf.c: Ditto. * libc/stdio/vfscanf.c: Ditto. * libc/stdio/wbuf.c: Ditto.: Ditto. * libc/stdio/wsetup.c: Ditto. * libc/stdio64/freopen64.c: Ditto. * libc/stdio64/fseeko64.c: Ditto. * libc/stdio64/ftello64.c: Ditto. * libc/machine/powerpc/vfprintf.c: Ditto. * libc/machine/powerpc/vfscanf.c: Ditto.
* 2006-09-22 Paul Brook <paul@codesourcery.com>Jeff Johnston2006-09-221-2/+3
| | | | * libc/include/sys/reent.h: Define and use __reent_assert.
* 2006-09-13 Joel Sherrill <joel@oarcorp.com>Jeff Johnston2006-09-132-0/+33
| | | | | | | | | | | * libc/include/pthread.h: Add pthread barriers, rwlocks, and spinlocks. Change const to _CONST and prefix parameter names with an underscore. * libc/include/sys/types.h: Add id and attribute types for barriers, wrlocks, and spinlocks. * libc/include/sys/features.h: Enable barriers, wrlocks, and spinlocks for RTEMS.
* 2006-08-29 Paul Brook <paul@codesourcery.com>Jeff Johnston2006-08-291-0/+4
| | | | * libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
* * sys/types.h: Correct syntax error caused by missing '\' on #ifdef line.Christopher Faylor2006-08-191-1/+1
|
* 2006-08-16 Joel Schopp <jschopp@austin.ibm.com>Jeff Johnston2006-08-162-5/+6
| | | | | | | | | | | | | | | | * configure.host: Add spu support. * libc/include/stdint.h: Ditto. * libc/include/machine/ieeefp.h: Ditto. * libc/include/machine/setjmp.h: Ditto. * libc/include/sys/config.h: Ditto. * libc/include/sys/types.h: Ditto. * libc/machine/spu/Makefile.am: New file. * libc/machine/spu/Makefile.in: Ditto. * libc/machine/spu/aclocal.m4: Ditto. * libc/machine/spu/configure: Ditto. * libc/machine/spu/configure.in: Ditto. * libc/machine/spu/memcpy.c: Ditto. * libc/machine/spu/setjmp.S: Ditto.
* 2006-08-01 Thiemo Seufer <ths@mips.com>Jeff Johnston2006-08-011-0/+4
| | | | | | | Nigel Stephens <nigel@mips.com> * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): For MIPS define this to force _impure_ptr to live in the .sdata section.
* 2006-04-18 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-04-181-2/+8
| | | | | * libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros. (sigaddset, sigemptyset): Add return code.
* * libc/include/sys/time.h (struct timeval): Change member typesCorinna Vinschen2006-02-152-3/+4
| | | | | | | according to SUSv3. * libc/include/sys/types.h (useconds_t): Change to unsigned according to SUSv3. (suseconds_t): Define type.
* 2006-01-31 Leif Ekblad <leif@rdos.net>Jeff Johnston2006-01-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | * configure.host: RDOS support added * libc/include/sys/config.h: Ditto. * libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files. * libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto. * libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto. * libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto. * libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto. * libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto. * libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto. * libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto. * libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto. * libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto. * libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto. * libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto. * libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto. * libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto. * libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto. * libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto. * libc/sys/rdos/write.c: Ditto.
* * libc/include/sys/fcntl.h: Define O_SYNC unconditionally. FixCorinna Vinschen2005-12-141-4/+2
| | | | typo in O_NDELAY comment.
* 2005-12-08 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2005-12-081-9/+0
| | | | | * libc/include/sys/types.h: Remove the ifdef armour around standard POSIX types.
* * include/sys/time.h: Move more cygwin stuff to cygwin-specific header.Christopher Faylor2005-11-181-4/+0
|
* * include/time.h: Move cygwin declarations to cygwin-specific header.Christopher Faylor2005-11-181-1/+1
| | | | * include/sys/time.h: Rename cygwin include to "sys_time.h".
* * libc/include/sys/time.h: For cygwin, use general header rather than specificChristopher Faylor2005-11-111-1/+1
| | | | "sys/select.h".
* 2005-11-03 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2005-11-031-1/+1
| | | | | | | | | * libc/include/sys/unistd.h (readlink, symlink): Provide these prototypes by default. * libc/sys/linux/include/unistd.h (readlink): Remove this prototype. * libc/sys/linux/sys/unistd.h (readlink, symlink): New prototypes.
* * libc/include/sys/time.h: Declare futimes and lutimes for Cygwin.Corinna Vinschen2005-10-201-0/+4
|
* * libc/include/sys/features.h: Define _POSIX_MEMLOCK_RANGE for Cygwin.Corinna Vinschen2005-10-181-0/+1
|
* 2005-10-04 James E Wilson <wilson@specifix.com>Jeff Johnston2005-10-041-5/+3
| | | | | * libc/include/sys/dirent.h (_DIRENT_H_): Delete #include_next. Add #error.
* 2005-08-10 DJ Delorie <dj@redhat.com>Jeff Johnston2005-08-101-0/+16
| | | | | | | | | | | | | | * configure.host: Add m32c support. * libc/include/machine/ieeefp.h: Likewise. * libc/include/machine/setjmp.h: Likewise. * libc/include/sys/config.h: Likewise. * libc/machine/m32c: New directory, Renesas R8C/M16C/M32C support. * libc/machine/m32c/aclocal.m4: New file. * libc/machine/m32c/configure: Ditto. * libc/machine/m32c/configure.in: Ditto. * libc/machine/m32c/Makefile.am: Ditto. * libc/machine/m32c/Makefile.in: Ditto. * libc/machine/m32c/setjmp.S: Ditto.
* 2005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>Jeff Johnston2005-03-061-22/+2
| | | | | | | | | * libc/include/machine/_types.h: New file. * libc/include/sys/types.h: Do not check for __rtems__ when including <machine/_types.h>. Remove some redundant declarations now that <machine/_types.h> is included. * libc/sys/rtems/machine/_types.h: Removed. Replaced with shared header file.
* 2005-02-24 Ralf Corsepious <ralf.corsepius@rtems.org>Jeff Johnston2005-02-241-0/+34
| | | | | | | * libc/include/sys/types.h [__rtems__]: Include new header file machine/_types.h. * libc/include/machine/types.h: Ditto. * libc/sys/rtems/machine/_types.h: New file.
* * libc/include/sys/unistd.h: Define getpeereid for Cygwin.Corinna Vinschen2005-02-231-0/+3
|
* * libc/include/sys/unistd.h: Define fdatasync also for Cygwin.Corinna Vinschen2005-02-221-2/+0
|
* * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gidCorinna Vinschen2005-02-081-1/+1
| | | | | | members to uid_t and gid_t according to SUSv3. * libc/include/sys/time.h (utimes): Change second parameter to const according to SUSv3.
* 2005-02-07 Antony King <antony.king@st.com>Jeff Johnston2005-02-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/stdio/clearerr.c (clearerr): Ensure CHECK_INIT() is called before _flockfile to prevent lock object use before initialisation. _REENT_SMALL_CHECK_INIT() and CHECK_INIT() take a struct _reent * instead of a FILE *. * libc/stdio/fclose.c (_fclose_r): Ditto. * libc/stdio/feof.c (feof): Ditto. * libc/stdio/ferror.c (ferror): Ditto. * libc/stdio/fflush.c (fflush): Ditto. * libc/stdio/fgetc.c (fgetc): Ditto. * libc/stdio/fgets.c (fgets): Ditto. * libc/stdio/fileno.c (fileno): Ditto. * libc/stdio/fputc.c (fputc): Ditto. * libc/stdio/fputs.c (fputs): Ditto. * libc/stdio/fread.c (fread): Ditto. * libc/stdio/freopen.c (_freopen_r): Ditto. * libc/stdio/fseek.c (_fseek_r): Ditto. * libc/stdio/ftell.c (_ftell_r): Ditto. * libc/stdio/fwrite.c (fwrite): Ditto. * libc/stdio/getc.c (getc): Ditto. * libc/stdio/getdelim.c (__getdelim): Ditto. * libc/stdio/putc.c (putc): Ditto. * libc/stdio/setvbuf.c (setvbuf): Ditto. * libc/stdio/ungetc.c (_ungetc_r): Ditto. * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto. * libc/stdio64/freopen64.c (_freopen64_r): Ditto. * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto. * libc/stdio64/ftello64.c (_ftello64_r): Ditto. * libc/stdio/local.h (CHECK_INIT): Argument is now a struct _reent * instead of a FILE * and so replace incorrect use of _REENT with argument. * libc/sys/arm/syscalls.c (CHECK_INIT): Ditto. * libc/stdio/getchar.c (getchar): _REENT_SMALL_CHECK_INIT() and CHECK_INIT() take a struct _reent * instead of a FILE *. * libc/stdio/iprintf.c (iprintf, _iprintf_r): Ditto. * libc/stdio/iscanf.c (iscanf, _iscanf_r): Ditto. * libc/stdio/perror.c (perror): Ditto. * libc/stdio/printf.c (printf, _printf_r): Ditto. * libc/stdio/putchar.c (putchar): Ditto. * libc/stdio/puts.c (puts): Ditto. * libc/stdio/refill.c (__srefill): Ditto. * libc/stdio/scanf.c (scanf, _scanf_r): Ditto. * libc/stdio/vfscanf.c (VFSCANF, _VFSCANF_R): Ditto. * libc/stdio/viprintf.c (viprintf, _viprintf_r): Ditto. * libc/stdio/viscanf.c (viscanf, _viscanf_r): Ditto. * libc/stdio/vprintf.c (vprintf, _vprintf_r): Ditto. * libc/stdio/vscanf.c (vscanf, _vscanf_r): Ditto. * libc/stdio/wbuf.c (__swbuf): Ditto. * libc/stdio/wsetup.c (__swsetup): Ditto. * libc/stdlib/mallocr.c (malloc_stats): Ditto. * libc/stdlib/mstats.c (_mstats_r): Ditto. * libc/include/sys/reent.h (_REENT_SMALL_CHECK_INIT): Ditto. * libc/machine/powerpc/vfscanf.c (vfscanf): Ditto. * libc/stdio/fgetpos.c (_fgetpos_r): Removed unnecessary calls to _flockfile and _funlockfile; rely on locking in _ftell_r. * libc/stdio64/fgetpos64.c (_fgetpos64_r): Ditto (_ftello64_r). * libc/machine/powerpc/vfprintf.c (__sbprintf): Removed unnecessary initialision of _data field in FILE structure. * libc/machine/powerpc/vfprintf.c (VFPRINTF): Added CHECK_INIT() call.
* 2005-01-24 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-01-241-0/+2
| | | | | | | | * libc/include/string.h: Remove Linux-specific declaration of strsignal and add #include <sys/string.h>. * libc/include/sys/string.h: New file. * libc/include/sys/linux/sys/string.h: New file with strsignal declaration deleted above.
* * libc/include/sys/signal.h: Move <signal.h> include to bottom of file so thatChristopher Faylor2004-10-281-7/+6
| | | | all relevant definitions have been handled for use in the include.
* 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-10-081-0/+6
| | | | | | | * libc/include/sys/signal.h: If <signal.h> didn't include this header file, include <signal.h> to account for applications that take advantage that the two header files are the same in glibc.
* 2004-09-16 Antony King <antony.king@st.com>Jeff Johnston2004-09-162-13/+15
| | | | | | | | | | | | | | | | | | | * libc/include/sys/lock.h: Replaced empty {} with (0) to conform with locking API. * libc/include/sys/stdio.h: (_flockfile)[!_SINGLE_THREAD]: Add check for__SSTR in _flags and if set, skip lock request. (_funlockfile)[!SINGLE_THREAD]: Ditto. * libc/stdio/local.h (CHECK_INIT): Added check that _REENT is not NULL. * libc/stdio/siprintf.c (siprintf, _siprintf_r): Added missing initialisation of _file to -1 in local FILE. * libc/stdio/snprintf.c (snprintf, _snprintf_r): Ditto. * libc/stdio/sscanf.c (sscanf, _sscanf_r): Ditto. * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto. * libc/stdio/vsscanf.c (_vsscanf_r): Ditto. * libc/stdio/sscanf.c (sscanf, _sscanf_r): Added __SSTR flag to _flags in local FILE to prevent locking. * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.