freebsd-skq/usr.sbin/mount_portalfs
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
..
activate.c Hopefully improve control message passing over Unix domain sockets. 2001-10-04 13:11:48 +00:00
conf.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
Makefile Rename (after a repo-copy) some mount(8) programs: 2001-05-23 14:58:19 +00:00
mount_portalfs.8 Rename (after a repo-copy) some mount(8) programs: 2001-05-23 14:58:19 +00:00
mount_portalfs.c Actually rename FDESC, PORTAL, UMAP and UNION file systems. 2001-05-24 15:20:11 +00:00
pathnames.h 10 X's for mktemp(). This seems to be free from race conditions. 2000-01-10 09:33:37 +00:00
portal.conf $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
portald.h - FDESC, FIFO, NULL, PORTAL, PROC, UMAP and UNION file 2001-05-23 09:42:29 +00:00
pt_conf.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
pt_exec.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
pt_file.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
pt_tcp.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
pt_tcplisten.c Add pt_tcplisten.c functionality, fix a few minor bugs 1998-12-15 18:59:07 +00:00