John Birrell
0107877e04
Change MACHINE references to MACHINE_ARCH.
1998-02-20 08:23:55 +00:00
John Birrell
4439d165b7
Add #include <string.h> to get prototypes.
1998-02-20 08:13:51 +00:00
John Birrell
dc2c8572e9
The NetBSD getlogin syscall has a different name.
1998-02-20 08:07:40 +00:00
John Birrell
6abbaf17ac
Fix a bogus cast for a bogus pointer check. This only checks if the
...
pointer is 4-byte aligned. On a 64-bit machine it probably should
check that the pointer is 8-byte aligned (eh, Bruce?) 8-)
1998-02-20 08:00:01 +00:00
John Birrell
9fcbcd0217
NetBSD kernels don't have issetugid(), so #ifdef this out when
...
building FreeBSD's libc to run with a NetBSD kernel. We'll get to
the alpha kernel later, I promise. 8-)
1998-02-20 07:54:56 +00:00
Steve Price
1cd25b46da
Need to #include <unistd.h> for nice(3).
...
PR: 5782
Submitted by: David Malone <dwmalone@maths.tcd.ie>
1998-02-18 18:34:17 +00:00
Julian Elischer
39a9295edc
Submitted by: Jeremy Allison (jallison@whistle.com)
...
fix a slight confusion about which draft of threads we are supporting.
this allows something as big and ugly as samba to be compiled with libc_r
and still work! our user-level pthreads seems amazingly robust!
1998-02-18 01:20:33 +00:00
Jordan K. Hubbard
934fb1c520
correct a typo I just noticed.
1998-02-17 19:41:53 +00:00
Jordan K. Hubbard
a414d6056c
Mention when bidirectional features first appeared.
1998-02-17 16:36:48 +00:00
John Birrell
c86afb6bc0
signal() returns SIG_ERR, not just -1. The sys/signal.h header file
...
provides the cast from -1 to the signal() return type, so no further
casting by programmers should be required.
Pointed out by: bde (of course).
1998-02-15 00:46:47 +00:00
Steve Price
0f4b8423e1
Note that '+' and '?' are not special characters in basic REs but they
...
can be simulated using bounds.
PR: 5708
Submitted by: Oliver Fromme <oliver.fromme@heim3.tu-clausthal.de>
1998-02-14 18:26:29 +00:00
Bruce Evans
768950348d
Describe signal handling. Don't describe the old implementation. Don't
...
define `microsecond'. Cleaned up English.
Obtained from: mostly from sleep.3
1998-02-13 04:44:49 +00:00
Bruce Evans
fb364c6d7d
Describe signal handling. Don't describe the old implementation. Cleaned
...
up English.
Obtained from: mostly from NetBSD
1998-02-13 03:34:11 +00:00
Warner Losh
2f253e75c8
Many security improvements from OpenBSD:
...
implement mkdtemp
improve man page for mk*temp
use arc4random to seed extra XXX's randomly
Optionally warn of unsafe mktemp uses
From various commits by theo de raadt and Todd Miller.
Obtained from: OpenBSD
This should go into 2.2 after a testing period.
1998-02-13 02:13:24 +00:00
Bruce Evans
237ca38d86
Fixed disordering of MLINKS in previous commit. Fixed old disorder in
...
MLINKS.
1998-02-12 23:52:23 +00:00
Bill Paul
12228287c1
Fix _listmatch() again so that it works with group lists containing only
...
one group. Thanks to Dirk Froemberg for supplying a patch for this. I will
be closing out the PR and moving this to the 2.2.5 branch later: my login
sessions to freefall from Columbia are ridiculously spotty today.
PR: 5610
Submitted by: Dirk Froemberg <ibex@physik.TU-Berlin.DE>
1998-02-12 19:29:05 +00:00
Nate Williams
6629ddfc54
- Bump the minor # due to the addition of the stringlist functions.
...
Reviewed by: asami
1998-02-12 01:44:53 +00:00
Guido van Rooij
3ff9c00752
Do signal handlig he Posix way
...
Obtained from: NetBSD (after complains from Bruce)
1998-02-10 20:05:15 +00:00
John Polstra
645c4be38a
Move the trampolines for dlopen and related functions from crt0.o
...
into libc. This reduces the size of every dynamically linked
executable by 248 bytes, and it reduces the size of static executables
by a lesser amount. It also eliminates some global namespace
pollution.
With this change in place, the source for dlfcn.h should probably
be moved to "/usr/src/include". I'll save that for another day.
Compatibility note: Programs which use dlopen, if compiled on
systems with this change, will not run on systems with a libc from
prior to this change. Very few programs use dlopen, so I think
that is OK.
1998-02-09 06:05:25 +00:00
Jonathan Lemon
4f36d4ac99
Document the fpgetprec/fpsetprec functions in their man page.
...
Add cross-references to the elusive fpsetmask() function to various other
man pages.
Reviewed by: bde
1998-02-04 22:30:20 +00:00
Steve Price
f63999476c
Cleanup the manpage now that setpwent has a void return type.
1998-02-01 17:13:12 +00:00
Steve Price
2e645a20cb
XOpen says the void setpwent(void) is correct. Also call setpassent(0)
...
instead of duplicating code, albeit trivial (inspired by NetBSD).
PR: 5524
1998-02-01 06:16:08 +00:00
Warner Losh
52dbfb5c0f
Kill lfs files that were causing make world to fail.
1998-01-31 05:53:57 +00:00
Daniel O'Callaghan
38ce39bde5
PR: 5573
...
Submitted by: garbanzo@hooked.net
Add strncasecmp, strncmp to NAME field.
1998-01-27 07:01:09 +00:00
John Birrell
2b3f4eadb0
Fix a cast from a pointer to a long instead of an int which was enough
...
to ruin a 64-bit day.
1998-01-24 20:57:38 +00:00
Warner Losh
9f6c32362c
Eliminate sprintf
...
Obtained from:OpenBSD (theo de raadt)
1998-01-21 21:46:36 +00:00
Bruce Evans
c7b367098d
Fixed #includes in the synopsis and in an example. <sys/socket.h>
...
isn't a prerequisite, since it isn't required for the prototypes
and isn't always needed to call the functions (the address family
might be a variable).
1998-01-20 11:03:15 +00:00
Bruce Evans
2aeb5561dd
Moved most of the (source-level) compatibility hacks for the vfsconf
...
interface from sys/mount.h to libc/getvfsent.c The new interface is
now the default.
1998-01-20 10:36:24 +00:00
Alexander Langer
2768e0c4b5
Added cross references to mincore(2) and minherit(2).
...
Obtained from: OpenBSD
1998-01-20 03:59:07 +00:00
Alexander Langer
891d6e5881
Added #include <sys/types.h> to synopsis.
...
Obtained from: OpenBSD
1998-01-20 03:52:49 +00:00
Bruce Evans
1e69872de7
Started getting rid of the compatibility cruft for the Lite1 mount()
...
and the pre-Lite2 vfsconf interfaces.
For getvfsent.c, just define _OLD_VFSCONF. This will give the
current default macro hacks in <sys/mount.h> when the default is
reversed. This is an intermediate step.
1998-01-17 16:32:14 +00:00
Bruce Evans
c8b6b31f15
Fixed missing #include in synopsis.
1998-01-16 13:41:28 +00:00
Bruce Evans
a182428346
Fixed wrong prototype for clock_getres().
1998-01-16 13:39:49 +00:00
Bruce Evans
d142a33b7f
Fixed wrong prototypes. Most of the prototypes had missing return types,
...
or missing const's or `short *' instead of `[ug]id_t *' in argument types.
1998-01-16 13:33:09 +00:00
Bruce Evans
04b7c9479b
Fixed missing return type in a prototype.
1998-01-16 13:10:18 +00:00
Stephen McKay
4773010d2f
Return the correct errno from getcwd() even if free() or closedir()
...
overwrites it. This actually showed up when running under an old
kernel when free() called the madvise() stub which set errno, causing
getcwd() to return EOPNOTSUPP instead of ERANGE.
1998-01-15 13:52:55 +00:00
John Birrell
c61e516832
Add #ifndef __NETBSD_SYSCALLS around calls to issetugid() which
...
do not exist in NetBSD 1.3.
1998-01-15 09:58:08 +00:00
Alexander Langer
cbc3778c2f
Typo fix.
...
Added EOPNOTSUPP and EMLINK to errors section.
Added symlink(2) xref.
Obtained from: OpenBSD
1998-01-15 04:31:28 +00:00
John Birrell
da8a9b61c7
Include string.h for memcpy function prototype.
1998-01-14 08:14:56 +00:00
Alexander Langer
4d1b2e67ae
Consistently reference init as .Xr init 8.
...
Obtained from: OpenBSD
1998-01-13 05:09:16 +00:00
Alexander Langer
e3abfc8253
Return type and argument to sleep are unsigned int.
1998-01-13 04:32:00 +00:00
Alexander Langer
26db1da8a9
Dump the constant NGROUPS in favor of the POSIX way:
...
sysconf(_SC_NGROUPS_MAX).
Submitted by: bde
1998-01-13 01:30:17 +00:00
Alexander Langer
e4a6f1ad1f
Use .Fn for sysconf(_SC_CLOCK_TCK) reference.
...
Added $Id$.
1998-01-13 01:21:19 +00:00
Alexander Langer
73a8c56ec1
Formatting fix & improved comment for struct timeval.
...
Obtained from: OpenBSD
1998-01-11 22:28:56 +00:00
Alexander Langer
d4b1275d66
Fixed brk(2) xref.
...
Obtained from: OpenBSD
1998-01-11 22:22:50 +00:00
Alexander Langer
21bcb535ea
Added sys/types.h to synopsis as per POSIX.
...
Obtained from: OpenBSD
1998-01-11 22:16:11 +00:00
Alexander Langer
7ea0dca625
Replace sys/param.h with sys/types.h as per POSIX.
...
Document the special case of gidsetlen == 0.
Partially obtained from: OpenBSD
1998-01-11 22:01:20 +00:00
Alexander Langer
6eba99b0db
Document that arg max is controllable via sysctl.
1998-01-11 21:43:38 +00:00
Alexander Langer
92d7687ee6
Formatting fix.
...
Obtained from: OpenBSD
1998-01-11 17:49:51 +00:00
Alexander Langer
fa70846939
Added EMFILE and ENFILE to errors section.
...
Obtained from: OpenBSD
1998-01-11 17:07:20 +00:00