mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-23 18:14:56 +01:00
Remove struct cmessage from sys/socket.h and reintroduce the private
definitions. Requested by: wollman
This commit is contained in:
parent
922ed94923
commit
392df6bce7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74660
@ -81,6 +81,11 @@ static char sccsid[] = "@(#)clnt_vc.c 1.19 89/03/16 Copyr 1988 Sun Micro";
|
||||
|
||||
#define MCALL_MSG_SIZE 24
|
||||
|
||||
struct cmessage {
|
||||
struct cmsghdr cmsg;
|
||||
struct cmsgcred cmcred;
|
||||
};
|
||||
|
||||
static enum clnt_stat clnt_vc_call __P((CLIENT *, rpcproc_t, xdrproc_t, caddr_t,
|
||||
xdrproc_t, caddr_t, struct timeval));
|
||||
static void clnt_vc_geterr __P((CLIENT *, struct rpc_err *));
|
||||
|
@ -68,8 +68,10 @@ static char *sccsid = "@(#)svc_tcp.c 2.2 88/08/01 4.0 RPCSRC";
|
||||
#include "rpc_com.h"
|
||||
#include "un-namespace.h"
|
||||
|
||||
#define SOCKCREDSIZE(ngrps) \
|
||||
(sizeof(struct cmsgcred) + (sizeof(gid_t) * ((ngrps) - 1)))
|
||||
struct cmessage {
|
||||
struct cmsghdr cmsg;
|
||||
struct cmsgcred cmcred;
|
||||
};
|
||||
|
||||
static SVCXPRT *makefd_xprt __P((int, u_int, u_int));
|
||||
static bool_t rendezvous_request __P((SVCXPRT *, struct rpc_msg *));
|
||||
|
@ -364,11 +364,6 @@ struct cmsgcred {
|
||||
gid_t cmcred_groups[CMGROUP_MAX]; /* groups */
|
||||
};
|
||||
|
||||
struct cmessage {
|
||||
struct cmsghdr cmsg;
|
||||
struct cmsgcred cmcred;
|
||||
};
|
||||
|
||||
/* given pointer to struct cmsghdr, return pointer to data */
|
||||
#define CMSG_DATA(cmsg) ((u_char *)(cmsg) + \
|
||||
_ALIGN(sizeof(struct cmsghdr)))
|
||||
|
@ -62,6 +62,11 @@ struct dom_binding {};
|
||||
#include "yppasswd.h"
|
||||
#include "yppasswd_private.h"
|
||||
|
||||
struct cmessage {
|
||||
struct cmsghdr cmsg;
|
||||
struct cmsgcred cmcred;
|
||||
};
|
||||
|
||||
char *tempname;
|
||||
|
||||
void reaper(sig)
|
||||
|
Loading…
Reference in New Issue
Block a user