1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-11 14:10:34 +00:00
freebsd/lib
David Malone 2bc21ed985 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
..
compat Add the 4.4-FreeBSD libperl.so.3 as the version in -CURRENT is .so.4. 2001-10-01 11:25:34 +00:00
csu Make sure stack is aligned to 16 bytes. 2001-08-21 16:53:23 +00:00
libalias mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libatm __FBSDID() Cleanup 2001-09-30 21:06:00 +00:00
libbind
libbz2 style nit 2001-07-09 23:12:23 +00:00
libc Hopefully improve control message passing over Unix domain sockets. 2001-10-04 13:11:48 +00:00
libc_r mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libcalendar mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libcam mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libcom_err MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libcompat mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libcrypt mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libdevinfo Made this header self-sufficient. 2001-10-03 05:25:07 +00:00
libdevstat Fixed wrong arg type in synopsis. 2001-10-03 03:57:42 +00:00
libdisk Fixed bitrot in synopsis. The change of the return type of 2001-10-03 03:49:48 +00:00
libedit Clean this up after the NetBSD syncing. 2001-10-01 23:10:48 +00:00
libfetch mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libform MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libftpio mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libgnumalloc Add __FBSDID()s to internal libgnumalloc() 2001-09-30 21:38:17 +00:00
libio Add __FBSDID()s to libio 2001-09-30 21:41:46 +00:00
libipsec mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libipx mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libisc MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libkse Mark some functions as __printflike() and/or taking const char * arguments 2001-08-20 12:53:36 +00:00
libkvm mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libm mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libmd mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libmenu Update for ncurses 5.2-20010512 import 2001-05-17 08:30:09 +00:00
libmp Fixed spelling of rpow in rpow's prototype. 2001-10-03 16:33:00 +00:00
libncp Add __FBSDID()s to libncp 2001-09-30 22:01:19 +00:00
libncurses Add __FBSDID()s to libncurses 2001-09-30 22:02:43 +00:00
libnetgraph mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libopie Add __FBSDID()s to libopie 2001-09-30 22:04:49 +00:00
libpam Add __FBSDID()s to libpam 2001-09-30 22:11:06 +00:00
libpanel MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libpcap Update our bpf.h with tcpdump.org's new DLT_ types. 2001-07-31 23:27:06 +00:00
libpthread mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libradius mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libresolv
librpcsvc Add __FBSDID()s to librpcsvc 2001-09-30 22:15:15 +00:00
libsbuf Removed -I${.CURDIR}/../../sys from CFLAGS. 2001-05-20 12:45:53 +00:00
libsmdb
libsmutil
libstand mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libtacplus mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libtelnet Add __FBSDID()s to libtelnet 2001-09-30 22:30:15 +00:00
libusb mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libusbhid mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libutil mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libvgl Fixed bitrot in synopsis. The change of the color type from byte to u_long 2001-10-03 15:20:03 +00:00
libwrap MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libxpg4
liby Add __FBSDID()s to liby 2001-09-30 22:36:18 +00:00
libz Add huff __FBSDID()s puff to whew! libz 2001-09-30 22:39:00 +00:00
msun Don't install manpage links for the nonexistent functions exp2(), 2001-10-03 06:30:11 +00:00
ncurses Add __FBSDID()s to libncurses 2001-09-30 22:02:43 +00:00
Makefile Adjust dependancies and build order. PAM needs RPC. 2001-08-26 17:49:51 +00:00
Makefile.inc