Commit Graph

1678 Commits

Author SHA1 Message Date
Ulrich Drepper
d095d9e7f9 Correct handling of old and new kernel version. Add symbol versions. 1999-12-02 08:25:02 +00:00
Ulrich Drepper
4bf6e7d192 Add getrlimit, setrlimit, getrlimit64 and setrlimit64 to version GLIBC_2.1.3. 1999-12-02 08:24:51 +00:00
Ulrich Drepper
c3c0e6b2c7 (sysdep_routines): Add oldgetrlimit64 and oldsetrlimit64 for subdir = resource. 1999-12-02 08:24:41 +00:00
Ulrich Drepper
72f1f94798 Add define for SIGCLD as SIGCHLD. 1999-11-29 19:21:48 +00:00
Ulrich Drepper
d2ec0f9ecf Linux/SPARC specific ptrace definitions. 1999-11-29 19:21:36 +00:00
Ulrich Drepper
e4f44ec7d4 Include asm/ptrace.h, since this will not be done with 2.3.xx
automatically.
1999-11-27 16:41:38 +00:00
Ulrich Drepper
415e3bd05a If SIGPWR == SIGLOST, don't include SIGPWR message. 1999-11-26 19:31:41 +00:00
Ulrich Drepper
9690463bc8 (ARPHRD_IEEE802_TR): Added. 1999-11-26 06:29:03 +00:00
Ulrich Drepper
4dd799fb67 (SIGSYS): New definition. 1999-11-26 06:28:26 +00:00
Ulrich Drepper
20f38f83c7 SPARC64 memmove implementation. 1999-11-23 17:07:34 +00:00
Ulrich Drepper
d0c05fdbbc bcopy should handle overlapping copies like memmove, while the previous
version worked like memcpy.  Implement optimized assembly memmove.
1999-11-23 17:07:14 +00:00
Ulrich Drepper
a11bd15912 Don't use generic memmove, use the one provided in memcpy.S. 1999-11-23 17:06:58 +00:00
Ulrich Drepper
a2ec0289ec bcopy takes size_t argument, not signed, so we should not special case it
for negative args.
1999-11-23 17:06:43 +00:00
Ulrich Drepper
b1a544407e Avoid declaring the same field twice if SIGPWR is defined to SIGLOST. 1999-11-23 17:06:27 +00:00
Ulrich Drepper
9a6ad3b7c6 Fix loading of SPARC v8plus libraries from statically linked programs. 1999-11-23 17:06:12 +00:00
Ulrich Drepper
c831d399af (__setrlimit): Don't modify the rlimits structure passed in. 1999-11-20 05:10:14 +00:00
Ulrich Drepper
916d5ded93 Include linux_fsinfo.h instead of defining *_SUPER_MAGIC. 1999-11-18 16:43:37 +00:00
Ulrich Drepper
c17e637380 Sorted entries and added comments. 1999-11-18 16:43:02 +00:00
Roland McGrath
267ff95b79 1999-11-18 Roland McGrath <roland@baalperazim.frob.com>
* hurd/hurdsig.c (_hurdsig_init): If __hurd_threadvar_stack_mask is
	nonzero, use cthread_fork to create the signal thread.
	* hurd/msgportdemux.c (_hurd_msgport_receive): Initialize
	_hurd_msgport_thread here (to self).
	* sysdeps/mach/hurd/fork.c (__fork): When __hurd_sigthread_stack_end
	is zero, instead compute child signal thread's starting SP from parent
	signal thread's current SP and the threadvar_stack variables.
	* hurd/Versions (GLIBC_2.1.3): Add cthread_fork, cthread_detach.
	These are now referenced weakly by _hurdsig_init.
1999-11-18 06:17:13 +00:00
Ulrich Drepper
bd6ae2a380 (DEVFS_SUPER_MAGIC): Added. 1999-11-17 20:36:55 +00:00
Ulrich Drepper
c34eb7a28e (__getpt): Check for devfs. 1999-11-17 20:36:43 +00:00
Ulrich Drepper
82f48ce4a5 (grantpt): Add support for devfs. 1999-11-17 20:36:27 +00:00
Ulrich Drepper
22c6e0cf59 Add TCP_CORK definition. 1999-11-17 20:31:47 +00:00
Ulrich Drepper
ffa63be3eb Added scsi_ioctl.h. 1999-11-17 19:56:59 +00:00
Ulrich Drepper
54aa2261b9 (TYPE_ENCLOSURE): Added to sync with Linux 2.3.26. 1999-11-17 19:56:22 +00:00
Ulrich Drepper
528c8e28b7 Synced with Linux 2.3.26; pretty printed. 1999-11-17 19:56:08 +00:00
Ulrich Drepper
d2907fd4e2 (sysdep_headers): Added scsi_ioctl.h. 1999-11-17 19:55:55 +00:00
Ulrich Drepper
370332fe23 Defines from Linux scsi_ioctl.h header. 1999-11-17 19:55:38 +00:00
Ulrich Drepper
da638d57aa Remove duplicate code. 1999-11-15 08:02:56 +00:00
Ulrich Drepper
91996e307b Add __syscall_setrlimit. 1999-11-15 07:30:53 +00:00
Roland McGrath
369d284902 1999-11-14 Roland McGrath <roland@baalperazim.frob.com>
* sysdeps/mach/hurd/nfs/nfs.h: New file, empty but for comments.
	Its presence lets librpcsvc compile ok.  This from Mark Kettenis.
	We don't install this file for users.
	* sysdeps/mach/hurd/Dist: Add it.
	* sysdeps/mach/hurd/Makefile [$(subdir) = sunrpc] (sysdep_headers):
	Append nfs/nfs.h here.
1999-11-15 00:38:58 +00:00
Ulrich Drepper
ec2ecc4da0 Update from main branch. 1999-11-15 00:09:06 +00:00
Ulrich Drepper
90832e9ef7 Add setrlimit syscall. 1999-11-15 00:05:52 +00:00
Ulrich Drepper
b79aebd1d3 Add prototype for __syscall_setrlimit. 1999-11-15 00:05:17 +00:00
Ulrich Drepper
9ca2b1c700 Add prototype for __syscall_execve. 1999-11-15 00:04:52 +00:00
Ulrich Drepper
1a82f5fee4 Remove duplication. 1999-11-14 08:12:58 +00:00
Ulrich Drepper
c93cbc4252 Remove features available only in glibc 2.2. 1999-11-14 07:07:03 +00:00
Roland McGrath
9eabf04299 1999-11-09 Roland McGrath <roland@baalperazim.frob.com>
* hurd/report-wait.c (describe_port): Return char * and use __stpcpy
	to return the location of the null byte written into the string.
	(describe_number): Likewise.
	(describe_number): Remove assert, not always used with #.
	If FLAVOR is null, don't use it.
	(describe_number): Take signed argument and print a - if negative.
	(_S_msg_report_wait): Report system call number for system calls that
	aren't mach_msg.  Soup up reporting for mach_msg: If destination port
	matches SS->intr_port, bracket port description with [...] to indicate
	a Hurd interruptible RPC; if destination port is null, examine the
	receive port and report that state; if receive port is also null,
	check for timeout and report its value.
	* sysdeps/mach/hurd/i386/intr-msg.h (MSG_EXAMINE): Return int that is
	zero iff we managed to examine the stack; take new args RCV_NAME,
	SEND_NAME, OPTION, and TIMEOUT to fill in with mach_msg args.
1999-11-13 23:42:53 +00:00
Roland McGrath
f1699640b1 1999-10-04 Roland McGrath <roland@baalperazim.frob.com>
* hurd/hurdlookup.c (__hurd_directory_name_split): New function.
	(__directory_name_split): New function.
	* hurd/hurd.h: Declare them.
	* sysdeps/mach/hurd/rmdir.c: Use __directory_name_split instead of
	__file_name_split, so we ignore trailing slashes properly.
	* sysdeps/mach/hurd/rename.c: Likewise.
1999-11-13 23:42:45 +00:00
Ulrich Drepper
3ec83e0625 Add SIGPWR define from current kernel headers. 1999-11-13 18:01:50 +00:00
Ulrich Drepper
bed17a1d19 Sync with header files from other architectures. 1999-11-13 18:01:36 +00:00
Ulrich Drepper
94ce2150da (BFS_MAGIC): Added.
Add values for devpts, efs, qnx4 and reiser file systems.
1999-11-13 00:53:06 +00:00
Ulrich Drepper
57c3dfd78b (N_SYNC_PPP): Added 1999-11-13 00:51:46 +00:00
Ulrich Drepper
e2ee86a669 dded missing N_* constants. 1999-11-13 00:51:03 +00:00
Ulrich Drepper
55eadc4112 Add more pr* types used by the debugger. 1999-11-13 00:48:53 +00:00
Ulrich Drepper
28b4521356 (__rlim_t, __rlim64_t): Make unsigned. 1999-11-13 00:36:39 +00:00
Ulrich Drepper
1c653c9d8a (RLIM_INFINITY): Adjust for kernel changes. 1999-11-13 00:35:12 +00:00
Ulrich Drepper
faac7d0202 Follow main branch. 1999-11-13 00:33:57 +00:00
Ulrich Drepper
04095d5a47 Follow changes from i386 version. 1999-11-12 21:27:01 +00:00
Ulrich Drepper
729d4c017a Include sys/ucontext.h instead of duplicating definitions. 1999-11-10 04:58:52 +00:00
Ulrich Drepper
9ca4113b7b (getlogin_r): Sync with getlogin implementation for ttyname_r call; fix
inverted condition; return ut_user.
1999-11-10 03:27:23 +00:00
Ulrich Drepper
36c16314b8 Define values also as macros. 1999-11-10 03:27:00 +00:00
Ulrich Drepper
7e28343cdf Don't put commas at the end of enumerator lists (-pedantic complains).
(feraiseexcept): Use i#*X as the constraint.  Fix a bug in the
test for 'one bit set'.
(feclearexcept): Likewise.
1999-11-08 23:37:52 +00:00
Ulrich Drepper
3659ba434a Define aliases __nexttowardl and nexttowardl. 1999-10-24 23:42:29 +00:00
Roland McGrath
95688720e8 1999-10-19 Bruno Haible <haible@ilog.fr>
* sysdeps/mach/sleep.c (__sleep): If we slept longer than requested,
	return 0, not UINT_MAX.
1999-10-19 17:53:26 +00:00
Ulrich Drepper
91c4d9d89f (__cprojl): Fix bug: NaN + i NaN returns now NaN + i NaN. 1999-10-19 03:32:17 +00:00
Ulrich Drepper
1b0a179313 (__cprojf): Fix bug: NaN + i NaN returns now NaN + i NaN. 1999-10-19 03:31:52 +00:00
Ulrich Drepper
77a9b86190 (__cproj): Fix bug: NaN + i NaN returns now NaN + i NaN. 1999-10-19 03:31:10 +00:00
Ulrich Drepper
ef40f7296d Added struct in_pktinfo. 1999-10-17 03:36:33 +00:00
Ulrich Drepper
ea4f32708f (__sleep): Optimize for zero seconds. 1999-10-14 19:21:37 +00:00
Ulrich Drepper
cec8f54ac1 Don't define register names unconditionally, only if __USE_GNU. 1999-10-12 23:35:13 +00:00
Ulrich Drepper
48d4f49ffd Update to match generic Linux version. 1999-10-12 15:21:18 +00:00
Ulrich Drepper
4362c65427 Declare SA_SIGINFO. 1999-10-11 19:21:45 +00:00
Ulrich Drepper
c1d710ff11 Regenerated: autoconf sysdeps/unix/sysv/linux/configure.in 1999-10-11 04:36:12 +00:00
Ulrich Drepper
0ebb1613e6 Fix typo. 1999-10-11 00:45:48 +00:00
Roland McGrath
7eed8c34e9 1999-10-01 Roland McGrath <roland@baalperazim.frob.com>
* hurd/hurdioctl.c (rectty_dtable): Renamed to install_ctty.
	(install_ctty): Do the changing of the cttyid port cell here, inside
	the critical section while we holding the dtable lock.
	(_hurd_setcttyid, tiocsctty, tiocnotty): Use that instead of changing
	the port cell and calling rectty_dtable.
	(_hurd_locked_install_cttyid): New function, split out of install_ctty.
	(install_ctty): Use it inside a critical section, with the lock held.
	* sysdeps/mach/hurd/setsid.c (__setsid): Use
	_hurd_locked_install_cttyid to effect the cttyid and dtable changes
	after proc_setsid, having held the dtable lock throughout.
	* hurd/dtable.c (ctty_new_pgrp): With the dtable lock held, check the
	cttyid port for null and bail out early if so.  The dtable lock
	serializes us after any cttyid change and its associated dtable update.
1999-10-01 20:02:29 +00:00
Ulrich Drepper
46c030627d Regenerated: autoconf sysdeps/unix/sysv/linux/configure.in 1999-10-01 16:44:43 +00:00
Ulrich Drepper
72e26bb1d4 Disable debug messages. 1999-10-01 16:03:36 +00:00
Ulrich Drepper
b276e345bc Correct assembler commands to fix warnings. 1999-10-01 16:00:37 +00:00
Ulrich Drepper
59f0c522ff Add missing patch from main branch. 1999-10-01 15:31:08 +00:00
Ulrich Drepper
2aafdef961 [malloc] (CFLAGS-malloc.c): New variable. Define MORECORE_CLEARS to
2.
1999-09-25 06:52:59 +00:00
Ulrich Drepper
b0059a1f90 (atan): Add st(1) to clobbers.
(log): Likewise.
(log10): Likewise.
(log1p): Likewise.
(log2): Likewise.
1999-09-23 20:02:31 +00:00
Ulrich Drepper
39ec85dbc2 (__aio_sigqueue): Use old style function definition to avoid a
compilation failure.
1999-09-20 01:32:15 +00:00
Ulrich Drepper
c17b39500d Protect real time signal definitions to let glibc compile with older
Linux versions (2.0.10 to 2.1.100 or so).
1999-09-20 01:24:41 +00:00
Roland McGrath
38f795013c 1999-09-18 Roland McGrath <roland@baalperazim.frob.com>
* sysdeps/mach/hurd/wait4.c (__wait4): When proc_wait returns EAGAIN,
	return zero to indicate no children died yet (assuming WNOHANG).
1999-09-18 10:43:37 +00:00
Roland McGrath
a56ac119ed 1999-09-18 Roland McGrath <roland@baalperazim.frob.com>
* sysdeps/mach/hurd/setsid.c: #include <hurd/fd.h>.
1999-09-18 10:43:28 +00:00
Ulrich Drepper
aec30d94a1 (CFLAGS-initfini.s): Add also -mcpu=i386 to override user settings. 1999-09-17 15:40:45 +00:00
Ulrich Drepper
7c88a6635f Copy the argument instead of using a pointer to it. 1999-09-17 15:37:19 +00:00
Roland McGrath
eb73feeb6d 1999-09-17 Roland McGrath <roland@baalperazim.frob.com>
* sysdeps/mach/hurd/setsid.c (__setsid): Fix return type -> pid_t.
	Return _hurd_pgrp instead of 0.
1999-09-17 08:40:09 +00:00
Ulrich Drepper
dee25ab0ce Added members 'unsigned char ftype[8]', and 'unsigned int init_flag' to
struct user_fp.  Tnese were added in version 2.2.12 of the ARM Linux kernel.
1999-09-14 01:42:51 +00:00
Ulrich Drepper
f73e9009f9 Linux/Arm definitions to access process images. 1999-09-14 01:42:32 +00:00
Ulrich Drepper
e5c177026a Linux/Arm definitions to access registers. 1999-09-14 01:42:17 +00:00
Ulrich Drepper
1d10e0268c (gaih_local): Test protocol and socktype.
(gaih_inet_serv): Return EIA_NODATA if name is known but has no
associated data.  Test for matching numeric address and family.
(getaddrinfo): Remember EAI_NODATA result and return this in case
everything fails.
1999-09-12 19:17:09 +00:00
Ulrich Drepper
dffd7a0c58 [misc] (sysdep_headers): Add sys/raw.h. 1999-09-10 19:58:19 +00:00
Ulrich Drepper
6507657e6e Add sys/raw.h. 1999-09-10 19:57:28 +00:00
Ulrich Drepper
c254b60c11 Definitions for raw devices under Linux. 1999-09-10 19:56:46 +00:00
Ulrich Drepper
dc7500a6e9 Correct WCHAR_MIN, WCHAR_MAX, and WINT_MAX values. 1999-09-10 19:37:53 +00:00
Ulrich Drepper
ca9b1ee320 (getenv): Fix lookup for single character variable on bigendian
platforms without unaligned memory access.
1999-09-10 19:13:51 +00:00
Ulrich Drepper
189c890530 Add sys/user.h. 1999-09-06 21:17:23 +00:00
Ulrich Drepper
3aa2699d90 Rename strong name for fork from __syscall_fork to __libc_fork. 1999-09-05 00:09:41 +00:00
Ulrich Drepper
083f449cce Include <sys/user.h> instead of <asm/user.h>. 1999-09-03 07:12:22 +00:00
Ulrich Drepper
34b4bc6c2b Linux/Alpha specific definition to access information passed up from the
kernel.
1999-09-03 07:11:54 +00:00
Ulrich Drepper
474618f079 #include <bits/armsigctx.h>. 1999-09-01 16:45:18 +00:00
Ulrich Drepper
689cd45252 Enclose header in an #ifdef statement to prevent it from being included twice. 1999-09-01 16:45:06 +00:00
Ulrich Drepper
26f8104784 [csu]: Define CFLAGS-initfini.s to force compiling for i386 to avoid
i686-like GOT pointer computation.
1999-08-31 01:50:40 +00:00
Ulrich Drepper
8d1927ffc8 Update from 2.3.15 kernel. 1999-08-28 00:25:56 +00:00
Ulrich Drepper
b3af0a7c12 (__finite): Make constant as unsigned to avoid warning. 1999-08-26 06:29:13 +00:00
Ulrich Drepper
cdbec47f90 Define always __qaddr_t.
__ino64_t should be 32bit unsigned type on sparc32.
Define __off64_t to __quad_t instead of __int64_t.
Make __pic_pid_t unsigned on sparc32.
1999-08-26 03:45:16 +00:00
Ulrich Drepper
26a1ee568c Add checks to make sure we're really dealing with a master pseudo terminal, and
really returning the name of the associated slave pseudo terminal by checking
the device number.
1999-08-25 17:57:57 +00:00
Ulrich Drepper
6e1cc1f501 Add new constants from Linux 2.3.15. 1999-08-24 20:56:40 +00:00
Ulrich Drepper
e069581c70 Add execve syscall. 1999-08-24 20:50:39 +00:00
Ulrich Drepper
b887ee2281 Define SIGCONTEXT_EXTRA_ARGS. 1999-08-23 17:51:34 +00:00
Ulrich Drepper
f91afe2d2d Add execve syscall. 1999-08-23 04:09:18 +00:00
Ulrich Drepper
d56532fe29 Define weak alias execve. 1999-08-21 04:52:27 +00:00
Ulrich Drepper
c7eecb53b2 Undo last change. 1999-08-20 23:45:31 +00:00
Ulrich Drepper
a2c3a8a754 Undo last change but correct comment saying < 0 is ok for size type. 1999-08-20 23:44:59 +00:00
Ulrich Drepper
69bb9f499e Correct last patch. 1999-08-20 18:24:42 +00:00
Ulrich Drepper
7c9b5e4d47 Allocate buffer large enough not only if size == 0, but also for size < 0. 1999-08-20 18:07:55 +00:00
Ulrich Drepper
813e69352a Don't allow use with _FILE_OFFSET_BITS=64. 1999-08-20 15:50:15 +00:00
Ulrich Drepper
4d2d58a467 Copy over missing changes from mainline. 1999-08-20 15:45:28 +00:00
Roland McGrath
8595b3b943 1999-08-19 Roland McGrath <roland@baalperazim.frob.com>
* sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Mark OPTION and
	TIMEOUT as outputs of the asm to indicate that the signal thread
	might mutate them.
	* hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Short circuit to plain
	mach_msg if only sending or only receiving (i.e., not an RPC).  When
	making an RPC that might get interrupted, save OPTION and the portion
	of the message buffer that gets clobbered by an EINTR reply message,
	and properly restore them before attempting to retry the request
	message send.
1999-08-20 03:45:14 +00:00
Ulrich Drepper
0c7bbb0c5a Linux specific execve implementation. 1999-08-20 00:15:11 +00:00
Ulrich Drepper
d36f40995a Add change from main branch. 1999-08-19 21:00:36 +00:00
Ulrich Drepper
9c4140bada (__add_to_environ): Initialize ep after we have the lock.
Avoid warning about uninitialized variable.
1999-08-19 20:11:33 +00:00
Ulrich Drepper
ad48761644 Information about how to access signal context info fro Linux/Alpha. 1999-08-19 19:58:46 +00:00
Ulrich Drepper
f790b2ac93 Correct type in performance increase rewrite. 1999-08-17 22:35:54 +00:00
Ulrich Drepper
a05f4b051e Define O_DSYNC and O_RSYNC. 1999-08-17 01:25:43 +00:00
Ulrich Drepper
0b9cfd5991 Update from main branch. 1999-08-15 20:28:48 +00:00
Ulrich Drepper
1af43fd7eb Define ARM specific versions of VALID_ELF_HEADER, VALID_ELF_OSABI,
VALID_ELF_ABIVERSION.
1999-08-10 05:14:30 +00:00
Ulrich Drepper
35a7d84f65 Handle platforms with special __FLOAT_WORD_ORDER. 1999-08-09 05:41:32 +00:00
Ulrich Drepper
0e5e2ce838 Mark void* operations as extensions. 1999-08-09 05:41:03 +00:00
Ulrich Drepper
19fdfe298d Fix typo (MSG_TRUNC -> MSG_DONTWAIT). 1999-08-06 23:01:27 +00:00
Ulrich Drepper
cd55b09de4 (O_RSYNC, O_DSYNC): Define. 1999-08-05 17:40:36 +00:00
Ulrich Drepper
7e97461d46 Update from main line. 1999-08-04 16:04:20 +00:00
Ulrich Drepper
1bdd98e3ed Add siglist.h. 1999-08-01 23:26:19 +00:00
Ulrich Drepper
04d1ae8c4e Update from main line. 1999-08-01 22:23:36 +00:00
Ulrich Drepper
1d5cd731f3 Signal name list. 1999-07-28 21:00:35 +00:00
Roland McGrath
68a743d253 1999-07-27 Mark Kettenis <kettenis@gnu.org>
* sysdeps/mach/hurd/i386/init-first.c (init): Move the inline
	assembler code to switch stacks and call init1 outside this
	function.  Inside `init' the code was optimized away by gcc
	2.95 since it was "clearly" unreachable.
	* sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
	Do something similar for the trampoline code.
1999-07-28 18:22:23 +00:00
Roland McGrath
a6877d2677 1999-07-27 Mark Kettenis <kettenis@gnu.org>
* sysdeps/mach/hurd/Makefile [stdio-common]: Set inhibit-siglist.
	(The code this disables is entirely gone in the main branch,
	so this change does not need to be propagated from the 2.1 branch.)
1999-07-28 18:18:59 +00:00
Ulrich Drepper
f20bd94ad7 (gaih_inet): Only return information for the hinted protocol. 1999-07-28 04:38:16 +00:00
Ulrich Drepper
3068508dba Fix aliasing problems. 1999-07-28 04:34:36 +00:00
Roland McGrath
b9d638fcd4 1999-07-20 Mark Kettenis <kettenis@gnu.org>
* sysdeps/mach/_strerror.c: Include <libintl.h>.
1999-07-20 21:07:48 +00:00
Andreas Schwab
01ff174aeb * iconvdata/Makefile (distribute): Don't distribute CVS
directory.
	* sysdeps/generic/Dist: Add siglist.h.
	* sysdeps/mach/hurd/Dist: Add siglist.h.
1999-07-20 08:36:38 +00:00
Ulrich Drepper
6b30a99829 Add ldd-rewrite.sed. 1999-07-19 01:47:30 +00:00
Ulrich Drepper
d71eb21438 Undo last patch. 1999-07-18 07:17:25 +00:00
Ulrich Drepper
094e45d49d Use addl instead of pop/pop to keep program deterministic. 1999-07-16 23:25:29 +00:00
Ulrich Drepper
cd1bc5a045 (_inb, _inw, _inl, _outb, _outw, _outl): Added to GLIBC_2.1.2. 1999-07-16 23:23:46 +00:00
Ulrich Drepper
c7aca6f6bd (gaih_inet): For non-passive connections without a hostname set address to
localhost address.
1999-07-12 21:31:45 +00:00
Roland McGrath
ce5922110a 1999-07-11 Roland McGrath <roland@baalperazim.frob.com>
* sysdeps/mach/hurd/brk.c (static_data_start): New variable.
	(_hurd_set_brk, init_brk): Use that instead of &__data_start.
	Initialize it from &__data_start if defined, or else &_end.
1999-07-11 17:13:53 +00:00
Ulrich Drepper
5c87d67634 (__memcpy_c): Help some stupid old compilers.
(__memset_cc): Likewise.
1999-07-10 09:57:03 +00:00
Ulrich Drepper
249b3724ed For SUID binaries check whether the standard file descriptors are open. 1999-07-10 09:56:37 +00:00
Ulrich Drepper
a75a5b6ad6 Remove mmap64 alias for mmap. 1999-07-10 09:56:18 +00:00
Ulrich Drepper
bd09d69b2e Test whether mapped area is in range of mmap. If not fail. 1999-07-10 09:55:58 +00:00
Ulrich Drepper
93dceeb10e (exchange_and_add): Remove `volatile';
add `memory' clobber; optimise for constant `val'.
(atomic_add): Likewise.
(test_and_set): Remove `volatile'; add `memory' clobber; be more
like the original `test_and_set'.
(compare_and_swap): Remove `volatile'; add `memory' clobber;
optimise for constant `oldval'.
(always_swap): Remove `volatile'; add `memory' clobber.
1999-07-09 14:14:40 +00:00
Ulrich Drepper
84dfd1608c Check that /dev/pts is mounted.
(_PATH_DEVPTS, DEVPTS_SUPER_MAGIC): New definitions.
(_PATH_DEVPTMX): Use _PATH_DEV.
1999-07-08 11:50:04 +00:00
Ulrich Drepper
667305cc20 Correct last patch. Handle getcwd (NULL, != 0) correctly.
When resizing buffer make sure new size is large enough.
1999-07-08 11:49:46 +00:00
Ulrich Drepper
29b58d09d5 Describe problem. 1999-07-08 11:49:21 +00:00
Ulrich Drepper
38deee8be7 Add support for some more motherboards. 1999-07-06 16:07:24 +00:00
Ulrich Drepper
54bba98f82 Rewrite fragment for ldd on Linux/SPARC. 1999-07-06 15:52:48 +00:00
Ulrich Drepper
713a6a7218 (__cmsg_nxthdr): "return 0" instead of "return NULL" to make C++ happy. 1999-07-06 15:45:16 +00:00
Ulrich Drepper
3353c7e2b4 Update from main branch. 1999-07-02 11:13:51 +00:00
Roland McGrath
cf3d45dfbf 1999-06-25 Roland McGrath <roland@baalperazim.frob.com>
* sysdeps/generic/glob64.c: Include <stddef.h> for NULL.
1999-06-25 13:45:39 +00:00
Ulrich Drepper
0c72e72fda Don't return a zero result if the high bits of two words differ. 1999-06-22 10:12:25 +00:00
Ulrich Drepper
28018b6d29 Correct counting of subsections. 1999-06-22 10:07:33 +00:00
Roland McGrath
3f584b92ef 1999-06-16 Roland McGrath <roland@baalperazim.frob.com>
* sysdeps/unix/sysv/linux/siglist.c: Moved to ...
	* sysdeps/gnu/siglist.c: ... here.
	Use <siglist.h> instead of "siglist.h", to ensure sysdeps-search.
	Use <bits/wordsize.h> instead of <sizes.h> to determine PTR_SIZE_STR.
	* sysdeps/gnu/siglist.h: New file, contents from linux version.
	Add entry for SIGLOST protected by #ifdef.
	* sysdeps/unix/sysv/linux/siglist.h: Just #include that file,
	and define OLD_SIGLIST_SIZE_STR.
	* sysdeps/mach/hurd/siglist.h: New file, likewise.
1999-06-19 12:15:13 +00:00
Ulrich Drepper
01d7b7cf09 Include setjmp.h. 1999-06-18 19:05:09 +00:00
Ulrich Drepper
6dcbb40cc0 Add missing line disciplines. 1999-06-17 15:19:56 +00:00
Ulrich Drepper
f02f9c8182 (AX25_PIDINCL): Added. 1999-06-17 12:36:27 +00:00
Ulrich Drepper
e088133a39 Linux/SPARC sysmacros. 1999-06-17 12:36:06 +00:00
Ulrich Drepper
eff9780051 Linux/Alpha sysmacros. 1999-06-17 12:35:52 +00:00
Ulrich Drepper
d5a6cf276e [!__GNUC__]: Use correct word order. 1999-06-17 12:35:18 +00:00
Ulrich Drepper
ce742e78fe Don't fail always when oact is NULL. 1999-06-17 10:45:49 +00:00
Ulrich Drepper
e0492b4acc Disable signbit* inline functions for gcc <= 2.7.x.
Add __extension__ to signbit definitions to calm down gcc.
1999-06-13 15:19:13 +00:00
Roland McGrath
091b6505fc 1999-06-12 Mark Kettenis <kettenis@gnu.org>
* Makeconfig (static-start-installed-name): Set to
	$(start-installed-name) if not defined.
	(+link-static): Use $(static-start-installed-name) instead of
	$(start-installed-name).
	* sysdeps/mach/hurd/i386/Makefile (static-start-installed-name):
	Set to crt0.o.
1999-06-13 10:02:10 +00:00
Roland McGrath
1cf22aeeb8 copyright year 1999-06-13 09:53:22 +00:00
Roland McGrath
75913a5ef5 1999-06-12 Mark Kettenis <kettenis@gnu.org>
* sysdeps/mach/hurd/fork.c (__fork): Make use of `insert_type' when
	inserting a send right into the child instead of unconditionally
	copying the send right.
1999-06-13 09:51:02 +00:00
Ulrich Drepper
862ff21bcd Add some missing MSG_* flags from Linux 2.2.9. 1999-06-13 09:27:04 +00:00
Ulrich Drepper
b77ab157d4 Update from main branch. 1999-06-13 09:23:55 +00:00
Ulrich Drepper
fa1067535a (__printf_fphex): Don't ignore the precision if the mantissa is zero. 1999-06-07 15:53:16 +00:00
Ulrich Drepper
eecd06f44a (__ieee754_y0): Fix array indices. 1999-06-02 11:54:38 +00:00
Ulrich Drepper
0e96cac494 Update from main branch. 1999-05-25 12:28:09 +00:00
Ulrich Drepper
8838786d31 Update. 1999-05-24 14:16:40 +00:00
Ulrich Drepper
cb293d6692 (gaih_inet): Set socket address to loopback if no name is given and AI_PASSIVE is not set. 1999-05-24 08:18:43 +00:00
Ulrich Drepper
33d1a2c5b8 Update.
1999-05-23  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/alpha/fpu/bits/fenv.h: Pretty print.

	* sysdeps/sparc/sparc64/fpu/bits/fenv.h: Remove unneeded #if.

1999-05-22  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>

	* sysdeps/m68k/fpu/bits/fenv.h (fenv_t): Prepend __ to member
	names to protect from user's macro namespace.
	* sysdeps/arm/fpu/bits/fenv.h (fenv_t): Likewise.
	* sysdeps/generic/bits/fenv.h (fexcept_t, fenv_t): Likewise.
	* sysdeps/i386/fpu/bits/fenv.h (fenv_t): Likewise.
	* sysdeps/mips/bits/fenv.h (fenv_t): Likewise.
	* sysdeps/m68k/fpu/feholdexcpt.c, sysdeps/m68k/fpu/fesetenv.c:
	Adapted.
	* sysdeps/arm/fpu/fegetenv.c, sysdeps/arm/fpu/feholdexcpt.c,
	sysdeps/arm/fpu/fesetenv.c: Likewise.
	* sysdeps/i386/fpu/fclrexcpt.c, sysdeps/i386/fpu/feholdexcpt.c,
	sysdeps/i386/fpu/fesetenv.c, sysdeps/i386/fpu/fraiseexcpt.c,
	sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
	* sysdeps/mips/fesetenv.c: Likewise.
1999-05-23 10:13:49 +00:00
Roland McGrath
9ce588cf72 1999-05-22 Roland McGrath <roland@baalperazim.frob.com>
* sysdeps/generic/bits/sigstack.h (enum SS_*): Remove trailing comma.
1999-05-23 09:14:13 +00:00
Andreas Schwab
0151001634 * sysdeps/m68k/fpu/bits/fenv.h (fenv_t): Prepend __ to member
names to protect from user's macro namespace. 
* sysdeps/m68k/fpu/feholdexcpt.c, sysdeps/m68k/fpu/fesetenv.c: 
Adapted.
1999-05-22 17:14:30 +00:00
Ulrich Drepper
1c25bcacbe Update.
1999-05-19  Jakub Jelinek   <jj@ultra.linux.cz>

	* sysdeps/generic/bits/elfclass.h: Version common to
	wordsize-32 and wordsize-64.
	* sysdeps/generic/bits/environments.h: Ditto.
	* sysdeps/generic/stdint.h: Ditto.
	* sysdeps/generic/inttypes.h: Ditto.

	* sysdeps/generic/bits/wordsize.h: New file.
	* stdlib/Makefile: Add bits/wordsize.h to headers.

	* sysdeps/sparc/sparc64/bits/wordsize.h: New file.

	* sysdeps/sparc/sparc64/fpu/bits/fenv.h: Allow the same exported
	headers to be used for 32bit and 64bit ABI compilations.
	* sysdeps/sparc/sparc64/fpu/fpu_control.h: Ditto.
	* sysdeps/unix/sysv/linux/sparc/sparc64/bits/setjmp.h: Ditto.
	* sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h: Ditto.
	* sysdeps/unix/sysv/linux/sparc/sparc64/bits/statfs.h: Ditto.
	* sysdeps/unix/sysv/linux/sparc/sparc64/sys/ucontext.h: Ditto.

	* sysdeps/wordsize-64/bits/elfclass.h: Remove.
	* sysdeps/wordsize-64/bits/environments.h: Remove.
	* sysdeps/wordsize-64/stdint.h: Remove.
	* sysdeps/wordsize-64/inttypes.h: Remove.
	* sysdeps/wordsize-64/bits/wordsize.h: New file.

	* sysdeps/wordsize-32/bits/elfclass.h: Remove.
	* sysdeps/wordsize-32/bits/environments.h: Remove.
	* sysdeps/wordsize-32/stdint.h: Remove.
	* sysdeps/wordsize-32/inttypes.h: Remove.
	* sysdeps/wordsize-32/bits/wordsize.h: New file.

1999-05-19  Jakub Jelinek   <jj@ultra.linux.cz>

	* sysdeps/sparc/sparc64/memcpy.S (__align_cpy_4, __align_cpy_8,
	__align_cpy_16): New functions.
	(__align_cpy_2, __align_cpy_1): New aliases to memcpy.

	* sysdeps/sparc/sparc32/Versions: New file.
	* sysdeps/sparc/sparc64/Versions: New file.
	* sysdeps/sparc/Versions: Remove.

1999-05-19  Jakub Jelinek   <jj@ultra.linux.cz>

	* sysdeps/unix/sysv/linux/configure.in:
	On sparc64-*-linux*, set slibdir to /lib64 if prefix
	is /usr, plus set libdir to ${exec_prefix}/lib64.
	* sysdeps/unix/sysv/linux/configure: Regenerated.
	* config.make.in: Propagate libdir settings from configure
	to the Makefiles.
	* shlib-versions: sparc64-*-linux* dynamic linker is
	/lib64/ld-linux.so.2.
1999-05-19 15:35:26 +00:00
Ulrich Drepper
407d26b705 Update.
1999-05-18  Jakub Jelinek  <jj@ultra.linux.cz>

	* sysdeps/sparc/sparc64/rawmemchr.S: New file.
	* sysdeps/sparc/sparc32/sparcv9/rawmemchr.S: New file.

	* sysdeps/sparc/sparc64/memchr.S: Fix if the second argument
	contains garbage in bits 8-63.
	* sysdeps/sparc/sparc64/memset.S: Ditto.
	* sysdeps/sparc/sparc64/strchr.S: Ditto.
1999-05-18 10:00:20 +00:00
Ulrich Drepper
1acf7665c7 Update.
1999-05-18  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/wordsize-64/stdint.h (INTPTR_MAX): Add missing ).

1999-05-17  David S. Miller  <davem@redhat.com>

	* sysdeps/sparc/sparc32/atomicity.h: New file.
	* sysdeps/sparc/sparc32/sparcv9/atomicity.h: New file.
	* sysdeps/sparc/sparc64/atomicity.h: New file.
	* sysdeps/sparc/sparc32/sparcv9/Makefile: Add -Wa,-Av9a to
	sysdep-CFLAGS.
1999-05-18 09:48:05 +00:00
Ulrich Drepper
2a269cd083 Update.
1999-05-18  Richard Henderson  <rth@twiddle.net>

	* sysdeps/alpha/memchr.S: Zap high byte of length.  Reschedule.
1999-05-18 08:57:29 +00:00
Ulrich Drepper
73334e85fa Update.
1999-05-18  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

	* sysdeps/i386/i486/bits/string.h (rawmemchr): Remove unneccessary
	if _FORCE_INLINES.
1999-05-18 08:14:06 +00:00
Ulrich Drepper
9bbd7837b6 Update.
1999-05-17  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

	* sysdeps/i386/i486/Versions: New file with inline functions from
	sysdeps/i386/i486/bits/string.h for now.

	* sysdeps/i386/Versions: Add inline functions from
	sysdeps/i386/bits/string.h.

	* string/Versions: Add inline functions from <bits/string2.h>.

	* string/Makefile (routines): Add string-inlines.
	* string/string-inlines.c: New file, used for implementation of
	extern inline functions.

	* sysdeps/i386/i486/bits/string.h: Use _FORCE_INLINES to generate
	non inlined versions of functions.
	* string/bits/string2.h: Likewise.
	* sysdeps/i386/bits/string.h: Likewise.

1999-05-17  Ulrich Drepper  <drepper@cygnus.com>

	* inet/arpa/tftp.h: Add second packed attribute.
1999-05-17 17:25:32 +00:00
Roland McGrath
b7b5a61059 1999-05-16 Roland McGrath <roland@baalperazim.frob.com>
* sysdeps/generic/bits/termios.h (CRTSCTS): New macro.
1999-05-16 20:46:02 +00:00
Roland McGrath
e196b7ddf5 1999-05-16 Roland McGrath <roland@baalperazim.frob.com>
* sysdeps/unix/sysv/linux/sys/socketvar.h: Moved to ... 
* sysdeps/generic/sys/socketvar.h: ... here. 
* sysdeps/unix/sysv/linux/netinet/in_systm.h: Moved to ... 
* sysdeps/generic/netinet/in_systm.h: ... here. 
* sysdeps/unix/sysv/linux/Dist: Remove netinet/in_systm.h, 
sys/socketvar.h. 
* sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Likewise. 
* inet/Makefile (headers): Add netinet/in_systm.h here. 
* socket/Makefile (headers): Add sys/socketvar.h here.
1999-05-16 08:52:16 +00:00
Ulrich Drepper
26262bc29e Update.
1999-05-15  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/gnu/utmpx.h: Add needed type definitions according to
	Unix98.  Add forward declaration of struct utmp.
1999-05-15 09:31:40 +00:00
Ulrich Drepper
1483b75378 Update.
1999-05-14  Mark Kettenis  <kettenis@gnu.org>

	* sysdeps/generic/getutmp.c: Include <string.h>
	(getutmp): Rewrite to only copy those members that are really
	present in `struct utmp'.
	* sysdeps/generic/getutmpx.c: Likewise.
1999-05-14 21:30:22 +00:00
Ulrich Drepper
d60d215c57 Update.
1999-05-14  Ulrich Drepper  <drepper@cygnus.com>

	* nss/getXXbyYY.c: Add free_mem function which disposes all
	statically allocated memory when debugging.
	* nss/getXXent.c: Likewise.
	* nss/nsswitch.c: Likewise.
1999-05-14 00:22:24 +00:00
Ulrich Drepper
c22ecc5269 Update
1999-05-13  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/gnu/getutmpx.c: New file.
	* sysdeps/gnu/getutmp.c: New file.
1999-05-13 19:55:50 +00:00
Ulrich Drepper
6eb857c788 Update
1999-05-13  H.J. Lu  <hjl@gnu.org>

	* login/Versions (getutmpx): Added to GLIBC_2.1.1.
	(getutmp): Likewise.

	* sysdeps/gnu/Makefile (sysdep_routines): Add getutmp and
	getutmpx for login.

	* sysdeps/gnu/utmpx.h (getutmp): Added.
	(getutmpx): Likewise.

	* sysdeps/generic/getutmp.c: New file.

	* sysdeps/generic/getutmpx.c: New file.
1999-05-13 19:51:20 +00:00
Ulrich Drepper
12b5b6b7f7 Update.
1999-05-11  Ulrich Drepper  <drepper@cygnus.com>

	* elf/Versions (ld.so) [GLIBC_2.1.1]: Add _dl_lazy.
	* elf/dl-open.c (_dl_open_worker): Only relocate newly loaded objects
	lazily if LD_BIND_NOW is not set.
	* elf/dl-support.c (_dl_lazy): New variable.
	(non_dynamic_init): Set _dl_lazy according to LD_BIND_NOW envvar.
	* elf/rtld.c (_dl_lazy): new global variable.
	( dl_main): Remove lazy, replace it by _dl_lazy.

1999-05-06  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>

	* locale/setlocale.c (new_composite_name): Check also whether the
	first category name differs.

1999-05-11  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>

	* sysdeps/unix/sysv/linux/ftime.c: Use the bsd implementation, not
	the generic one.

1999-05-11  Philip Blundell  <pb@nexus.co.uk>

	* sysdeps/generic/bits/socket.h (struct sockaddr_storage): New
	structure; storage suitable for any socket address.
	* sysdeps/unix/sysv/linux/bits/socket.h (struct sockaddr_storage):
	Likewise.
	* sysdeps/unix/sysv/linux/mips/bits/socket.h (struct
	sockaddr_storage): Likewise.

	* inet/netinet/in.h: Use ULONG_MAX not ~0 to test for a 64-bit
	platform.
1999-05-11 13:00:20 +00:00
Ulrich Drepper
42d666a5cb Update.
* sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Set f_frsize to
	f_bsize to help some broken programs.
1999-05-07 16:58:39 +00:00
Ulrich Drepper
607c351a14 Update.
1999-05-06  Ulrich Drepper  <drepper@cygnus.com>

	* nss/digits_dots.c: Correct return value interpretation of
	inet_ntoa.  Fix PR libc/1109.
1999-05-06 23:17:13 +00:00
Ulrich Drepper
cbd57e2528 Update.
1999-05-06  Zack Weinberg  <zack@rabi.columbia.edu>

	* sysdeps/sparc/sparc32/sparcv9/Dist: New file.
1999-05-06 09:18:09 +00:00
Ulrich Drepper
dc5efe83c0 Update.
* Versions.def (ld.so): Add GLIBC_2.1.1.
	* elf/Makefile (routines): Add dl-origin.
	(tests): Add origtest.  Add dependencies for the program.
	* elf/Versions (ld.so) [GLIBC_2.1.1]: Add _dl_origin_path,
	_dl_platformlen, _dl_dst_count and _dl_dst_substitute.
	* elf/dl-deps.c (expand_dst): New macro.  Expand DSTs in filename.
	(_dl_map_object_deps): Use expand_dst to expand DSTs in DT_NEEDED,
	DT_AUXILIARY, and DT_FILTER filenames.
	* elf/dl-load.c (expand_dynamic_string_token): Explode into
	two functions and three macros.
	(_dl_dst_count, _dl_dst_substitute): New functions.
	* elf/dl-dst.h: New file.
	* elf/dl-open.c (_dl_open): Take extra parameter with address of
	caller.  Pass address in args structure.
	(dl_open_worker): Recognize and expand DSTs in filename.
	* elf/ldsodefs.h (_dl_open): Adapt prototype.
	* elf/dlopen.c (dlopen_doit): Pass caller address to _dl_open.
	(__dlopen_check): Pass caller address to dlopen_doit in args.
	* elf/dlopendoit.c: Likewise.
	* iconv/gconv_dl.c: Adapt call of _dl_open.
	* nss/nsswitch.c: Likewise.
	* elf/origtest.c: New file.
	* sysdeps/generic/dl-origin.h: Moved to...
	* sysdeps/generic/dl-origin.c: ...here.
	* sysdeps/unix/sysv/linux/dl-origin.h: Moved to...
	* sysdeps/unix/sysv/linux/dl-origin.c: ...here.
1999-05-05 23:29:18 +00:00
Ulrich Drepper
9f509acb28 Update.
* sysdeps/generic/strtok_r.c: Use rawmemchr instead of strchr.
	* sysdeps/generic/strtok.c: Likewise.
1999-05-03 23:49:46 +00:00
Ulrich Drepper
6dc0d457ec Update.
* sysdeps/i386/bits/select.h (__FD_ZERO): Remove memory output
	specification.  It's not necessary.
1999-05-03 22:05:54 +00:00
Ulrich Drepper
4e9a34c48f Update.
1999-05-03  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/unix/sysv/linux/arm/Dist: Add sigrestorer.S.
1999-05-03 12:41:01 +00:00
Ulrich Drepper
e57931a826 Update.
1999-05-02  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>

	* sunrpc/Makefile: Generate dependencies for all flavors of
	librpcsvc objects.
	(rpcgen-cmd): Pass -Y flag here and remove it from the macro
	invocations.

1999-05-02  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>

	* elf/dlopenold.c: Move #if down after includes to get
	dependencies right.

1999-05-01  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>

	* sysdeps/generic/bzero.c: Undefine __bzero.
1999-05-03 08:46:13 +00:00
Ulrich Drepper
2d8e6e74c1 Update.
* sysdeps/unix/sysv/linux/netax25/ax25.h: Update from kernel header.
	* sysdeps/unix/sysv/linux/netrom/netrom.h: Likewise.
	* sysdeps/unix/sysv/linux/netrose/rose.h: Likewise.
	Patch by Craig Small <csmall@scooter.eye-net.com.au>.
1999-05-02 21:09:34 +00:00
Ulrich Drepper
238ae1eb66 Update.
* sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Change fourth
	parameter to struct gaih_servtuple *.  Adapt appropriately.
	(gaih_inet): Use alloca to allocate room for gaih_inet_serv calls.
	This fixes a memory leak.
	Reported by Mikolaj J. Habryn <dichro-glibcbug@rcpt.to>.
1999-05-02 21:03:32 +00:00