Jeff Johnston
a704d94a86
Tue Jun 20 14:30:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
...
* 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.
2000-06-20 18:34:57 +00:00
Corinna Vinschen
b585720b59
* libc/include/sys/unistd.h: Add prototypes for `seteuid' and
...
`setegid' provided by Cygwin.
2000-06-16 21:04:37 +00:00
Ranjith Kumaran
d67b540418
New file. A brief list of who maintains newlib.
2000-06-15 20:17:40 +00:00
Corinna Vinschen
01c327ba27
* libc/stdio/fdopen.c (_fdopen_r): Take explicit given
...
bin/textmode into account for Cygwin.
2000-06-14 22:25:46 +00:00
Jeff Johnston
46a43a99c6
Fri Jun 9 14:28:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
...
* 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.
2000-06-09 18:50:05 +00:00
Ranjith Kumaran
a68078cbb8
Thu Jun 8 21:18:00 2000 Ranjith Kumaran <ranjith@cygnus.com>
...
* libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX.
* libc/include/sys/config.h: Define __RAND_MAX.
2000-06-09 01:13:36 +00:00
Jeff Johnston
518882f3a2
Thu Jun 8 17:54:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
...
* libc/stdlib/rand_r.c: New algorithm that meets minimal
standard.
2000-06-08 21:56:18 +00:00
Christopher Faylor
d51d968a80
* libc/include/string.h: Work around problem with strsignal and gdb.
2000-06-03 03:03:03 +00:00
Christopher Faylor
d2dd57657c
* libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
...
* 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 *.
2000-05-30 17:18:05 +00:00
Jeff Johnston
8887021868
2000-05-26 Marek Michalkiewicz <marekm@linux.org.pl>
...
* libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
* libm/common/s_log1p.c (log1p): Likewise.
* libm/common/s_scalbn.c (scalbn): Likewise.
* libm/math/e_log.c: Likewise.
* libm/math/e_asin.c: Likewise.
* libm/math/ef_asin.c: Likewise.
* libm/math/e_j0.c (pzero, qzero): Remove redundant test.
* libm/math/e_j1.c (pone, qone): Likewise.
* libm/math/ef_j0.c (pzerof, qzerof): Likewise.
* libm/math/ef_j1.c (ponef, qonef): Likewise.
* libm/mathfp/e_j0.c (pzero, qzero): Likewise.
* libm/mathfp/e_j1.c (pone, qone): Likewise.
* libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
* libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
2000-05-26 22:42:39 +00:00
DJ Delorie
c4e1aa0115
* libc/stdio/stdio.c (__stextmode): new, see if file is text mode
...
(__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
2000-05-23 23:51:54 +00:00
DJ Delorie
f43932615d
* libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLE
2000-05-18 19:03:10 +00:00
Jeff Johnston
2b533fac14
Mon May 15 18:54:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
...
* libc/include/ctype.h: Changed tolower and toupper macros
to use __extension__ to prevent pedantic warnings.
2000-05-15 23:00:24 +00:00
Ranjith Kumaran
75362a768b
Mon May 15 14:26:00 2000 Joel Sherrill <joel@oarcorp.com>
...
* libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
structures.
2000-05-15 18:30:03 +00:00
Jim Wilson
ec463fc7a3
Add minimal ia64 support.
...
* libc/include/machine/ieeefp.h: Add ia64 support.
* configure.host: Likewise.
2000-05-11 02:28:06 +00:00
Jeff Johnston
f35ceefaf0
Wed May 10 13:52:24 2000 Egor Duda <deo@logos-m.ru>
...
* 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.
2000-05-10 17:58:29 +00:00
Corinna Vinschen
b96fca8c5a
* libc/include/sys/errno.h: Add define for ENOSHARE ("No such
...
host or network path") used by cygwin. Add some comments.
2000-05-03 15:59:37 +00:00
Jeff Johnston
49d64538cd
Tue May 02 23:45:48 2000 DJ Delorie <dj@cygnus.com>
...
* 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
2000-05-03 03:57:19 +00:00
Alexandre Oliva
91fb1e7f6c
* libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use
...
post-increment when it is worth it, spacewise.
2000-04-27 10:49:16 +00:00
Jeff Johnston
c87be3e4d6
Mon Apr 17 12:46:00 2000 Marek Michalkiewicz <marekm@linux.org.pl>
...
* 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.
2000-04-17 17:10:18 +00:00
Corinna Vinschen
11f5b06579
* libc/posix/execvp.c (execvp): Check path for
...
trailing slash.
2000-04-16 10:53:02 +00:00
Corinna Vinschen
796e3b20bc
* newlib/libc/include/sys/unistd.h: Add prototypes for
...
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.
2000-04-02 20:42:42 +00:00
Jeff Johnston
b489803aee
Fri Mar 24 15:34:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
...
* 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.
2000-03-24 20:42:18 +00:00
Nick Clifton
79908d67bc
Fix compile time warning messages.
...
Add "cc" to list of registers clobbered bu do_AgelSWI
2000-03-24 18:17:17 +00:00
Fernando Nasser
7684ddaf52
Thu Mar 22 14:57:00 2000 Fernando Nasser <fnasser@redhat.com>
...
* libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid
information to be clobbered by an Angel C library support syscall.
2000-03-23 20:19:13 +00:00
Jeff Johnston
b8ec20c809
Tue Mar 21 19:08:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
...
* libc/stdlib/envlock.c: Fixed comment typo.
2000-03-22 00:09:49 +00:00
Jeff Johnston
fae4c299f1
Fri Mar 17 15:37:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
...
* 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.
2000-03-17 20:40:20 +00:00
Ranjith Kumaran
dc98804b1c
Mon Mar 13 15:22:00 2000 Sergei Organov <osv@javad.ru>
...
* libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
2000-03-13 20:41:18 +00:00
Jeff Johnston
5ed2f523e5
Fri Mar 10 16:09:20 2000 Jeff Johnston <jjohnstn@cygnus.com>
...
* libc/include/string.h: Include <sys/types.h>.
2000-03-10 21:13:28 +00:00
Alexandre Oliva
1cf0ee341f
* libc/stdio/putw.c (putw): Return 0 on success, to be compliant
...
with XSH5, not SVID.
2000-03-10 17:57:32 +00:00
Jeff Johnston
e9c9497815
Thu Mar 9 17:20:41 2000 Jeff Johnston <jjohnstn@cygnus.com>
...
* 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.
2000-03-09 22:25:01 +00:00
Jeff Johnston
3072163c0f
Wed Mar 8 17:11:41 2000 Jeff Johnston <jjohnstn@cygnus.com>
...
* libc/include/string.h: Changed last argument to size_t.
* libc/string/swab.c: Changed last argument to size_t.
2000-03-08 22:16:06 +00:00
Alexandre Oliva
f205ea7a03
* libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
...
(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.
2000-03-08 04:01:49 +00:00
Alexandre Oliva
85dd2e5b73
* libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
...
(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.
2000-03-08 03:46:01 +00:00
Alexandre Oliva
c505305855
* libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
...
(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.
2000-03-08 03:42:25 +00:00
Jeff Johnston
dbaf37cf83
Fri Feb 25 14:50:50 2000 Jeff Johnston <jjohnstn@cygnus.com>
...
* libc/stdio/flags.c (__sflags): Added check that mode[1]
is non-null before looking at mode[2].
2000-02-25 19:52:27 +00:00
Ranjith Kumaran
bc019ef210
Thu Feb 24 11:43:00 2000 Ran Cabell <rcabell@norfolk.infi.net>
...
* 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.
2000-02-24 16:48:28 +00:00
Ranjith Kumaran
cd641b2d55
Tue Feb 22 14:37:00 2000 Ran Cabell <rcabell@norfolk.infi.net>
...
* libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
_DOUBLE_IS_32BITS.
2000-02-22 19:44:37 +00:00
Jeff Johnston
b0ba0ac217
Mon Feb 21 11:43:50 2000 Jeff Johnston <jjohnstn@cygnus.com>
...
* 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.
2000-02-21 16:59:23 +00:00
Christopher Faylor
17869f8bf7
Update.
2000-02-21 05:18:36 +00:00
Christopher Faylor
8a0efa53e4
import newlib-2000-02-17 snapshot
2000-02-17 19:39:52 +00:00