Brian Somers
0ffaca1078
1) in CleanupAliasData, don't nullify entry in linkTableOut
...
since there might be permanent entries still left after
calls to DeleteLink (it will be nullified by DeleteLink
if all entries are deleted, won't it ?)
2) in PacketAliasSetAddress, set the aliasing address
even when PKT_ALIAS_RESET_ON_ADDR_CHANGE is in effect.
Just don't clean up links in this case.
Submitted by: Ari Suutari <ari@suutari.iki.fi>
via: Charles Mott <cmott@srv.net>
PR: 5041
1998-02-27 23:07:07 +00:00
Paul Traina
897e6eb1f4
Compile under -W -Wall -Werror.
...
Fix API - keycrunch takes const char's, not chars.
1998-02-27 22:36:51 +00:00
Bruce Evans
5efd9b894a
Don't add non-generated sources to CLEANFILES. There was no problem
...
in practice, even if there is no obj directory, because the sources
are not in ${.CURDIR} and the full path to them was not added.
1998-02-25 01:30:05 +00:00
Bruce Evans
3ee49aeb72
Don't add OBJS to CLEANFILES. bsd.obj.mk does it. Some objects were
...
duplicated.
1998-02-25 01:20:27 +00:00
Bill Fenner
15b873cc56
Change tty-related capability names to match the implementation ("ttys.",
...
not "tty.").
1998-02-21 23:29:59 +00:00
John Birrell
6af88557f9
Change MACHINE references to MACHINE_ARCH.
1998-02-20 08:41:46 +00:00
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
John Birrell
05b706676b
Add alpha support. m68k crept in too. Oops. 8-)
1998-02-20 07:44:29 +00:00
John Birrell
554ce32897
Avoid an uninitialised variable warning from gcc. I bet some people
...
don't like me doing this, but I want to see clean compiles. 8-)
1998-02-20 07:40:22 +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
Jordan K. Hubbard
24b687b8de
MF22: add login_auth.3 to man page list.
1998-02-18 05:29:07 +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
Steve Price
b916ff7fcc
Correctly document h and m modifiers to the time format.
...
PR: 5739
Submitted by: Matthew Cashdollar <mattc@rfcnet.com>
1998-02-14 16:12:53 +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
Julian Elischer
f5295b34ac
Fixes from Jeremy Allison and Terry Lambert for pthreads:
...
specifically:
uthread_accept.c: Fix for inherited socket not getting correct entry in
pthread flags.
uthread_create.c: Fix to allow pthread_t pointer return to be null if
caller doesn't care about return.
uthread_fd.c: Fix for return codes to be placed into correct errno.
uthread_init.c: Changes to make gcc-2.8 thread aware for exception stack
frames (WARNING: This is #ifdef'ed out by default and is
different from the Cygnus egcs fix).
uthread_ioctl.c: Fix for blocking/non-blocking ioctl.
uthread_kern.c: Signal handling fixes (only one case left to fix,
that of an externally sent SIGSEGV and friends -
a fairly unusual case).
uthread_write.c: Fix for lock of fd - ask for write lock, not read/write.
uthread_writev.c: Fix for lock of fd - ask for write lock, not read/write.
Pthreads now works well enough to run the LDAP and ACAPD(with the gcc 2.8 fix)
sample implementations.
1998-02-13 01:27:34 +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
John Polstra
0fbd9e9828
Remove the include of <dlfcn.h> from crt0.c; it is not needed now
...
that the dl* trampolines have been moved into libc.
Move dlfcn.h from src/lib/csu/i386 into src/include. Nothing in
src/lib/csu/i386 uses it any more.
1998-02-11 04:57:25 +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
Jordan K. Hubbard
f1a98d56f2
Be more verbose if we can't determine device major/minor.
1998-02-10 17:19:12 +00:00
Jordan K. Hubbard
74be6b27e1
environment variables missing from ftpio(3) man page
...
PR: 5691
Submitted by: archie@whistle.com
1998-02-10 07:01:51 +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
John Polstra
663690b388
Implement dladdr.
1998-02-06 16:46:46 +00:00
Julian Elischer
eb45f34378
slight cleanup in handling sockets and file descriptors.
...
Same fix already applied to other types of fds. This one was apparently missed.
1998-02-05 21:16:52 +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
Wolfgang Helbig
5aeee887af
Don't swap carriage return and new line in quoted mode (after ^V).
1998-01-22 07:37:10 +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
ccb8bfa988
Don't install the tcl implementation headers. The tcl distribution
...
makefile doesn't install them, and they couldn't be used without
lots of undocumented -I's in CFLAGS. tcl.h is still installed in
/usr/include/tcl/. Note that rev.1.24 of tcl_bmake/mkMakefile.sh
broke all the section 3 tcl man pages by putting it there instead
of in /usr/include.
1998-01-17 15:52:32 +00:00
Bruce Evans
7eb44007dd
Updated shlib version to 80.4 in the correct place.
...
Regenerated libtcl/Makefile. This adds -DHAVE_ST_BLKSIZE=1 to CFLAGS.
It was broken by direct editing in rev.1.25.
1998-01-17 15:49:55 +00:00
Bruce Evans
060cc64852
Fixed bitrot in the prototype for logwtmp().
1998-01-16 16:53:30 +00:00
Bruce Evans
d7fb4b13b9
Fixed bugs in the conversion of kvm to to use procfs in rev.1.3. All
...
are in kvm_uread():
- the setting of errno before checking it in the lseek() was lost.
- EOF handling was lost. kvm_uread() retried forever on EOF. EOF is
not really an error, but report it one as in rev.1.2.
- reporting of errno after a read error was lost.
Fixed style bugs in rev.1.3 and rev.1.12.
Not fixed: errno is not reported after lseek() failures.
1998-01-16 16:45:05 +00:00
Bruce Evans
cf95d56dc5
Fixed wrong prototype for history().
...
Don't (mis)use .Fd outside of the synopsis.
1998-01-16 14:33:47 +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
Bruce Evans
442a25bd7b
Fixed a missing #include in the synopsis.
...
Fixed some wrong prototypes.
Fixed a misspelled function name.
The owner of this file should add a copyright and an Id.
1998-01-16 13:02:58 +00:00
Bruce Evans
bb6d5d9147
Added prototypes for functions that were documented in libalias.3
...
but not prototyped here.
1998-01-16 12:56:07 +00:00
Jordan K. Hubbard
76b851fda2
Non-intrusive changes to support Justin's CAM stuff.
1998-01-16 12:50:36 +00:00
Daniel O'Callaghan
fb9d219add
PR: 5489
...
Submitted by: Steve G. Kargl <kargl@troutmask.apl.washington.edu>
Repair corrupted text.
1998-01-15 23:28: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
Brian Somers
b563bd02f0
Remove __libalias_version. Ppp no longer uses it.
1998-01-14 01:24:49 +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
John Birrell
49f91abde3
When printf'ing the result of pointer arithmetic, cast the result to
...
long and use %ld, not %d.
We're going to need an abbreviation for this comment 'cause it's going
to be used a lot from now on.
1998-01-13 03:07:10 +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
Eivind Eklund
920207a8e9
${TARGET} -> ${.TARGET}
...
Tiny pointed hat goes to: Our Makefile-meister.
1998-01-12 18:29:02 +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
Eivind Eklund
58ba5f4a30
Remove use of <osreldate.h>.
...
Screwed up by: myself
1998-01-11 18:34: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
Alexander Langer
5e8b84b628
.Xr sigvec --> sigaction
...
Obtained from: OpenBSD
1998-01-11 16:56:01 +00:00
Alexander Langer
a5c3b32774
Add <sys/types.h> to synopsis.
...
Correct a grammatical error.
Add cross-reference to setrlimit(2).
Obtained from: OpenBSD
1998-01-11 16:51:49 +00:00
John Birrell
3c526fbfd3
CSU source for Alpha obtained from NetBSD. The makefile will require
...
more work when we get a half-way usable libc (which is next).
1998-01-11 03:30:39 +00:00
John Birrell
fdbac8827e
We can now build libm on Alpha. There is very little MD alpha code.
1998-01-10 22:51:51 +00:00
John Birrell
11f8db59fb
This is the only alpha math source that NetBSD has.
1998-01-10 22:17:24 +00:00
Steve Price
1f48070a27
Put back __libalias_version so ppp(8) build again.
1998-01-10 19:37:19 +00:00
Alexander Langer
1e73fe2ae8
Sync with ipfw interface change: fw_pts is now part of a union (a
...
necessary evil due to the 108 byte setsockopt() limit).
1998-01-10 16:14:18 +00:00
Jordan K. Hubbard
20f16cfce3
include <net/if.h> and restore this to sanity.
1998-01-10 15:04:06 +00:00
John Birrell
6a7a98c954
Bruce says that ${.CURDIR}/csu/${MACHINE} will prevent finding a
...
stale obj directory and we wouldn't want to do that! I trust he knows
what he's talking about. 8-)
Also avoid building libm at all until the NetBSD asm code is imported.
I wrongly commented this out last time. Oops.
1998-01-10 09:09:24 +00:00
John Birrell
d69fcdf283
Allow this to compile with NetBSD tools.
1998-01-09 23:51:04 +00:00
Eivind Eklund
8ddc51bc8b
Teach libalias to work with IPFW firewalls (controlled by a flag).
...
Obtained from: Yes development tree (+ 10 lines of patches from
Charles Mott, original libalias author)
1998-01-09 21:13:35 +00:00
John Birrell
b09f41a4b9
Don't build libc, libc_r or libm on Alpha yet. We'll do the other
...
libraries first and use NetBSD's libc/libm for now.
1998-01-09 19:46:30 +00:00
John Birrell
f1d896d117
Make a couple of the stat flags dependent on the sys/stat.h header file
...
that this source is compiled against. This source is referenced by
install which is needed as a build tool and must be able to compile
against NetBSD headers and libraries if we have a hope of supporting
another architecture.
With this change, that's two working programs down and 3945 (?) to go.
The other one was make, but that didn't need any changes to work under
FreeBSD/Alpha. 8-)
1998-01-09 06:14:59 +00:00
John Birrell
8d6fec39d2
Build lib/csu/${MACHINE} only if it exists so that when porting FreeBSD
...
to another architecture (in this case the Alpha) we can continue to use
the host csu objects (from NetBSD). This should be a non-function change
to FreeBSD/i386.
1998-01-09 05:37:41 +00:00
Warner Losh
3c8e19e155
handle long usernames more carefully
...
Reviewed by: guido
Obtained from: OpenBSD (Theo de Raadt)
1998-01-07 00:28:36 +00:00
Philippe Charnier
125c8263d8
Convert to mdoc format.
1998-01-05 07:12:16 +00:00
Andrey A. Chernov
b250f24856
size_t -> unsigned
...
in arguments length INT_MAX overflow check
Suggested-by: bde
1998-01-04 22:28:47 +00:00
Alexander Langer
e69bcfc3bc
Expanded cross references.
1998-01-02 19:22:52 +00:00
Andrey A. Chernov
b8b68d9946
Remove unneeded code left from testing
1998-01-02 05:05:20 +00:00
Andrey A. Chernov
8bf5c1da27
1) Redo internal interface to be more latest ncurses-like
...
2) Fix winsdel called in last line of the window (nothing happens in
old variant)
3) Add range checks to wscrl() and internal soft scroll function
1998-01-02 04:36:51 +00:00