summaryrefslogtreecommitdiffstats
path: root/newlib/libc
Commit message (Collapse)AuthorAgeFilesLines
* * libc/posix/posix_spawn.c: Eliminate OS function calls not presentCorinna Vinschen2013-11-261-9/+9
| | | | | | | | | in newlib or Cygwin. (process_spawnattr): Use sigprocmask rather than _sigprocmask. Use sigaction rather than _sigaction. (process_file_actions_entry): Use dup2 rather than _dup2. (do_posix_spawn): Use execvpe rather than _execvpe. Use waitpid rather than _waitpid.
* 2013-11-25 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2013-11-252-5/+5
| | | | | * libc/iconv/lib/iconv.c, libc/time/strftime.c: Change "restrict<" to "restrict <" to fix formatting.
* * libc/include/spawn.h (posix_spawn_file_actions_destroy): Fix typoCorinna Vinschen2013-11-252-2/+2
| | | | | in function name. * libc/posix/posix_spawn.c (posix_spawn_file_actions_destroy): Ditto.
* 2013-11-25 Sahil Patnayakuni <sahil.patnayakuni@gmail.com>Joel Sherrill2013-11-259-30/+42
| | | | | | | | | | | | * libc/include/time.h (time): Add restrict keyword. * libc/include/wchar.h (wcsftime): Add restrict keyword. * libc/time/asctime_r.c (asctime_r): Same. * libc/time/gmtime_r.c (gmtime_r): Same. * libc/time/lcltime_r.c (lcltime_r): Same. * libc/time/strftime.c (strftime): Same. * libc/time/strptime.c (strptime): Same. * libc/sys/linux/linuxthreads/timer_create.c (timer_create): Same. * libc/sys/linux/linuxthreads/timer_settime.c (timer_settime): Same.
* 2013-11-23 Bryan Dunsmore <dunsmoreb@gmail.com>Joel Sherrill2013-11-232-2/+2
| | | | | * libc/include/wordexp.h (wordexp): Add restrict keyword. * libc/posix/wordexp.c (wordexp): Ditto.
* 2013-11-22 Bryan Dunsmore <dunsmoreb@gmail.com>Joel Sherrill2013-11-232-4/+5
| | | | | | | * libc/include/sys/time.h (gettimeofday): Add restrict keyword. (setitimer): Likewise. * libc/sys/rdos/gettod.c (gettimeofday): Likewise. * libc/sys/rtems/crt0.c (gettimeofday): Likewise.
* 2013-11-22 Chirayu Desai <chirayudesai1@gmail.com>Joel Sherrill2013-11-222-4/+6
| | | | | | | | * libc/include/sys/unistd.h (readlink): Add restrict keyword. (readlinkat): Ditto. (swab): Ditto. * libc/sys/rdos/readlink.c (readlink): Ditto. * libc/string/swab.c (swab): Ditto.
* 2013-11-21 Daniel Ramirez <javamonn@gmail.com>Joel Sherrill2013-11-221-1/+1
| | | | * libc/sys/linux/statvfs.c (statvfs): Added restrict keyword.
* 2013-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2013-11-2122-795/+795
| | | | | | | | | | | * libc/sys/rdos/chown.c, libc/sys/rdos/close.c, libc/sys/rdos/execve.c, libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c, libc/sys/rdos/getpid.c, libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c, libc/sys/rdos/kill.c, libc/sys/rdos/link.c, libc/sys/rdos/lseek.c, libc/sys/rdos/open.c, libc/sys/rdos/rdos.h, libc/sys/rdos/read.c, libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c, libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c, libc/sys/rdos/times.c, libc/sys/rdos/unlink.c, libc/sys/rdos/wait.c, libc/sys/rdos/write.c: Convert from DOS to UNIX CRLF.
* 2013-11-21 Julio Gutierrez <jgutleyva@gmail.com>Joel Sherrill2013-11-212-3/+4
| | | | | * libc/include/glob.h (glob): Add restrict keyword. * libc/posix/glob.c (glob): Ditto.
* 2013-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2013-11-218-3/+17
| | | | | | | | * libc/posix/readdir_r.c: Add restrict keyword. * libc/machine/spu/sys/dirent.h, libc/sys/decstation/sys/dirent.h, libc/sys/linux/sys/dirent.h, libc/sys/rtems/sys/dirent.h, libc/sys/sparc64/sys/dirent.h, libc/sys/sun4/sys/dirent.h, libc/sys/sysvi386/sys/dirent.h: Add readdir_r() prototype.
* 2013-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2013-11-211-1/+1
| | | | * libc/sys/rdos/stat.c: Remove stray +.
* 2013-11-21 Daniel Ramirez <javamonn@gmail.com>Joel Sherrill2013-11-215-12/+12
| | | | | | * libc/include/sys/stat.h, libc/sys/linux/sys/stat.h, libc/sys/m88kbug/syscalls.c, libc/sys/rdos/stat.c, libc/sys/sparc64/sys/stat.h: Add restrict keyword.
* 2013-11-20 Daniel Ramirez <javamonn@gmail.com>Joel Sherrill2013-11-202-3/+3
| | | | * libc/include/search.h, libc/search/tdelete.c: Add restrict keyword.
* 2013-11-20 Chirayu Desai <chirayudesai1@gmail.com>Joel Sherrill2013-11-205-19/+21
| | | | | | * libc/include/regex.h, libc/posix/regcomp.c, libc/posix/regerror.c, libc/posix/regex.3 libc/posix/regexec.c: Add restrict keyword.
* 2013-11-20 Daniel Ramirez <javamonn@gmail.com>Joel Sherrill2013-11-203-10/+14
| | | | | * libc/iconv/lib/iconv.c, libc/include/iconv.h, libc/sys/linux/iconv/iconv.c: Add restrict keyword.
* * libc/include/stdlib.h: Declare realpath only if !__STRICT_ANSI__.Corinna Vinschen2013-11-201-1/+1
|
* 3013-11-19 Jennifer Averett <jennifer.averett@oarcorp.com>Joel Sherrill2013-11-191-0/+207
| | | | * libc/sys/rtems/sys/cpuset.h: New file.
* 2013-11-18 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2013-11-192-1/+2
| | | | | * libc/include/stdlib.h: Add prototype of realpath(). * libc/sys/linux/realpath.c: Add restrict keyword.
* * libc/posix/closedir.c: Fix use after free.Corinna Vinschen2013-11-193-19/+5
| | | | | | Remove useless test dd_fd != -1 * libc/posix/readdir.c: Remove useless test dd_fd == -1 * libc/posix/readdir_r.c: Ditto.
* 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com>Joel Sherrill2013-11-1840-221/+222
| | | | | | | | | | | | | | | | | | | | | | | * libc/include/stdio.h, libc/machine/powerpc/vfscanf.c, libc/machine/spu/fgetpos.c, libc/machine/spu/fgets.c, libc/machine/spu/fopen.c, libc/machine/spu/fputs.c, libc/machine/spu/fread.c, libc/machine/spu/freopen.c, libc/machine/spu/fwrite.c, libc/machine/spu/setbuf.c, libc/machine/spu/vfprintf.c, libc/machine/spu/vfscanf.c, libc/machine/spu/vsnprintf.c, libc/machine/spu/vsprintf.c, libc/machine/spu/vsscanf.c, libc/stdio/asnprintf.c, libc/stdio/asprintf.c, libc/stdio/dprintf.c, libc/stdio/fgetpos.c, libc/stdio/fgets.c, libc/stdio/fmemopen.c, libc/stdio/fopen.c, libc/stdio/fprintf.c, libc/stdio/fputs.c, libc/stdio/fread.c, libc/stdio/freopen.c, libc/stdio/fscanf.c, libc/stdio/fwrite.c, libc/stdio/printf.c, libc/stdio/scanf.c, libc/stdio/setbuf.c, libc/stdio/snprintf.c, libc/stdio/sprintf.c, libc/stdio/sscanf.c, libc/stdio/vdprintf.c, libc/stdio/vprintf.c, libc/stdio/vscanf.c, libc/stdio/vsnprintf.c, libc/stdio/vsprintf.c, libc/stdio/vsscanf.c: Add restrict keyword.
* 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com>Joel Sherrill2013-11-1815-68/+68
| | | | | | | | | | | * libc/include/stdlib.h, libc/stdlib/mbstowcs.c, libc/stdlib/mbstowcs_r.c, libc/stdlib/mbtowc.c, libc/stdlib/mbtowc_r.c, libc/stdlib/strtod.c, libc/stdlib/strtol.c, libc/stdlib/strtold.c, libc/stdlib/strtoll.c, libc/stdlib/strtoll_r.c, libc/stdlib/strtoul.c, libc/stdlib/strtoull.c, libc/stdlib/strtoull_r.c, libc/stdlib/wcstombs.c, libc/stdlib/wcstombs_r.c: Add restrict keyword.
* [AArch64] Provide ftruncate() and truncate() stubs.Marcus Shawcroft2013-11-181-1/+1
|
* [ARM] Provide ftruncate() and truncate() stubs.Marcus Shawcroft2013-11-181-1/+1
|
* * newlib/libc/stdlib/getopt.c (getopt_internal): Add missing braces.Corinna Vinschen2013-11-131-12/+16
|
* * newlib/libc/include/getopt.h (struct option): name field should beCorinna Vinschen2013-11-132-15/+23
| | | | | | | "const char *". * newlib/libc/stdlib/getopt.c (getopt_internal): Use fputs()/fputc() instead of fprintf() to save code space. Fix signed/unsigned comparison.
* * libc/libc/stdlib/getopt.c (getopt_internal): Fix NULL pointer access.Corinna Vinschen2013-11-121-0/+4
|
* * libm/libm.texinfo: Rename node Index to Document Index.Corinna Vinschen2013-11-081-3/+3
| | | | * libc/libc.texinfo: Rename node Library Index to Document Index.
* * libc/stdio/fvwrite.c: Allow writing in larger chunks for fullyCorinna Vinschen2013-11-041-15/+12
| | | | buffered and unbuffered files, to improve write performance.
* * libc/stdio/fvwrite.h: change type of uio_resid from int to size_t toCorinna Vinschen2013-10-311-1/+1
| | | | fix fwrite() of > 2GByte buffers.
* Implement malloc_stats for nano.Corinna Vinschen2013-10-301-34/+80
| | | | | | | | | | | | * libc/stdlib/nano-mallocr.c (RONECALL): New parameter macro. (sbrk_start): New variable. (current_mallinfo, free_list): Forward declaration of data. (chunk): Define size as long type. (mallinfo): Synchronize with latest malloc.h. (nano_*): Forward declaration of functions. (get_chunk_from_ptr): Defined to static inline. (nano_mallinfo): Implement this function. (nano_malloc_stats): Implement this function.
* * libc/include/machine/_default_types.h: Revert change from 2013-10-10.Corinna Vinschen2013-10-301-18/+92
|
* * libc/include/stdio.h [!__LARGE64_FILES] (funopen): Fix typoHans-Peter Nilsson2013-10-241-1/+1
| | | | in last change.
* * libc/include/stdio.h (funopen): Change prototype ofCorinna Vinschen2013-10-2312-37/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | __readfn and __writefn parameter to match new definition of FILE's _read and _write methods. (_funopen_r): Ditto. (funopen): Ditto. (_funopen_r): Ditto. * libc/include/sys/config.h (_READ_WRITE_BUFSIZE_TYPE) Define as type int if not already defined. Add comment to explain. * libc/include/sys/reent.h: Include stddef.h. (struct __sFILE): Change type of last parameter in declaration of _read and _write methods to _READ_WRITE_BUFSIZE_TYPE. (struct __sFILE64): Ditto. * libc/stdio/local.h (__sread): Declare with last parameter set to _READ_WRITE_BUFSIZE_TYPE. (__seofread): Ditto. (__swrite): Ditto. (__swrite64): Ditto. * libc/stdio/fvwrite.c (__sfvwrite_r): Change type of local variables w and s to _READ_WRITE_RETURN_TYPE. * libc/stdio/fflush.c (__sflush_r): Change type of local variables n and t to _READ_WRITE_BUFSIZE_TYPE and _READ_WRITE_RETURN_TYPE. Add local variables flags to keep _flags value. * libc/stdio/fmemopen.c (fmemreader): Align to above change. (fmemwriter): Ditto. * libc/stdio/fopencookie.c (fcreader): Ditto. (fcwriter): Ditto. * libc/stdio/funopen.c (funread): Ditto. (funwrite): Ditto. (funreader): Ditto. (funwriter): Ditto. * libc/stdio/open_memstream.c (memwriter): Ditto. * libc/stdio/stdio.c (__sread): Ditto. (__seofread): Ditto. (__swrite): Ditto. * libc/stdio64/stdio64.c (__swrite64): Ditto.
* * libc/include/sys/unistd.h (MAXPATHLEN): Delete.Corinna Vinschen2013-10-184-6/+4
| | | | | | * libc/include/sys/param.h (MAXPATHLEN): Define. * libc/sys/rtems/sys/param.h (MAXPATHLEN): Likewise. * libc/unix/getcwd.c: Include <sys/param.h> for MAXPATHLEN.
* 2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2013-10-151-23/+33
| | | | | * libc/libc/sys/rtems/sys/param.h: Update some parameters to the latest FreeBSD values.
* 2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2013-10-151-0/+3
| | | | * libc/sys/rtems/machine/_types.h (_HAVE_SYSTYPES): Define.
* 2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2013-10-153-5/+4
| | | | | | | * libc/sys/rtems/machine/_types.h (__dev_t): Define. (__dev_t_defined) Likewise. * libc/include/sys/_types.h (__dev_t): Delete RTEMS specific definition.
* 2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2013-10-151-26/+0
| | | | | * libc/sys/rtems/machine/_types.h (_ssize_t): Delete. (__ssize_t_defined) Likewise.
* 2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2013-10-151-92/+18
| | | | | | | | | | | | | | | | | | * libc/include/machine/_default_types.h (__int8_t): Define via <stdint.h> provided type. (__uint8_t): Likewise. (__int8_least_t): Likewise. (__uint8_least_t): Likewise. (__int16_t): Likewise. (__uint16_t): Likewise. (__int16_least_t): Likewise. (__uint16_least_t): Likewise. (__int32_t): Likewise. (__uint32_t): Likewise. (__int32_least_t): Likewise. (__uint32_least_t): Likewise. (__int64_t): Likewise. (__uint64_t): Likewise.
* 2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2013-10-151-0/+2
| | | | | * libc/include/paths.h (_PATH_DEVNULL): Define. (_PATH_DEVZERO): Likewise.
* 2013-10-03 Steve Ellcey <sellcey@mips.com>Steve Ellcey2013-10-034-150/+387
| | | | | | | * libc/machine/mips/memset.c: Remove. * libc/machine/mips/memset.S: New. * libc/machine/mips/Makefile.am: Change memset.c to memset.S * libc/machine/mips/Makefile.in: Regenerate.
* 2013-10-01 Petr Hosek <phosek@chromium.org>Jeff Johnston2013-10-014-4/+708
| | | | | | | | | * configure.host: Disable new posix_spawn function for all users of posix dir except Cygwin. * libc/posix/Makefile.am: Add support for new posix_spawn function. * libc/posix/Makefile.in: Regenerate. * libc/posix/posix_spawn.c: New file. * libc/include/spawn.h: Ditto.
* 2013-09-13 Joey Ye <joey.ye@arm.com>Jeff Johnston2013-09-131-2/+2
| | | | | * libc/stdlib/nano-mallocr.c (nano_allopt): Typo fixed to ... (nano_mallopt): ... this.
* 2013-09-12 Sebastian Huber <sebastian.huber@embedded-brains.de>Jeff Johnston2013-09-122-80/+199
| | | | | | * libc/include/sys/cdefs.h: Synchronize with latest FreeBSD version. * libc/include/stdatomic.h: Likewise.
* * libc/include/search.h (__compar_fn_t): Add typedef.Yaakov Selkowitz2013-09-082-5/+15
| | | | | | (tdelete, tfind, tsearch): Use it. * libc/include/stdlib.h (__compar_fn_t): Add typedef. (bsearch, qsort): Use it.
* * libc/stdlib/__atexit.c (__register_exitproc): NULL-ifyCorinna Vinschen2013-08-191-0/+2
| | | | | _on_exit_args_ptr when creating a new _atexit structure while _REENT_SMALL is defined.
* * libc/configure.in (--enable-newlib-wchar-orient): Remove.Corinna Vinschen2013-08-124-221/+133
| | | | | | * libc/configure: Regenerated. * libc/stdio/Makefile.am (NEWLIB_WIDE_ORIENT): Remove. * libc/stdio/Makefile.in: Regenerated.
* * libc/sys/arm/crt0.S: Remove 'start'.Corinna Vinschen2013-08-121-1/+0
|
* 2013-08-08 Freddie Chopin <freddie_chopin@op.pl>Joel Sherrill2013-08-081-1/+1
| | | | * libc/string/strncat.c: Fix typo in documentation.