Peter Wemm
42396e05cf
Apply fts() fix from PR#4593
...
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
1997-09-22 12:48:40 +00:00
Bill Paul
0e710e8f95
Make selection logic more strict. Only select AF_INET loopback interfaces
...
that are up on second (loopback only) pass, and only select non-loopback
AF_INET interfaces that are up on first pass.
1997-09-21 23:04:51 +00:00
Poul-Henning Kamp
d030d2d2ae
Many places in the code NULL is used in integer context, where
...
plain 0 should be used. This happens to work because we #define
NULL to 0, but is stylistically wrong and can cause problems
for people trying to port bits of code to other environments.
PR: 2752
Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
1997-09-18 14:08:40 +00:00
Philippe Charnier
34384756cd
environmental -> environment.
1997-09-18 06:55:21 +00:00
Peter Wemm
9e06e6da51
Some adjustments for the resolver use of poll(). For some reason I thought
...
an unimplemented syscall returned ENOSYS, rather than EINVAL. I have run
statically linked code with this wrapper and it does appear to work fine
on 2.2-stable which doesn't have poll(). ktrace shows the poll syscall fail
once and the fallback to select() working.
1997-09-16 06:03:54 +00:00
Peter Wemm
b7ecb08afa
Put a system call not present checking wrapper around the call to
...
__getcwd(). I've got this libc code running on one of my machines
at the moment without the __getcwd() syscall being present.
1997-09-16 06:00:50 +00:00
Wolfram Schneider
211fed7e35
Fix yet a minor stylistic nit from Bruce.
...
(`cvs diff -ib' print one new char ;-).
1997-09-15 19:37:23 +00:00
Poul-Henning Kamp
36dff60096
Fix yet a minor stylistic nit from Bruce (Doesn't he have more
...
important things to do ?? :-)
Prepare for the likely case of a change in kernel algorithm.
1997-09-15 17:40:15 +00:00
Poul-Henning Kamp
9c2d6fcf05
Fix a buglet and a couple of stylistic nits from Bruce.
1997-09-15 08:25:14 +00:00
Wolfram Schneider
8be26e5d0f
Potential bufferflow in getpwent(), getpwnam() and getpwuid()
...
PR: bin/4134
Submitted by: nick@foobar.org
1997-09-14 18:16:11 +00:00
Poul-Henning Kamp
27262cac33
Add __getcwd() syscall, and have getcwd() take a shot at it.
...
If your kernel doesn't support __getcwd() or if __getcwd() cannot
deliver because of cache expiry, it does the canonical thing.
1997-09-14 16:57:27 +00:00
Peter Wemm
535db1806c
Call poll(2) from within the resolver but adapt to older kernels without it
...
if necessary. This removes the need to malloc large fd_set's for selecting
on high fd's (larger than FD_SETSIZE at libc compile time).
The syscall adaptive stuff only happens on the very first call. SIGSYS
is masked, and if the call to poll fails with ENOSYS, then we use select
for the life of the program. If poll does not fail with ENOSYS, then we
always use poll and skip the once-off signal masking gunk.
This may be overkill, but it saved my neck a few times while working on
multiple different sets of kernel sources, some with poll, some without.
1997-09-14 09:44:34 +00:00
Peter Wemm
16115af153
A poll(2) manpage.
...
Obtained from: NetBSD
1997-09-14 05:44:35 +00:00
Peter Wemm
b52c91dd7e
Generate poll syscall stub
1997-09-14 03:29:55 +00:00
Joerg Wunsch
dbf4898f6c
Document SA_NOCLDWAIT.
...
Make all the SA_* flags go into a tagged list, to improve readability.
1997-09-13 19:43:24 +00:00
Bruce Evans
065bebee55
Removed superfluous quoting of function args.
1997-09-07 04:10:35 +00:00
Bruce Evans
f12d1f0bf6
Fixed style bug in pseudocode.
1997-09-07 04:01:27 +00:00
Bruce Evans
853aa1faf3
Fixed synopsis. The envp arg for execle() can't be given in the prototype.
...
Fortunately, the man page doesn't refer to "envp" so just deleting it is OK.
1997-09-03 03:25:35 +00:00
Brian Somers
a367bd9e25
Add "options no_tld_query" to resolv.conf.
...
Mention the capability in resolver(5).
Mention that RES_OPTIONS can be used in resolver(5).
Discussed with: -hackers
1997-09-01 01:19:23 +00:00
Bruce Evans
4447a79bf7
Fixed inclomplete function type in synopsis.
1997-08-31 21:54:10 +00:00
Poul-Henning Kamp
188891873e
Another 32bits of 64bits conformance.
...
Reviewed by: phk
Submitted by: jdp
1997-08-31 05:59:39 +00:00
Peter Wemm
77909f5978
Initial elf nlist support, mostly stolen from OpenBSD (they use standard
...
#defines that are compatable with ours). I made some some minor tweaks
to the leading '_' tests.
Again, this is off by default for the moment. This probably should be
split into seperate files (like some of our other libc files that could
do with some splitting).
Obtained from: OpenBSD (plus some minor tweaks)
1997-08-31 00:08:35 +00:00
KATO Takenori
01f770e87c
Added HW_MACHINE_ARCH.
1997-08-30 02:26:36 +00:00
Warner Losh
9a91f1cc25
Merge in the safe chdir changes from Todd Miller's mods to the OpenBSD
...
tree. Also merge in fix to NetBSD PR #1495 . These represent 1.3-1.9 in
the OpenBSD tree. Make minor KNF changes to new code (which is in the
OpenBSD as 1.10). This avoids the symlink race problems.
These patches should go into 2.2.5 before the ship if they don't
break anything in -current.
Reviewed by: Bruce Evans
Obtained from: OpenBSD
1997-08-29 22:56:41 +00:00
John Polstra
9295bb8d0d
Add a stub version of getpublickey(), in order to eliminate an
...
undefined symbol referenced from libc. Without the stub, it is
impossible to execute any program using the shared library if
LD_BIND_NOW=1 is in the environment. The stub always returns
failure, but it can be overridden outside the library when necessary.
I don't know whether this is the "correct" fix, but it is intolerable
to have any undefined symbols referenced from libc.
1997-08-28 21:50:33 +00:00
Andrey A. Chernov
eb8eee5a55
Use getpwnam(getlogin()) before getpwuid(getuid())
1997-08-27 13:36:34 +00:00
Poul-Henning Kamp
263f4be35c
Improvement of type independency for the bitmap.
...
This makes 64bit operation more likely.
Reviewed by: phk
Submitted by: jdp
1997-08-27 12:04:33 +00:00
Poul-Henning Kamp
cd15afa3e8
Malloc option H is now default.
1997-08-27 06:40:34 +00:00
Warner Losh
3fa69daee8
Don't getenv(HOME) when set[ug]od. This can lead to a buffer overflow and
...
elevated privs.
Obtained from: OpenBSD
1997-08-27 05:27:53 +00:00
Steve Price
a89989b26f
Get rid of integer overflow warning.
...
PR: misc/3575
Submitted by: Bruce Evans <bde@zeta.org.au>
1997-08-23 23:51:12 +00:00
Steve Price
da0a2ddec5
Reference the correct version of BSD at the bottom of the
...
manpage.
PR: docs/3735
1997-08-23 21:32:50 +00:00
Bruce Evans
1ae93414c3
Fixed off by 1 error.
1997-08-21 19:44:41 +00:00
Peter Wemm
04b8783cda
Manpage for getsid(2).
1997-08-19 07:19:43 +00:00
Peter Wemm
4ff76833b4
Forgot to mention what getpgid(0) does.
1997-08-19 07:04:43 +00:00
Peter Wemm
ff31b5e404
Manpage for getpgid(2), wording taken from NetBSD.
1997-08-19 07:00:53 +00:00
Peter Wemm
38fed76f7f
Syscall stubs for getpgid()/getsid().
1997-08-19 06:23:45 +00:00
Steve Price
51cc902b40
Reflect reality of sticky bits and UFS-based filesystems.
...
PR: docs/4198
Submitted by: Ada T. Lim <ada@not-enough.bandwidth.org>
1997-08-17 00:19:28 +00:00
Steve Price
449a542231
Describe the QCMD macro and its parameters.
...
PR: docs/4261
1997-08-17 00:08:40 +00:00
David Greenman
f5f31fba12
Fixed file descriptor leak that occurs after certain types of failures.
...
PR: 3516
Submitted by: Matthew Flatt <mflatt@cs.rice.edu>
1997-08-15 05:21:16 +00:00
Andrey A. Chernov
422ff09040
Explicitly point that it_value == 0 disables timer regardles of
...
it_interval value. It is backward-compatible with previous usage
and SunOS-compatible now.
1997-08-14 08:26:25 +00:00
Andrey A. Chernov
3ece8e2b27
Describe itimerfix upper limit
1997-08-14 07:57:58 +00:00
Andrey A. Chernov
067fe639d7
Describe upper limit based on itimerfix restriction
1997-08-14 07:44:57 +00:00
Andrey A. Chernov
a85a54896e
Oops, fix logic for previous commit
1997-08-14 06:46:44 +00:00
Andrey A. Chernov
d1e224f2cc
Remove wrong machine-dependent phrase about maximum microseconds
...
limit. Small cleanup.
1997-08-14 06:32:25 +00:00
Andrey A. Chernov
3b3d0d1b49
Break loop if error != EINTR occurse or it can take forever with
...
time_remaining unchanged
1997-08-14 06:23:48 +00:00
Andrey A. Chernov
2e2d038677
Note that default behaviour (restarting signals) is only for signal(3)
1997-08-13 18:40:57 +00:00
Andrey A. Chernov
71936d097e
Handle syscalls error return slightly better
1997-08-13 18:22:41 +00:00
Andrey A. Chernov
3be4b5c3df
Back out itimerfix hack since nanosleep1 fixed now
...
Handle syscalls error return slightly better
1997-08-13 18:13:17 +00:00
Andrey A. Chernov
f38ea584f5
Add unsigned char cast to all ctype calls
1997-08-13 13:11:53 +00:00
Andrey A. Chernov
fc0cc5ad9b
Rearrange itimerfix loop doing it inside SIGALRM handling section
1997-08-12 19:54:31 +00:00