summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include
Commit message (Collapse)AuthorAgeFilesLines
* 2007-02-20 Kazunori Asayama <asayama@sm.sony.co.jp>Jeff Johnston2007-02-201-0/+1
| | | | * libc/include/stdio.h: Add declaration for vsiprintf.
* * 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-014-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 2006-12-18 Kazunori Asayama <asayama@sm.sony.co.jp>Jeff Johnston2006-12-181-1/+1
| | | | * libc/include/machine/setjmp.h: Replace vector with __vector.
* 2006-12-13 Joel Schopp <jschopp@austin.ibm.com>Jeff Johnston2006-12-131-0/+2
| | | | * newlib/include/alloca.h: add undef alloca to work with xlc
* 2006-12-12 Joel Schopp <jschopp@austin.ibm.com>Jeff Johnston2006-12-131-1/+1
| | | | | * libc/include/machine/setjmp.h[__SPU__]: Redefine _JBTYPE for cell spu
* 2006-11-30 Lev Bishop <lev.bishop@gmail.com>Jeff Johnston2006-11-301-2/+2
| | | | | * libc/include/math.h: Allow C99 functions/macros to be defined for C++ even when __STRICT_ANSI__.
* 2006-11-08 Jie Zhang <jzhang918@gmail.com>Jeff Johnston2006-11-082-0/+8
| | | | | | | | | | | | | | | * configure.host: Add support for bfin. * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for bfin. * libc/include/machine/setjmp.h: Define _JBLEN for bfin. * libc/machine/bfin/aclocal.m4: Generate. * libc/machine/bfin/configure.in: New. * libc/machine/bfin/configure: Generate. * libc/machine/bfin/Makefile.am: New. * libc/machine/bfin/Makefile.in: Generate. * libc/machine/bfin/setjmp.S: New. * libc/machine/bfin/longjmp.S: New. * libc/machine/configure.in: Add bfin support. * libc/machine/configure: Generate.
* * 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-10-25 Vladimir Prus <vladimir@codesourcery.com>Jeff Johnston2006-10-251-1/+2
| | | | | * libc/include/math.h: (exception): Add a comment telling fixincludes that we handle C vs. C++ issue.
* 2006-10-11 Yang Tse <yangsita@gmail.com>Jeff Johnston2006-10-111-0/+2
| | | | * setjmp.h: Use __extension__ keyword for gcc's braced-groups.
* 2006-09-26 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-09-262-21/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-133-64/+155
| | | | | | | | | | | * 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-09-13 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2006-09-131-1/+1
| | | | | | * libc/include/math.h: Remove _CONST from _LIB_VERSION, as it is supposed to be writable. * libm/common/s_lib_ver.c: Ditto.
* 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-165-6/+17
| | | | | | | | | | | | | | | | * 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-06-15 Corinna Vinschen <corinna@vinschen.de>Jeff Johnston2006-06-151-1/+1
| | | | | | | * libc/include/stdio.h (__sgetc_r): Fix typo. * libc/stdio/fread.c (_fread_r): Convert crlf calls to crlf_r. * libc/stdio/rget.c (__srbuf): Reinstantiate. * libc/stdio/wbuf.c (__swbuf): Ditto.
* 2006-06-14 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-06-141-25/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/include/stdio.h: Add new reentrant I/O prototypes for read/write functions. Change getc/putc macros to have reentrant underlying macros/functions. This includes __sgetc_raw_r, __sgetc_r, and __sputc_r. * libc/stdio/fgetc.c: Fix and/or add reentrant version to call new reentrant I/O functions/macros for reading/writing. * libc/stdio/fgets.c: Ditto. * libc/stdio/fputc.c: Ditto. * libc/stdio/fputs.c: Ditto. * libc/stdio/fread.c: Ditto. * libc/stdio/fseek.c: Ditto. * libc/stdio64/fseeko64.c: Ditto. * libc/stdio/fwrite.c: Ditto. * libc/stdio/getc.c: Ditto. * libc/stdio/getc_u.c: Ditto. * libc/stdio/getchar.c: Ditto. * libc/stdio/getchar_u.c: Ditto. * libc/stdio/putc.c: Ditto. * libc/stdio/putc_u.c: Ditto. * libc/stdio/putchar.c: Ditto. * libc/stdio/puts.c: Ditto. * libc/stdio/vfprintf.c: Ditto. * libc/stdio/vfscanf.c: Ditto. * libc/stdio/fvwrite.c: Change __sfvwrite into reentrant __sfvwrite_r. Change all previous callers of __sfvwrite. Set errno to EBADF and set error flag on if attempt is made to write to file that does not allow writing. * libc/stdio/fvwrite.h: Fix new reentrant prototypes. * libc/stdio/local.h: Ditto. * libc/stdio/refill.c: Turn __srefill into reentrant __srefill_r. Set errno to EBADF and the error flag on if attempt is made to read unreadable file. Change all previous callers of __srefill. * libc/stdio/rget.c * libc/stdio/wbuf.c: Turn __swbuf into reentrant __swbuf_r. Change all previous callers of __swbuf. * libc/sys/linux/machine/i386/huge_val.h: Ifdef out file contents since huge value macros are already defined correctly for i386 by <math.h>.
* 2006-05-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-05-231-0/+2
| | | | | | * libc/include/stdio.h: Protect dprintf prototype with #ifndef dprintf so as to not interfere with historical code defining their own dprintf macro.
* 2006-05-18 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-05-181-0/+3
| | | | | * libc/include/stdio.h: Add prototypes for fiscanf, iscanf, and siscanf.
* 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.
* 2006-02-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-02-272-6/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am (MATHOBJS_IN_LIBC): Add s_isinfd, sf_isinff, s_isnand, and sf_isnanf object files. * Makefile.in: Regenerated. * libc/include/ieeefp.h: Undef isnan and isinf to avoid conflict if <math.h> has previously been included. * libc/include/math.h * libm/common/Makefile.am: Add new s_isinfd, s_isnand, sf_isinff, and sf_isnanf files. Also support s_isnan, sf_isnan, s_isinf, and sf_isinf files which have been moved from math/mathfp directories. * libm/common/Makefile.in: Regenerated. * libm/common/s_isinfd.c: New file. * libm/common/s_isnand.c: Ditto. * libm/common/sf_isinff.c: Ditto. * libm/common/sf_isnanf.c: Ditto. * libm/common/s_isinf.c: Moved from libm/math directory. * libm/common/s_isnan.c: Ditto. * libm/common/sf_isinf.c: Ditto. * libm/common/sf_isnan.c: Ditto. * libm/math/Makefile.am: Remove isinf and isnan family functions which have been moved into common directory. * libm/mathfp/Makefile.am: Ditto. * libm/math/Makefile.in: Regenerated. * libm/mathfp/Makefile.in: Ditto. * libm/math/s_isinf.c: Removed. * libm/math/s_isnan.c: Ditto. * libm/math/sf_isinf.c: Ditto. * libm/math/sf_isnan.c: Ditto. * libm/mathfp/s_isinf.c: Ditto. * libm/mathfp/s_isnan.c: Ditto. * libm/mathfp/sf_isinf.c: Ditto. * libm/mathfp/sf_isnan.c: Ditto.
* * 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.
* 2006-01-04 Gregory Pietsch <gpietsch@comcast.net>Jeff Johnston2006-01-041-0/+136
| | | | | | * libc/stdlib/getopt.c: Replaced with version that adds getopt_long and getopt_long_only support. * libc/include/getopt.h: New file.
* 2005-12-16 Ralf Corsepius <ralf.corsepius@rtems.org>Jeff Johnston2005-12-162-12/+12
| | | | | | | * libc/include/stdint.h: Prefer long over int for int32_t. Use __have_long32 to set up int32_t. * libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx" (Sync with stdint.h).
* * libc/include/sys/fcntl.h: Define O_SYNC unconditionally. FixCorinna Vinschen2005-12-141-4/+2
| | | | typo in O_NDELAY comment.
* 2005-12-13 Nathan Sidwell <nathan@codesourcery.com>Jeff Johnston2005-12-132-2/+2
| | | | | | | * libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__. * libc/include/machine/setjmp.h (__mt__): Likewise. * libc/machine/mt/setjmp.S: Rename ms1 reference to mt. * libc/machine/configure.in: Ditto.
* 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.
* * libc/include/stdlib.h: Move cygwin declarations to cygwin-specific file.Christopher Faylor2005-12-051-42/+4
| | | | Declare unsetenv and _unsetenv_r when not cygwin.
* * libc/include/ieeefp.h: Add C++ guards.Corinna Vinschen2005-11-181-0/+4
|
* * include/sys/time.h: Move more cygwin stuff to cygwin-specific header.Christopher Faylor2005-11-181-4/+0
|
* * include/time.h: Remove more cygwin-specific stuff.Christopher Faylor2005-11-181-18/+0
|
* * include/time.h: Move cygwin declarations to cygwin-specific header.Christopher Faylor2005-11-182-11/+5
| | | | * 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".
* * libc/include/string.h: Add cygwin-specific function declaration.Christopher Faylor2005-11-081-0/+3
|
* 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.
* 2005-11-01 Ralf Corsepius <ralf.corsepius@rtems.org>Jeff Johnston2005-11-011-9/+8
| | | | * libc/include/stdint.h: Cleanup #if vs. #ifdef.
* 2005-10-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-10-201-22/+46
| | | | | * libc/include/math.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): When gcc is 3.3 or greater, use special gcc builtins.
* * 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-14 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-10-141-0/+16
| | | | | | | | | | | | | | * libc/include/math.h (HUGE_VALF, HUGE_VALL): New. * libm/common/Makefile.am: Add s_infconst.c support. * libm/common/Makefile.in: Regenerated. * libm/common/s_infconst.c: New file with float and long double infinity support added. * libm/math/Makefile.am: Remove s_infconst.c support. * libm/math/Makefile.in: Regenerated. * libm/math/s_infconst.c: Moved to common directory. * libm/mathfp/Makefile.am: Remove s_infconst.c support. * libm/mathfp/Makefile.in: Regenerated. * libm/mathfp/s_infconst.c: Moved to common directory.
* 2005-10-11 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2005-10-111-0/+4
| | | | | | | | | | | * libc/include/stdio.h (dprintf): New declaration. (vdprintf): Ditto. * libc/stdio/Makefile.am (GENERAL_SOURCES): Add dprintf.c and vdprintf.c. * libc/stdio/Makefile.in: Regenerate. * libc/stdio/dprintf.c: New file. * libc/stdio/vdprintf.c: New file. * libc/stdio/stdio.tex (dprintf): New entry.
* 2005-10-06 Ralf Corsepius <ralf.corsepius@rtems.org>Jeff Johnston2005-10-061-0/+91
| | | | * libc/include/stdint.h: Add [u]int_fast<N>_t types.