mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 00:10:10 +00:00
Mon Sep 18 01:58:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* Makefile (subdirs): Add sysvipc. * stdlib/srand48_r.c (srand48_r): Use UL suffix for huge constant. * stdlib/drand48-iter.c (__drand48_iterate): Likewise. * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Call __file_set_size instead of __file_truncate. * features.h (__USE_REENTRANT): New macro.
This commit is contained in:
parent
e537c55ea9
commit
aa9109070f
12
ChangeLog
12
ChangeLog
@ -1,5 +1,17 @@
|
|||||||
|
Mon Sep 18 01:58:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
|
||||||
|
|
||||||
|
* Makefile (subdirs): Add sysvipc.
|
||||||
|
|
||||||
|
* stdlib/srand48_r.c (srand48_r): Use UL suffix for huge constant.
|
||||||
|
* stdlib/drand48-iter.c (__drand48_iterate): Likewise.
|
||||||
|
|
||||||
Sun Sep 17 18:29:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
|
Sun Sep 17 18:29:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
|
||||||
|
|
||||||
|
* hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Call
|
||||||
|
__file_set_size instead of __file_truncate.
|
||||||
|
|
||||||
|
* features.h (__USE_REENTRANT): New macro.
|
||||||
|
|
||||||
* sysdeps/mach/hurd/truncate.c: Call __file_set_size instead of
|
* sysdeps/mach/hurd/truncate.c: Call __file_set_size instead of
|
||||||
__file_truncate.
|
__file_truncate.
|
||||||
* sysdeps/mach/hurd/ftruncate.c: Likewise.
|
* sysdeps/mach/hurd/ftruncate.c: Likewise.
|
||||||
|
2
Makefile
2
Makefile
@ -53,7 +53,7 @@ endif
|
|||||||
# These are the subdirectories containing the library source.
|
# These are the subdirectories containing the library source.
|
||||||
subdirs := csu assert ctype locale math setjmp signal stdio stdlib \
|
subdirs := csu assert ctype locale math setjmp signal stdio stdlib \
|
||||||
malloc string time dirent grp pwd posix io termios resource \
|
malloc string time dirent grp pwd posix io termios resource \
|
||||||
socket misc gnulib $(wildcard crypt) manual \
|
misc socket sysvipc gnulib $(wildcard crypt) manual \
|
||||||
$(sysdep-subdirs) elf
|
$(sysdep-subdirs) elf
|
||||||
export subdirs := $(subdirs) # Benign, useless in GNU make before 3.63.
|
export subdirs := $(subdirs) # Benign, useless in GNU make before 3.63.
|
||||||
|
|
||||||
|
@ -45,6 +45,7 @@ Cambridge, MA 02139, USA. */
|
|||||||
__USE_SVID Define SVID things.
|
__USE_SVID Define SVID things.
|
||||||
__USE_MISC Define things common to BSD and System V Unix.
|
__USE_MISC Define things common to BSD and System V Unix.
|
||||||
__USE_GNU Define GNU extensions.
|
__USE_GNU Define GNU extensions.
|
||||||
|
__USE_REENTRANT Define reentrant/thread-safe *_r functions.
|
||||||
__FAVOR_BSD Favor 4.3BSD things in cases of conflict.
|
__FAVOR_BSD Favor 4.3BSD things in cases of conflict.
|
||||||
|
|
||||||
The macro `__GNU_LIBRARY__' is defined by this file unconditionally.
|
The macro `__GNU_LIBRARY__' is defined by this file unconditionally.
|
||||||
@ -64,6 +65,7 @@ Cambridge, MA 02139, USA. */
|
|||||||
#undef __USE_SVID
|
#undef __USE_SVID
|
||||||
#undef __USE_MISC
|
#undef __USE_MISC
|
||||||
#undef __USE_GNU
|
#undef __USE_GNU
|
||||||
|
#undef __USE_REENTRANT
|
||||||
#undef __FAVOR_BSD
|
#undef __FAVOR_BSD
|
||||||
|
|
||||||
|
|
||||||
@ -125,6 +127,10 @@ Cambridge, MA 02139, USA. */
|
|||||||
#define __USE_GNU 1
|
#define __USE_GNU 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined (__USE_GNU) || defined (__USE_MISC)
|
||||||
|
#define __USE_REENTRANT 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* This macro indicates that the installed library is the GNU C Library.
|
/* This macro indicates that the installed library is the GNU C Library.
|
||||||
Its value must be incremented whenever any existing library interface
|
Its value must be incremented whenever any existing library interface
|
||||||
|
@ -126,7 +126,7 @@ __hurd_file_name_lookup_retry (file_t crdir,
|
|||||||
if (!err && (flags & O_SHLOCK))
|
if (!err && (flags & O_SHLOCK))
|
||||||
; /* XXX */
|
; /* XXX */
|
||||||
if (!err && (flags & O_TRUNC))
|
if (!err && (flags & O_TRUNC))
|
||||||
err = __file_truncate (*result, 0);
|
err = __file_set_size (*result, 0);
|
||||||
|
|
||||||
if (err)
|
if (err)
|
||||||
__mach_port_deallocate (__mach_task_self (), *result);
|
__mach_port_deallocate (__mach_task_self (), *result);
|
||||||
|
@ -48,8 +48,8 @@ __drand48_iterate (xsubi, buffer)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
buffer->a[2] = 0x5deec;
|
buffer->a[2] = 0x5deecUL;
|
||||||
buffer->a[1] = 0xe66d0000;
|
buffer->a[1] = 0xe66d0000UL;
|
||||||
buffer->a[0] = 0;
|
buffer->a[0] = 0;
|
||||||
}
|
}
|
||||||
buffer->c = 0xb;
|
buffer->c = 0xb;
|
||||||
|
@ -44,7 +44,7 @@ srand48_r (seedval, buffer)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
buffer->X[2] = seedval;
|
buffer->X[2] = seedval;
|
||||||
buffer->X[1] = 0x330e0000;
|
buffer->X[1] = 0x330e0000UL;
|
||||||
buffer->X[0] = 0;
|
buffer->X[0] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user