forked from bminor/glibc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mon Jan 22 10:40:40 1996 Roland McGrath <[email protected]>
* sysdeps/posix/getcwd.c [__GNU_LIBRARY__]: Include unistd.h. * io/fts.h (FTSENT): Define fts_compar member with prototype. * hurd/hurd.h: Use prototype in getcttyid decl. * stdlib/l64a.c: Fix typo in last change. * stdlib/drand48-iter.c: Test limits.h macros instead of sizeof for determining size of types. * stdlib/srand48_r.c: Likewise. * misc/utmp.h: Declare login, logout, logwtmp. * misc/logout.c: Declare argument as pointer to const. * misc/login.c: Likewise. * misc/logwtmp.c: Likewise. Include time.h, string.h. * misc/efgcvt_r.c: Include stdlib.h. * io/mknod.c: Include sys/types.h. * gmon/sys/gmon.h: Declare monstartup, _mcleanup. * csu/gmon-start.c (_start, etext): Declare with prototypes. * stdio-common/vfscanf.c (%[): Fix range handling.
- Loading branch information
Roland McGrath
committed
Jan 23, 1996
1 parent
f2f7f9e
commit 1d8dc42
Showing
17 changed files
with
107 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,33 @@ | ||
Mon Jan 22 10:40:40 1996 Roland McGrath <[email protected]> | ||
|
||
* sysdeps/posix/getcwd.c [__GNU_LIBRARY__]: Include unistd.h. | ||
|
||
* io/fts.h (FTSENT): Define fts_compar member with prototype. | ||
|
||
* hurd/hurd.h: Use prototype in getcttyid decl. | ||
|
||
* stdlib/l64a.c: Fix typo in last change. | ||
|
||
* stdlib/drand48-iter.c: Test limits.h macros instead of sizeof | ||
for determining size of types. | ||
* stdlib/srand48_r.c: Likewise. | ||
|
||
* misc/utmp.h: Declare login, logout, logwtmp. | ||
* misc/logout.c: Declare argument as pointer to const. | ||
* misc/login.c: Likewise. | ||
* misc/logwtmp.c: Likewise. | ||
Include time.h, string.h. | ||
|
||
* misc/efgcvt_r.c: Include stdlib.h. | ||
|
||
* io/mknod.c: Include sys/types.h. | ||
|
||
* gmon/sys/gmon.h: Declare monstartup, _mcleanup. | ||
|
||
* csu/gmon-start.c (_start, etext): Declare with prototypes. | ||
|
||
* stdio-common/vfscanf.c (%[): Fix range handling. | ||
|
||
Sun Jan 21 00:55:25 1996 Roland McGrath <[email protected]> | ||
|
||
* misc/Makefile (headers): Rename queue.h to sys/queue.h. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* Copyright (C) 1995 Free Software Foundation, Inc. | ||
/* Copyright (C) 1995, 1996 Free Software Foundation, Inc. | ||
This file is part of the GNU C Library. | ||
Contributed by Ulrich Drepper <[email protected]>, August 1995. | ||
|
@@ -19,6 +19,7 @@ Boston, MA 02111-1307, USA. */ | |
|
||
#include <errno.h> | ||
#include <stdlib.h> | ||
#include <limits.h> | ||
|
||
|
||
/* Global state for non-reentrent functions. */ | ||
|
@@ -40,18 +41,15 @@ __drand48_iterate (xsubi, buffer) | |
/* Initialize buffer, if not yet done. */ | ||
if (!buffer->init) | ||
{ | ||
if (sizeof (unsigned short int) == 2) | ||
{ | ||
buffer->a[2] = 0x5; | ||
buffer->a[1] = 0xdeec; | ||
buffer->a[0] = 0xe66d; | ||
} | ||
else | ||
{ | ||
buffer->a[2] = 0x5deecUL; | ||
buffer->a[1] = 0xe66d0000UL; | ||
buffer->a[0] = 0; | ||
} | ||
#if (USHRT_MAX == 0xffffU) | ||
buffer->a[2] = 0x5; | ||
buffer->a[1] = 0xdeec; | ||
buffer->a[0] = 0xe66d; | ||
#else | ||
buffer->a[2] = 0x5deecUL; | ||
buffer->a[1] = 0xe66d0000UL; | ||
buffer->a[0] = 0; | ||
#endif | ||
buffer->c = 0xb; | ||
buffer->init = 1; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* Copyright (C) 1995 Free Software Foundation, Inc. | ||
/* Copyright (C) 1995, 1996 Free Software Foundation, Inc. | ||
This file is part of the GNU C Library. | ||
Contributed by Ulrich Drepper <[email protected]>, August 1995. | ||
|
@@ -18,6 +18,7 @@ not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
Boston, MA 02111-1307, USA. */ | ||
|
||
#include <stdlib.h> | ||
#include <limits.h> | ||
|
||
int | ||
srand48_r (seedval, buffer) | ||
|
@@ -28,18 +29,15 @@ srand48_r (seedval, buffer) | |
if (sizeof (long) > 4) | ||
seedval &= 0xffffffffl; | ||
|
||
if (sizeof (unsigned short int) == 2) | ||
{ | ||
buffer->X[2] = seedval >> 16; | ||
buffer->X[1] = seedval & 0xffffl; | ||
buffer->X[0] = 0x330e; | ||
} | ||
else | ||
{ | ||
buffer->X[2] = seedval; | ||
buffer->X[1] = 0x330e0000UL; | ||
buffer->X[0] = 0; | ||
} | ||
#if (USHRT_MAX == 0xffffU) | ||
buffer->X[2] = seedval >> 16; | ||
buffer->X[1] = seedval & 0xffffl; | ||
buffer->X[0] = 0x330e; | ||
#else | ||
buffer->X[2] = seedval; | ||
buffer->X[1] = 0x330e0000UL; | ||
buffer->X[0] = 0; | ||
#endif | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters