Commit Graph

5266 Commits

Author SHA1 Message Date
dfr
4338eb2498 Shorter versions of the byte swapping code. 2001-10-10 10:34:08 +00:00
jkh
3ecc099602 Check to see if the devfs MIB exists and return 1 if it exists rather
than making device node(s).
Submitted by:	Hiroo ONO <hiroo@oikumene.gcd.org>
2001-10-10 07:46:04 +00:00
ache
fc83bdab66 Implement strcasestr() which many others (f.e. Linux) already have. 2001-10-10 02:17:35 +00:00
mike
3af7ef2c4b Document the fact that the strnstr(3) function is not portable.
Requested by:	brian, gad
2001-10-09 17:22:02 +00:00
mike
9a738c4dbe Don't mangle vendor ids to put them in __RCSID. Just ifdef all vendor
id cruft.

Submitted by:	bde
2001-10-09 16:40:04 +00:00
mike
9a27a4f0fe Add a new libc function, strnstr(3), which allows one to limit the
number of characters that are searched.  This is especially useful
with file operations and non-NUL terminated strings.

Silence from:	-audit, -hackers
MFC after:	5 days
2001-10-09 01:29:56 +00:00
dfr
ff9e5f79f5 Port to ia64. Actually, just do like the alpha. 2001-10-08 08:29:52 +00:00
deischen
4d56211ce3 Limit maximum poll interval to 60 seconds. This prevents an overflow
from occurring when converting from a timeval/timespec to a timeout in
milliseconds.

Submitted by:	dwmalone
2001-10-07 02:34:43 +00:00
dfr
bfef499fd2 Make this work on ia64. I have no idea why it works on alpha - it
shouldn't.
2001-10-06 15:58:54 +00:00
dfr
32880df50a Fix a load of dependancy violations. 2001-10-05 18:52:42 +00:00
wpaul
6c9e575b19 Add compatibility functions for the AF_LOCAL RPC transport stuff
that used to live in RPC 4.0. This is needed for yppasswd and
rpc.yppasswdd to work correctly. Patch supplied by Martin Blapp.
2001-10-04 21:03:17 +00:00
dwmalone
86cf053ae0 Hopefully improve control message passing over Unix domain sockets.
1) Allow the sending of more than one control message at a time
over a unix domain socket. This should cover the PR 29499.

2) This requires that unp_{ex,in}ternalize and unp_scan understand
mbufs with more than one control message at a time.

3) Internalize and externalize used to work on the mbuf in-place.
This made life quite complicated and the code for sizeof(int) <
sizeof(file *) could end up doing the wrong thing. The patch always
create a new mbuf/cluster now. This resulted in the change of the
prototype for the domain externalise function.

4) You can now send SCM_TIMESTAMP messages.

5) Always use CMSG_DATA(cm) to determine the start where the data
in unp_{ex,in}ternalize. It was using ((struct cmsghdr *)cm + 1)
in some places, which gives the wrong alignment on the alpha.
(NetBSD made this fix some time ago).

This results in an ABI change for discriptor passing and creds
passing on the alpha. (Probably on the IA64 and Spare ports too).

6) Fix userland programs to use CMSG_* macros too.

7) Be more careful about freeing mbufs containing (file *)s.
This is made possible by the prototype change of externalise.

PR:		29499
MFC after:	6 weeks
2001-10-04 13:11:48 +00:00
mike
aebf871de5 Include <string.h> to prototype strcpy(3). While I'm here, make use
of the new RCSID macros.

MFC after:	3 days
2001-10-04 04:42:03 +00:00
bde
fef75fe036 Fixed various type errors in synopsis. 2001-10-03 16:53:59 +00:00
bde
8ef25d0d0b Fixed bitrot in synopsis. The TI-RPC changes gave mounds of it, mainly
inconsistently weird const poisoning in the man pages relative to the
headers.
2001-10-03 16:47:56 +00:00
bde
6713900c98 Fixed spelling of rpow in rpow's prototype. 2001-10-03 16:33:00 +00:00
bde
9097abc647 Fixed missing `const' in synopsis. 2001-10-03 16:29:21 +00:00
bde
52c081280b Fixed return type in synopsis. 2001-10-03 16:25:08 +00:00
bde
a98e38f50d Fixed bitrot in synopsis. The change of the color type from byte to u_long
had not reached here.
2001-10-03 15:20:03 +00:00
alfred
036a7d2e16 Avoid getting stuck in system(3) when the internal call to wait4()
is interrupted by saving the pid.

The old code would assign the return value to pid which would trash
it, to fix the problem save a copy of the pid to be used as the
paramter to wait4().

Submitted by: Toshihiko ARAI <toshi@jp.FreeBSD.org>
2001-10-03 11:01:39 +00:00
bde
1504179848 Don't install manpage links for the nonexistent functions exp2(),
exp2f(), log2() and log2f().
2001-10-03 06:30:11 +00:00
bde
44d201ca6b Removed .Nm's for the nonexistent functions exp2() and exp2f(). 2001-10-03 06:25:55 +00:00
bde
e94a83a247 Made this header self-sufficient.
Fully parenthesized a macro definition.
2001-10-03 05:25:07 +00:00
bde
fb673f2a68 Fixed syntax errors in synopsis. The restrict keyword doesn't exist yet.
The corresponding bugs in <wchar.h> have no effect because the function
prototypes there don't have args so the __restrict "keyword" is
misinterpreted as an arg.
2001-10-03 05:19:47 +00:00
bde
eadd87b6ca Fixed wrong arg type in synopsis. 2001-10-03 03:57:42 +00:00
bde
3f1e09f08e Fixed bitrot in synopsis. The change of the return type of
Set_Boot_Blocks() from void to int had not reached here.  Callers
still don't check the new return value.
2001-10-03 03:49:48 +00:00
bde
ef9cbcca28 Fixed misspelled arg type in synopsis. 2001-10-03 01:45:37 +00:00
bde
341e54f418 Fixed missing include in synopsis. 2001-10-03 00:51:30 +00:00
ume
b348544a5d - cope with sa_len < sizeof(struct sockaddr).
From: Patrik Lindergren <patrik@datacom.nu>
- delint (pointer cast issue).  from netbsd-current

Obtained from:	KAME
MFC after:	1 week
2001-10-02 13:51:29 +00:00
obrien
90414d9ad1 Clean this up after the NetBSD syncing. 2001-10-01 23:10:48 +00:00
obrien
8b3bce34f5 Fix ID's after a total boch CVS merge due to multiple people making
commits to these files.
As I sing to CVS:
	Have I told you lately that I hate your guts?  Have I told you
	all SCM's are above you?  You fill my heart with pain, take away
	all my merging joy, grow my troubles that's what you do."
2001-10-01 23:00:29 +00:00
obrien
0c753dc50e Our histedit.h lives in src/include. 2001-10-01 21:08:03 +00:00
ru
623da62a5a mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
ru
7045e5a1bc Re-applied some of rev. 1.11 and 1.13 fixes that were lost in the last commit.
Fixed some more.
2001-10-01 15:53:07 +00:00
ru
2091dd93be mdoc(7) police: don't split author names in the AUTHORS section. 2001-10-01 13:50:03 +00:00
ru
02dbca2256 mdoc(7) police: markup nits. 2001-10-01 12:52:24 +00:00
ru
27a539ba89 mdoc(7) police: s/atof/atoi/ 2001-10-01 12:44:24 +00:00
obrien
700804d7d0 Add the 4.4-FreeBSD libperl.so.3 as the version in -CURRENT is .so.4. 2001-10-01 11:25:34 +00:00
obrien
e4f92ef619 Add the 4.4-FreeBSD libedit.so after the sh version bump in -CURRENT due
to the API changes from merging with the NetBSD libedit.
2001-10-01 09:26:23 +00:00
obrien
d19b018f0e What was I thinking???
<JEDI MIND TRICK>
	That was not the commit you wanted to get.
</JEDI MIND TRICK>
2001-10-01 09:25:49 +00:00
obrien
35a21ee47e What was I thinking....
<JEDI MIND TRICK>
	This is not the commit you wanted to get.
</JEDI MIND TRICK>
2001-10-01 09:22:04 +00:00
obrien
1505d842e0 Add the 4.4-FreeBSD libwrap after the sh version bump in -CURRENT due to
the API changes from merging with the NetBSD libwrap.
2001-10-01 09:17:23 +00:00
obrien
90300f8536 + Sync with NetBSD, bringing in feature enhancements.
+ Convert to ANSI-C function definitions
+ style(9)

Submitted by:	kris
2001-10-01 08:41:27 +00:00
dillon
198df63868 Add huff __FBSDID()s puff to whew! libz 2001-09-30 22:39:00 +00:00
dillon
ae3a4e3b01 Add __FBSDID()s to liby 2001-09-30 22:36:18 +00:00
dillon
3f4eabe659 Add __FBSDID()s to libutil 2001-09-30 22:35:07 +00:00
dillon
35945dc1b7 Add __FBSDID()s to libusb 2001-09-30 22:30:55 +00:00
dillon
615806b0ec Add __FBSDID()s to libtelnet 2001-09-30 22:30:15 +00:00
dillon
1788c68652 Add __FBSDID()s to libtacplus 2001-09-30 22:29:19 +00:00
dillon
f6666a61a9 Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00