summaryrefslogtreecommitdiffstats
path: root/newlib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>Jeff Johnston2000-08-247-10/+22
| | | | | | | | | | | | | | | | | | | | | | | * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions like x << y-z to the equivalent x << (y-z). (d2b): changed if statements with assignment to perform the assignment prior to the if check. * libc/reent/reent.c: included stdlib.h for "_free_r" prototype. * libc/unix/getpass.c (getpass): moved "echo" assignment out of if. * libc/unix/ttyname.c: included string.h for "strcpy" prototype. * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and || precedence. * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c). Added "_execve" prototype (for execl.c, execle.c, execv.c, and execve.c). * libc/posix/popen.c (popen): added parentheses to clarify && and || precedence. * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to clarify && and || precendence (and to remove pascalism). * libm/math/e_sinh.c (__ieee754_sinh): Ditto. * libm/math/s_infconst.c: added another pair of braces to all initializers for __infinity (need three: for __infinity[1] array, for union __dmath, and for i[2]).
* 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>Jeff Johnston2000-08-2413-4/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/stdlib/abort.c: changed description: uses "raise" instead of "getpid" and "kill"; added: uses "write" and "_exit". Also included unistd.h for "_exit" prototype. * libc/stdlib/system.c: included unistd.h for "execve" prototype, reent.h for "_fork_r" and "_wait_r" prototypes. (do_system): changed extern char *environ[] to POSIX-friendly extern char **environ. * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp" prototypes. * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype. * libc/reent/execr.c: included sys/wait.h for "wait" prototype. * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype. * libc/reent/openr.c: included fcntl.h for "open" prototype. * libc/reent/signalr.c: included signal.h for "kill" prototype, unistd.h for "getpid" prototype. * libc/reent/statr.c: included sys/stat.h for "stat" prototype. * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype. * libc/unix/getut.c (utmpname): removed local, incorrect "strdup" prototype. Also included stdlib.h for "abort", string.h for "strdup" and "strncmp" prototypes. * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and "strncpy", unistd.h for "read" and "close" prototypes. * libc/posix/execvp.c: included string.h for "strchr", "strlen", and "strcat" prototypes.
* 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>Jeff Johnston2000-08-245-7/+10
| | | | | | | | | | | | | * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's used later (ifdef __SCLE) * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's used later (ifdef MB_CAPABLE) * libc/string/memset.c (memset): removed unused variables "count" and "unaligned_addr" * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE) * libc/unix/getpwent.c (getpwnam): removed unused variables "uid" and "gid"
* 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>Jeff Johnston2000-08-243-8/+14
| | | | | | | | | | | | * libc/stdlib/envlock.c: changed documented "__env_lock" and "__env_unlock" prototype from "void *" or "char *" to "struct _reent *" to match real function. Also added include of envlock.h. * libc/stdlib/mlock.c: changed documented "__malloc_lock" and "__malloc_unlock" prototype from "void *" or "char *" to "struct _reent *" to match real function. * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock" prototypes (for getenv_r.c and setenv_r.c).
* * libc/unix/getut.c (utmpname): added _CONST to reflect common useDJ Delorie2000-08-221-1/+2
| | | | and prototype in cygwin's utmp.h
* 2000-08-16 Eric Fifer <efifer@sanwaint.com>Jeff Johnston2000-08-161-3/+5
| | | | * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
* Recode to clean up function prologues and epilogue and to allow the functionsNick Clifton2000-08-091-65/+99
| | | | to be used in a Thumb based toolchain.
* 2000-08-08 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2000-08-082-8/+12
| | | | | | | | | * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code so size of 0 results in nothing being written to string. Also fixed code so that when size is non-zero, there is only a maximum of size - 1 characters written to the array and a nul terminator is appended at the end. * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
* * libc/include/sys/config.h: define __IMPORT appropriatelyDJ Delorie2000-08-018-38/+28
| | | | | | | | | | * libc/include/ctype.h (_ctype_): use __IMPORT * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto * libc/include/math.h (__mb_cur_max): ditto * libc/include/time.h (_timezone, _daylight, _tzname): ditto * libc/include/unctrl.h (__unctrl, __unctrllen): ditto * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto * libc/include/unistd.h (environ): ditto
* Declare __infinity as an array to work around problems with small data supportMichael Meissner2000-07-281-3/+13
|
* * libc/include/math.h: Use appropriate dll import linkage for Cygwin.Christopher Faylor2000-07-271-0/+4
|
* * libc/stdio/vfprintf.c: pad 0.0 correctly with %eDJ Delorie2000-07-131-1/+1
|
* Wed Jun 28 14:08:00 2000 Keith Walker <keith.walker@arm.com>Jeff Johnston2000-06-281-0/+1
| | | | | * libc/sys/arm/crt0.S (.LC30): Added missing length parameter to argument list for AngelSWI_Reason_GetCmdLine.
* Tue Jun 27 15:49:00 2000 Marek Michalkiewicz <marekm@linux.org.pl>Jeff Johnston2000-06-272-1/+14
| | | | | | * configure.host: Add support for AVR target. * libc/include/machine/ieeefp.h: Likewise. * libc/include/sys/config.h: Likewise.
* Tue Jun 20 14:30:00 2000 Jeff Johnston <jjohnstn@cygnus.com>Jeff Johnston2000-06-202-2/+2
| | | | | | | * libc/include/sys/reent.h (_rand_next): Added __extension__ qualifier as long long type is not strict ANSI. * libc/stdlib/rand.c (rand): Added __extension__ qualifier to long long constant.
* * libc/include/sys/unistd.h: Add prototypes for `seteuid' andCorinna Vinschen2000-06-161-0/+4
| | | | `setegid' provided by Cygwin.
* * libc/stdio/fdopen.c (_fdopen_r): Take explicit givenCorinna Vinschen2000-06-141-0/+5
| | | | bin/textmode into account for Cygwin.
* Fri Jun 9 14:28:00 2000 Jeff Johnston <jjohnstn@cygnus.com>Jeff Johnston2000-06-092-6/+11
| | | | | | | | * libc/include/sys/reent.h (_rand_next): Changed to unsigned long long and moved to end of _reent struct in _new union. (_REENT_INIT): Changed to move _rand_next initialization. * libc/stdlib/rand.c (rand): Changed to use unsigned long long linear congruential algorithm that is used by DJGPP.
* Thu Jun 8 21:18:00 2000 Ranjith Kumaran <ranjith@cygnus.com>Ranjith Kumaran2000-06-092-1/+7
| | | | | * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX. * libc/include/sys/config.h: Define __RAND_MAX.
* Thu Jun 8 17:54:00 2000 Jeff Johnston <jjohnstn@cygnus.com>Jeff Johnston2000-06-081-1/+31
| | | | | * libc/stdlib/rand_r.c: New algorithm that meets minimal standard.
* * libc/include/string.h: Work around problem with strsignal and gdb.Christopher Faylor2000-06-031-0/+2
|
* * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__Christopher Faylor2000-05-3013-23/+23
| | | | | | | | | | | | | | | * libc/include/malloc.h: Ditto. * libc/include/process.h: Ditto. * libc/include/stdio.h: Ditto. * libc/include/stdlib.h: Ditto. * libc/include/time.h: Ditto. * libc/include/machine/setjmp.h: Ditto. * libc/include/sys/errno.h: Ditto. * libc/include/sys/signal.h: Ditto. * libc/include/sys/stat.h: Ditto. * libc/include/sys/time.h: Ditto. * libc/include/sys/unistd.h: Ditto. * libc/include/string.h: Ditto. strsignal should return a const char *.
* * libc/stdio/stdio.c (__stextmode): new, see if file is text modeDJ Delorie2000-05-237-4/+50
| | | | | | | | | | | | (__sread): always read in binary mode (__swrite): always write in binary mode * libc/include/stdio.h: no getc/putc macros for cygwin; causes compatibility issues with different dll versions * libc/stdio/fopen.c: use __stextmode * libc/stdio/fdopen.c: ditto * libc/stdio/freopen.c: ditto * libc/stdio/findfp.c: set up __SCLE for std{in,out,err} * libc/stdio/local.h: declare __stextmode
* * libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLEDJ Delorie2000-05-181-0/+19
|
* Mon May 15 18:54:00 2000 Jeff Johnston <jjohnstn@cygnus.com>Jeff Johnston2000-05-151-2/+2
| | | | | * libc/include/ctype.h: Changed tolower and toupper macros to use __extension__ to prevent pedantic warnings.
* Mon May 15 14:26:00 2000 Joel Sherrill <joel@oarcorp.com>Ranjith Kumaran2000-05-151-0/+27
| | | | | * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval structures.
* Add minimal ia64 support.Jim Wilson2000-05-111-1/+7
| | | | | * libc/include/machine/ieeefp.h: Add ia64 support. * configure.host: Likewise.
* Wed May 10 13:52:24 2000 Egor Duda <deo@logos-m.ru>Jeff Johnston2000-05-101-1/+1
| | | | | | * libc/time/asctime_r.c (asctime_r): Change output format. Day of month is now padded with space, not zero. This now conforms to ANSI standard.
* * libc/include/sys/errno.h: Add define for ENOSHARE ("No suchCorinna Vinschen2000-05-031-1/+2
| | | | host or network path") used by cygwin. Add some comments.
* Tue May 02 23:45:48 2000 DJ Delorie <dj@cygnus.com>Jeff Johnston2000-05-036-2/+131
| | | | | | | | | | | | * libc/include/stdio.h (FILE): define __SCLE for "convert line endings" for Cygwin. (__sgetc): convert line endings if needed (__sputc): ditto * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode * libc/stdio/fopen.c (_fopen_r): ditto * libc/stdio/freopen.c (freopen): ditto * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE * libc/stdio/fvwrite.c (__sfvwrite): ditto
* * libc/machine/mn10300/setjmp.S (setjmp, longjmp): UseAlexandre Oliva2000-04-271-8/+10
| | | | post-increment when it is worth it, spacewise.
* Mon Apr 17 12:46:00 2000 Marek Michalkiewicz <marekm@linux.org.pl>Jeff Johnston2000-04-1715-39/+41
| | | | | | | | | | | | | | | | | | | | | | | | * libc/signal/signal.c (_signal_r) : Removed unused local variable temp. * libc/stdio/findfp.c (std): Added declaration of flags and file. * libc/stdio/mktemp.c (_gettemp, _mkstemp_r, mkstemp): Added int return type. * libc/stdio/putchar.c (putchar): Added return statement. * libc/stdio/refill.c (lflush): Added correct parentheses. * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto. * libc/stdio/vfscanf.c (__svfscanf): Changed sprintf call which prints long value to use l qualifier. * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning messages and initialized local values: ilim, ilim1, and spec_case. * libc/stdlib/ecvtbuf.c (print_e): Removed unused variable dp. * libc/stdlib/mbctype.h (_issjis1, _issjis2): Added parentheses. * libc/stdlib/mprec.c: Ditto. * libc/stdlib/setenv_r.c: Ditto. * libc/stdlib/strtod.c: Ditto. * libc/stdlib/strtol.c: Ditto. * libc/stdlib/strtoul.c: Ditto. * libm/common/sf_expm1.c: Added curly braces to if else clauses. * libm/common/sf_log1p.c: Ditto. * libm/common/sf_scalbn.c: Ditto. * libm/math/ef_log.c: Ditto.
* * libc/posix/execvp.c (execvp): Check path forCorinna Vinschen2000-04-161-1/+1
| | | | trailing slash.
* * newlib/libc/include/sys/unistd.h: Add prototypes forCorinna Vinschen2000-04-021-0/+3
| | | | | | | | | | | | | | fchmod, fchown, lchown. * winsup/cygwin/syscalls.cc (chown_worker): Use previous uid/gid if new uid/gid is -1. New static function with chown functionality. (chown): Call chown_worker with SYMLINK_FOLLOW. (fchown): New function. Call chown_worker with SYMLINK_FOLLOW. (lchown): New function. Call chown_worker with SYMLINK_IGNORE. * cygwin.din: Add symbols for fchown, lchown. * path.cc (symlink): Call `set_file_attribute()' and `SetFileAttributeA()' instead of `chmod()' to set uid/gid correct.
* Fri Mar 24 15:34:00 2000 Jeff Johnston <jjohnstn@cygnus.com>Jeff Johnston2000-03-2498-98/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * acinclude.m4: Changed release to 1.8.2. * aclocal.m4 configure doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure libc/machine/aclocal.m4 libc/machine/configure libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure libc/machine/arm/aclocal.m4 libc/machine/arm/configure libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure libc/machine/i386/aclocal.m4 libc/machine/i386/configure libc/machine/i960/aclocal.m4 libc/machine/i960/configure libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure libc/machine/mips/aclocal.m4 libc/machine/mips/configure libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure libc/machine/sh/aclocal.m4 libc/machine/sh/configure libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure libc/machine/v850/aclocal.m4 libc/machine/v850/configure libc/machine/w65/aclocal.m4 libc/machine/w65/configure libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure libc/sys/aclocal.m4 libc/sys/aclocal.m4 libc/sys/configure libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure libc/sys/arm/aclocal.m4 libc/sys/arm/configure libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure libc/sys/go32/aclocal.m4 libc/sys/go32/configure libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure libc/sys/netware/aclocal.m4 libc/sys/netware/configure libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure libc/sys/sh/aclocal.m4 libc/sys/sh/configure libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure libc/sys/w65/aclocal.m4 libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure libm/aclocal.m4 libm/configure: Regenerated.
* Fix compile time warning messages.Nick Clifton2000-03-241-21/+27
| | | | Add "cc" to list of registers clobbered bu do_AgelSWI
* Thu Mar 22 14:57:00 2000 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2000-03-231-1/+6
| | | | | * libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid information to be clobbered by an Angel C library support syscall.
* Tue Mar 21 19:08:00 2000 Jeff Johnston <jjohnstn@cygnus.com>Jeff Johnston2000-03-221-1/+1
| | | | * libc/stdlib/envlock.c: Fixed comment typo.
* Fri Mar 17 15:37:00 2000 Jeff Johnston <jjohnstn@cygnus.com>Jeff Johnston2000-03-171-2/+7
| | | | | | * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point code to update nread as each character is processed instead of using buffer contents which throw away leading zeroes.
* Fri Mar 10 16:09:20 2000 Jeff Johnston <jjohnstn@cygnus.com>Jeff Johnston2000-03-101-0/+1
| | | | * libc/include/string.h: Include <sys/types.h>.
* * libc/stdio/putw.c (putw): Return 0 on success, to be compliantAlexandre Oliva2000-03-101-5/+2
| | | | with XSH5, not SVID.
* Thu Mar 9 17:20:41 2000 Jeff Johnston <jjohnstn@cygnus.com>Jeff Johnston2000-03-092-5/+5
| | | | | | | | * libc/include/string.h: Changed last argument back to ssize_t to make it compatible with XPG4 definition which is defined in <unistd.h>. There is a conflict in the SVID 3 and XPG4 definitions and newlib will settle with XPG4. * libc/string/swab.c: Ditto.
* Wed Mar 8 17:11:41 2000 Jeff Johnston <jjohnstn@cygnus.com>Jeff Johnston2000-03-082-3/+3
| | | | | * libc/include/string.h: Changed last argument to size_t. * libc/string/swab.c: Changed last argument to size_t.
* * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.Alexandre Oliva2000-03-085-37/+65
| | | | | | | | (CHEWOUT_FILES): Added unlinkr.def. * libc/reent/Makefile.in: Rebuilt. * libc/sys.tex: Include unlinkr.def. * libc/reent/linkr.c (_unlink_r): Moved to... * libc/reent/unlinkr.c: ... new file.
* * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.Alexandre Oliva2000-03-085-3/+54
| | | | | | | | (CHEWOUT_FILES): Added swab.def. * libc/string/Makefile.in: Rebuilt. * libc/string/string.tex: Include swab.def. * libc/include/string.h (swab): Declare. * libc/string/swab.c: New file.
* * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.Alexandre Oliva2000-03-085-2/+151
| | | | | | | | (CHEWOUT_FILES): Added getw.def and putw.def. * libc/stdio/Makefile.in: Rebuilt. * libc/stdio/stdio.tex: Include getw.def and putw.def. * libc/stdio/getw.c: New file. * libc/stdio/putw.c: New file.
* Fri Feb 25 14:50:50 2000 Jeff Johnston <jjohnstn@cygnus.com>Jeff Johnston2000-02-251-3/+3
| | | | | * libc/stdio/flags.c (__sflags): Added check that mode[1] is non-null before looking at mode[2].
* Thu Feb 24 11:43:00 2000 Ran Cabell <rcabell@norfolk.infi.net>Ranjith Kumaran2000-02-241-0/+1
| | | | | | | | | * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS. * libm/mathfp/sf_atan.c: Ditto. Thu Feb 24 11:39:00 2000 Joel Sherrill <joel@OARcorp.com> * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
* Mon Feb 21 11:43:50 2000 Jeff Johnston <jjohnstn@cygnus.com>Jeff Johnston2000-02-211-2/+1
| | | | | | * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT call prior to calling _VFPRINTF_R so reentrant data area is set. (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
* Update.Christopher Faylor2000-02-212-7/+20
|