s/u_long/unsigned long/

s/ulong/unsigned long/
s/u_char/unsigned char/
s/u_short/unsigned short/
s/ushort/unsigned short/
s/u_int8_t/uint8_t
s/u_int16_t/uint16_t
s/u_int32_t/uint16_t
s/u_int/unsigned int/
This commit is contained in:
Michael Kerrisk 2007-12-23 17:26:26 +00:00
parent 3dc4c74edf
commit aeb4b1fc8b
17 changed files with 133 additions and 132 deletions

View File

@ -188,13 +188,13 @@ structure:
struct sock_extended_err struct sock_extended_err
{ {
u_int32_t ee_errno; /* error number */ uint32_t ee_errno; /* error number */
u_int8_t ee_origin; /* where the error originated */ uint8_t ee_origin; /* where the error originated */
u_int8_t ee_type; /* type */ uint8_t ee_type; /* type */
u_int8_t ee_code; /* code */ uint8_t ee_code; /* code */
u_int8_t ee_pad; uint8_t ee_pad;
u_int32_t ee_info; /* additional information */ uint32_t ee_info; /* additional information */
u_int32_t ee_data; /* other data */ uint32_t ee_data; /* other data */
/* More data may follow */ /* More data may follow */
}; };
@ -319,11 +319,11 @@ The messages are of the form:
.nf .nf
struct cmsghdr { struct cmsghdr {
socklen_t cmsg_len; /* data byte count, including hdr */ socklen_t cmsg_len; /* data byte count, including hdr */
int cmsg_level; /* originating protocol */ int cmsg_level; /* originating protocol */
int cmsg_type; /* protocol-specific type */ int cmsg_type; /* protocol-specific type */
/* followed by /* followed by
u_char cmsg_data[]; */ unsigned char cmsg_data[]; */
}; };
.fi .fi
.in .in

View File

@ -63,14 +63,14 @@ include file as follows:
.nf .nf
typedef struct { typedef struct {
u_long flags; unsigned long flags;
u_int cachesize; unsigned int cachesize;
int maxkeypage; int maxkeypage;
int minkeypage; int minkeypage;
u_int psize; unsigned int psize;
int (*compare)(const DBT *key1, const DBT *key2); int (*compare)(const DBT *key1, const DBT *key2);
size_t (*prefix)(const DBT *key1, const DBT *key2); size_t (*prefix)(const DBT *key1, const DBT *key2);
int lorder; int lorder;
} BTREEINFO; } BTREEINFO;
.fi .fi
.in .in

View File

@ -146,13 +146,13 @@ least the following fields:
typedef struct { typedef struct {
DBTYPE type; DBTYPE type;
int (*close)(const DB *db); int (*close)(const DB *db);
int (*del)(const DB *db, const DBT *key, u_int flags); int (*del)(const DB *db, const DBT *key, unsigned int flags);
int (*fd)(const DB *db); int (*fd)(const DB *db);
int (*get)(const DB *db, DBT *key, DBT *data, u_int flags); int (*get)(const DB *db, DBT *key, DBT *data, unsigned int flags);
int (*put)(const DB *db, DBT *key, const DBT *data, int (*put)(const DB *db, DBT *key, const DBT *data,
u_int flags); unsigned int flags);
int (*sync)(const DB *db, u_int flags); int (*sync)(const DB *db, unsigned int flags);
int (*seq)(const DB *db, DBT *key, DBT *data, u_int flags); int (*seq)(const DB *db, DBT *key, DBT *data, unsigned int flags);
} DB; } DB;
.fi .fi
.in .in

View File

@ -116,7 +116,7 @@ as:
.in +4n .in +4n
.nf .nf
struct ether_addr { struct ether_addr {
u_int8_t ether_addr_octet[6]; uint8_t ether_addr_octet[6];
} }
.fi .fi
.in .in

View File

@ -105,7 +105,7 @@ described in greater detail below:
.nf .nf
typedef struct _ftsent { typedef struct _ftsent {
u_short fts_info; /* flags for FTSENT structure */ unsigned short fts_info; /* flags for FTSENT structure */
char *fts_accpath; /* access path */ char *fts_accpath; /* access path */
char *fts_path; /* root path */ char *fts_path; /* root path */
short fts_pathlen; /* strlen(fts_path) */ short fts_pathlen; /* strlen(fts_path) */

View File

@ -62,11 +62,11 @@ include file as follows:
.nf .nf
typedef struct { typedef struct {
u_int bsize; unsigned int bsize;
u_int ffactor; unsigned int ffactor;
u_int nelem; unsigned int nelem;
u_int cachesize; unsigned int cachesize;
u_int32_t (*hash)(const void *, size_t); uint32_t (*hash)(const void *, size_t);
int lorder; int lorder;
} HASHINFO; } HASHINFO;
.fi .fi

View File

@ -49,9 +49,9 @@ mpool \- shared memory buffer pool
.sp .sp
.BI "void *mpool_new(MPOOL *" mp ", pgno_t *" pgnoaddr "); .BI "void *mpool_new(MPOOL *" mp ", pgno_t *" pgnoaddr ");
.sp .sp
.BI "void *mpool_get(MPOOL *" mp ", pgno_t " pgno ", u_int " flags "); .BI "void *mpool_get(MPOOL *" mp ", pgno_t " pgno ", unsigned int " flags ");
.sp .sp
.BI "int mpool_put(MPOOL *" mp ", void *" pgaddr ", u_int " flags "); .BI "int mpool_put(MPOOL *" mp ", void *" pgaddr ", unsigned int " flags ");
.sp .sp
.BI "int mpool_sync(MPOOL *" mp "); .BI "int mpool_sync(MPOOL *" mp ");
.sp .sp

View File

@ -31,7 +31,8 @@ profil \- execution time profile
.SH SYNOPSIS .SH SYNOPSIS
.B #include <unistd.h> .B #include <unistd.h>
.sp .sp
.BI "int profil(u_short *" buf ", size_t " bufsiz ", size_t " offset ", u_int " scale ); .BI "int profil(unsigned short *" buf ", size_t " bufsiz \
", size_t " offset ", unsigned int " scale );
.sp .sp
.in -4n .in -4n
Feature Test Macro Requirements for glibc (see Feature Test Macro Requirements for glibc (see

View File

@ -51,7 +51,7 @@ stream to a remote command
.sp .sp
.BI "int rresvport(int *" port ); .BI "int rresvport(int *" port );
.sp .sp
.BI "int iruserok(u_int32_t " raddr ", int " superuser ", " .BI "int iruserok(uint32_t " raddr ", int " superuser ", "
.BI " const char *" ruser ", const char *" luser ); .BI " const char *" ruser ", const char *" luser );
.sp .sp
.BI "int ruserok(const char *" rhost ", int " superuser ", " .BI "int ruserok(const char *" rhost ", int " superuser ", "

View File

@ -69,13 +69,13 @@ include file as follows:
.in +4n .in +4n
.nf .nf
typedef struct { typedef struct {
u_long flags; unisgned long flags;
u_int cachesize; unsigned int cachesize;
u_int psize; unsigned int psize;
int lorder; int lorder;
size_t reclen; size_t reclen;
u_char bval; unsiged char bval;
char *bfname; char *bfname;
} RECNOINFO; } RECNOINFO;
.fi .fi
.in .in

View File

@ -119,7 +119,7 @@ with the appropriate parameters.
.sp .5 .sp .5
callrpc(host, prognum, versnum, procnum, inproc, in, outproc, out) callrpc(host, prognum, versnum, procnum, inproc, in, outproc, out)
char *host; char *host;
u_long prognum, versnum, procnum; unsigned long prognum, versnum, procnum;
char *in, *out; char *in, *out;
xdrproc_t inproc, outproc; xdrproc_t inproc, outproc;
.fi .fi
@ -165,7 +165,7 @@ this routine.
enum clnt_stat enum clnt_stat
clnt_broadcast(prognum, versnum, procnum, inproc, in, outproc, clnt_broadcast(prognum, versnum, procnum, inproc, in, outproc,
out, eachresult) out, eachresult)
u_long prognum, versnum, procnum; unsigned long prognum, versnum, procnum;
char *in, *out; char *in, *out;
xdrproc_t inproc, outproc; xdrproc_t inproc, outproc;
resultproc_t eachresult; resultproc_t eachresult;
@ -220,7 +220,7 @@ this value is 1500 bytes.
enum clnt_stat enum clnt_stat
clnt_call(clnt, procnum, inproc, in, outproc, out, tout) clnt_call(clnt, procnum, inproc, in, outproc, out, tout)
CLIENT *clnt; CLIENT *clnt;
u_long procnum; unsigned long procnum;
xdrproc_t inproc, outproc; xdrproc_t inproc, outproc;
char *in, *out; char *in, *out;
struct timeval tout; struct timeval tout;
@ -281,7 +281,7 @@ Otherwise, the socket remains open.
CLIENT * CLIENT *
clnt_create(host, prog, vers, proto) clnt_create(host, prog, vers, proto)
char *host; char *host;
u_long prog, vers; unsigned long prog, vers;
char *proto; char *proto;
.fi .fi
.ft R .ft R
@ -564,7 +564,7 @@ on each call.
.sp .5 .sp .5
CLIENT * CLIENT *
clntraw_create(prognum, versnum) clntraw_create(prognum, versnum)
u_long prognum, versnum; unsigned long prognum, versnum;
.fi .fi
.ft R .ft R
.IP .IP
@ -598,9 +598,9 @@ if it fails.
CLIENT * CLIENT *
clnttcp_create(addr, prognum, versnum, sockp, sendsz, recvsz) clnttcp_create(addr, prognum, versnum, sockp, sendsz, recvsz)
struct sockaddr_in *addr; struct sockaddr_in *addr;
u_long prognum, versnum; unsigned long prognum, versnum;
int *sockp; int *sockp;
u_int sendsz, recvsz; unsigned int sendsz, recvsz;
.fi .fi
.ft R .ft R
.IP .IP
@ -652,7 +652,7 @@ if it fails.
CLIENT * CLIENT *
clntudp_create(addr, prognum, versnum, wait, sockp) clntudp_create(addr, prognum, versnum, wait, sockp)
struct sockaddr_in *addr; struct sockaddr_in *addr;
u_long prognum, versnum; unsigned long prognum, versnum;
struct timeval wait; struct timeval wait;
int *sockp; int *sockp;
.fi .fi
@ -707,7 +707,7 @@ CLIENT *
clntudp_bufcreate(addr, prognum, versnum, wait, sockp, sendsize, clntudp_bufcreate(addr, prognum, versnum, wait, sockp, sendsize,
recosize) recosize)
struct sockaddr_in *addr; struct sockaddr_in *addr;
u_long prognum, versnum; unsigned long prognum, versnum;
struct timeval wait; struct timeval wait;
int *sockp; int *sockp;
unsigned int sendsize; unsigned int sendsize;
@ -804,11 +804,11 @@ uses this routine.
.ft B .ft B
.nf .nf
.sp .5 .sp .5
u_short unsigned short
pmap_getport(addr, prognum, versnum, protocol) pmap_getport(addr, prognum, versnum, protocol)
struct sockaddr_in *addr; struct sockaddr_in *addr;
u_long prognum, versnum; unsigned long prognum, versnum;
u_int protocol; unsigned int protocol;
.fi .fi
.ft R .ft R
.IP .IP
@ -850,11 +850,11 @@ enum clnt_stat
pmap_rmtcall(addr, prognum, versnum, procnum, inproc, in, pmap_rmtcall(addr, prognum, versnum, procnum, inproc, in,
outproc, out, tout, portp) outproc, out, tout, portp)
struct sockaddr_in *addr; struct sockaddr_in *addr;
u_long prognum, versnum, procnum; unsigned long prognum, versnum, procnum;
char *in, *out; char *in, *out;
xdrproc_t inproc, outproc; xdrproc_t inproc, outproc;
struct timeval tout; struct timeval tout;
u_long *portp; unsigned long *portp;
.fi .fi
.ft R .ft R
.IP .IP
@ -890,9 +890,9 @@ See also
.nf .nf
.sp .5 .sp .5
pmap_set(prognum, versnum, protocol, port) pmap_set(prognum, versnum, protocol, port)
u_long prognum, versnum; unsigned long prognum, versnum;
u_int protocol; unsigned int protocol;
u_short port; unsigned short port;
.fi .fi
.ft R .ft R
.IP .IP
@ -922,7 +922,7 @@ Automatically done by
.nf .nf
.sp .5 .sp .5
pmap_unset(prognum, versnum) pmap_unset(prognum, versnum)
u_long prognum, versnum; unsigned long prognum, versnum;
.fi .fi
.ft R .ft R
.IP .IP
@ -944,7 +944,7 @@ otherwise.
.nf .nf
.sp .5 .sp .5
registerrpc(prognum, versnum, procnum, procname, inproc, outproc) registerrpc(prognum, versnum, procnum, procname, inproc, outproc)
u_long prognum, versnum, procnum; unsigned long prognum, versnum, procnum;
char *(*procname) () ; char *(*procname) () ;
xdrproc_t inproc, outproc; xdrproc_t inproc, outproc;
.fi .fi
@ -1177,9 +1177,9 @@ This interface is obsoleted by
.sp .5 .sp .5
svc_register(xprt, prognum, versnum, dispatch, protocol) svc_register(xprt, prognum, versnum, dispatch, protocol)
SVCXPRT *xprt; SVCXPRT *xprt;
u_long prognum, versnum; unsigned long prognum, versnum;
void (*dispatch) (); void (*dispatch) ();
u_long protocol; unsigned long protocol;
.fi .fi
.ft R .ft R
.IP .IP
@ -1282,7 +1282,7 @@ This routine returns one if it succeeds, zero otherwise.
.sp .5 .sp .5
void void
svc_unregister(prognum, versnum) svc_unregister(prognum, versnum)
u_long prognum, versnum; unsigned long prognum, versnum;
.fi .fi
.ft R .ft R
.IP .IP
@ -1412,8 +1412,8 @@ The routine calls
SVCXPRT * SVCXPRT *
svcfd_create(fd, sendsize, recvsize) svcfd_create(fd, sendsize, recvsize)
int fd; int fd;
u_int sendsize; unsigned int sendsize;
u_int recvsize; unsigned int recvsize;
.fi .fi
.ft R .ft R
.IP .IP
@ -1466,7 +1466,7 @@ if it fails.
SVCXPRT * SVCXPRT *
svctcp_create(sock, send_buf_size, recv_buf_size) svctcp_create(sock, send_buf_size, recv_buf_size)
int sock; int sock;
u_int send_buf_size, recv_buf_size; unsigned int send_buf_size, recv_buf_size;
.fi .fi
.ft R .ft R
.IP .IP
@ -1506,7 +1506,7 @@ choose suitable defaults.
SVCXPRT * SVCXPRT *
svcudp_bufcreate(sock, sendsize, recosize) svcudp_bufcreate(sock, sendsize, recosize)
int sock; int sock;
u_int sendsize, recosize; unsigned int sendsize, recosize;
.fi .fi
.ft R .ft R
.IP .IP

View File

@ -18,7 +18,7 @@ routines.
xdr_array(xdrs, arrp, sizep, maxsize, elsize, elproc) xdr_array(xdrs, arrp, sizep, maxsize, elsize, elproc)
XDR *xdrs; XDR *xdrs;
char **arrp; char **arrp;
u_int *sizep, maxsize, elsize; unsigned int *sizep, maxsize, elsize;
xdrproc_t elproc; xdrproc_t elproc;
.fi .fi
.ft R .ft R
@ -72,7 +72,7 @@ This routine returns one if it succeeds, zero otherwise.
xdr_bytes(xdrs, sp, sizep, maxsize) xdr_bytes(xdrs, sp, sizep, maxsize)
XDR *xdrs; XDR *xdrs;
char **sp; char **sp;
u_int *sizep, maxsize; unsigned int *sizep, maxsize;
.fi .fi
.ft R .ft R
.IP .IP
@ -211,7 +211,7 @@ freed (recursively).
.ft B .ft B
.nf .nf
.sp .5 .sp .5
u_int unsigned int
xdr_getpos(xdrs) xdr_getpos(xdrs)
XDR *xdrs; XDR *xdrs;
.fi .fi
@ -306,7 +306,7 @@ void
xdrmem_create(xdrs, addr, size, op) xdrmem_create(xdrs, addr, size, op)
XDR *xdrs; XDR *xdrs;
char *addr; char *addr;
u_int size; unsigned int size;
enum xdr_op op; enum xdr_op op;
.fi .fi
.ft R .ft R
@ -340,7 +340,7 @@ or
xdr_opaque(xdrs, cp, cnt) xdr_opaque(xdrs, cp, cnt)
XDR *xdrs; XDR *xdrs;
char *cp; char *cp;
u_int cnt; unsigned int cnt;
.fi .fi
.ft R .ft R
.IP .IP
@ -361,7 +361,7 @@ This routine returns one if it succeeds, zero otherwise.
xdr_pointer(xdrs, objpp, objsize, xdrobj) xdr_pointer(xdrs, objpp, objsize, xdrobj)
XDR *xdrs; XDR *xdrs;
char **objpp; char **objpp;
u_int objsize; unsigned int objsize;
xdrproc_t xdrobj; xdrproc_t xdrobj;
.fi .fi
.ft R .ft R
@ -387,7 +387,7 @@ linked lists.
void void
xdrrec_create(xdrs, sendsize, recvsize, handle, readit, writeit) xdrrec_create(xdrs, sendsize, recvsize, handle, readit, writeit)
XDR *xdrs; XDR *xdrs;
u_int sendsize, recvsize; unsigned int sendsize, recvsize;
char *handle; char *handle;
int (*readit) (), (*writeit) (); int (*readit) (), (*writeit) ();
.fi .fi
@ -497,7 +497,7 @@ This routine returns one if it succeeds, zero otherwise.
xdr_reference(xdrs, pp, size, proc) xdr_reference(xdrs, pp, size, proc)
XDR *xdrs; XDR *xdrs;
char **pp; char **pp;
u_int size; unsigned int size;
xdrproc_t proc; xdrproc_t proc;
.fi .fi
.ft R .ft R
@ -533,7 +533,7 @@ instead.
.sp .5 .sp .5
xdr_setpos(xdrs, pos) xdr_setpos(xdrs, pos)
XDR *xdrs; XDR *xdrs;
u_int pos; unsigned int pos;
.fi .fi
.ft R .ft R
.IP .IP
@ -623,7 +623,7 @@ xdr_string(xdrs, sp, maxsize)
XDR XDR
*xdrs; *xdrs;
char **sp; char **sp;
u_int maxsize; unsigned int maxsize;
.fi .fi
.ft R .ft R
.IP .IP
@ -758,7 +758,7 @@ Returns one if it succeeds, zero otherwise.
xdr_vector(xdrs, arrp, size, elsize, elproc) xdr_vector(xdrs, arrp, size, elsize, elproc)
XDR *xdrs; XDR *xdrs;
char *arrp; char *arrp;
u_int size, elsize; unsigned int size, elsize;
xdrproc_t elproc; xdrproc_t elproc;
.fi .fi
.ft R .ft R

View File

@ -160,9 +160,9 @@ points to a
.in +4n .in +4n
.nf .nf
struct consolefontdesc { struct consolefontdesc {
u_short charcount; /* characters in font (256 or 512) */ unsigned short charcount; /* characters in font (256 or 512) */
u_short charheight; /* scan lines per character (1-32) */ unsigned short charheight; /* scan lines per character (1-32) */
char *chardata; /* font data in expanded form */ char *chardata; /* font data in expanded form */
}; };
.fi .fi
.in .in
@ -210,7 +210,7 @@ Get Unicode-to-font mapping from kernel.
.in +4n .in +4n
.nf .nf
struct unimapdesc { struct unimapdesc {
u_short entry_ct; unsigned short entry_ct;
struct unipair *entries; struct unipair *entries;
}; };
.fi .fi
@ -221,8 +221,8 @@ where \fIentries\fP points to an array of
.in +4n .in +4n
.nf .nf
struct unipair { struct unipair {
u_short unicode; unsigned short unicode;
u_short fontpos; unsigned short fontpos;
}; };
.fi .fi
.in .in
@ -239,9 +239,9 @@ Clear table, possibly advise hash algorithm.
.in +4n .in +4n
.nf .nf
struct unimapinit { struct unimapinit {
u_short advised_hashsize; /* 0 if no opinion */ unsigned short advised_hashsize; /* 0 if no opinion */
u_short advised_hashstep; /* 0 if no opinion */ unsigned short advised_hashstep; /* 0 if no opinion */
u_short advised_hashlevel; /* 0 if no opinion */ unsigned short advised_hashlevel; /* 0 if no opinion */
}; };
.fi .fi
.in .in
@ -276,9 +276,9 @@ Gets one entry in key translation table (keycode to action code).
.in +4n .in +4n
.nf .nf
struct kbentry { struct kbentry {
u_char kb_table; unsigned char kb_table;
u_char kb_index; unsigned char kb_index;
u_short kb_value; unsigned short kb_value;
}; };
.fi .fi
.in .in
@ -300,8 +300,8 @@ Gets one function key string.
.in +4n .in +4n
.nf .nf
struct kbsentry { struct kbsentry {
u_char kb_func; unsigned char kb_func;
u_char kb_string[512]; unsigned char kb_string[512];
}; };
.fi .fi
.in .in
@ -331,9 +331,9 @@ is a
.in +4n .in +4n
.nf .nf
struct kbdiacr { struct kbdiacr {
u_char diacr; unsigned char diacr;
u_char base; unsigned char base;
u_char result; unsigned char result;
}; };
.in .in
.IP \fBKDGETKEYCODE\fP .IP \fBKDGETKEYCODE\fP
@ -400,9 +400,9 @@ Get global vt state info.
.in +4n .in +4n
.nf .nf
struct vt_stat { struct vt_stat {
ushort v_active; /* active vt */ unsigned short v_active; /* active vt */
ushort v_signal; /* signal to send */ unsigned short v_signal; /* signal to send */
ushort v_state; /* vt bit mask */ unsigned short v_state; /* vt bit mask */
}; };
.fi .fi
.in .in
@ -425,9 +425,9 @@ Set the kernel's idea of screensize.
.in +4n .in +4n
.nf .nf
struct vt_sizes { struct vt_sizes {
ushort v_rows; /* # rows */ unsigned short v_rows; /* # rows */
ushort v_cols; /* # columns */ unsigned short v_cols; /* # columns */
ushort v_scrollsize; /* no longer used */ unsigned short v_scrollsize; /* no longer used */
}; };
.fi .fi
.in .in
@ -443,12 +443,12 @@ Set the kernel's idea of various screen parameters.
.in +4n .in +4n
.nf .nf
struct vt_consize { struct vt_consize {
ushort v_rows; /* number of rows */ unsigned short v_rows; /* number of rows */
ushort v_cols; /* number of columns */ unsigned short v_cols; /* number of columns */
ushort v_vlin; /* number of pixel rows on screen */ unsigned short v_vlin; /* number of pixel rows on screen */
ushort v_clin; /* number of pixel rows per character */ unsigned short v_clin; /* number of pixel rows per character */
ushort v_vcol; /* number of pixel columns on screen */ unsigned short v_vcol; /* number of pixel columns on screen */
ushort v_ccol; /* number of pixel columns per character */ unsigned short v_ccol; /* number of pixel columns per character */
}; };
.fi .fi
.in .in

View File

@ -64,13 +64,13 @@ a node number, and a port number.
.in +4n .in +4n
.nf .nf
struct at_addr { struct at_addr {
u_short s_net; unsigned short s_net;
u_char s_node; unsigned char s_node;
}; };
struct sockaddr_atalk { struct sockaddr_atalk {
sa_family_t sat_family; /* address family */ sa_family_t sat_family; /* address family */
u_char sat_port; /* port */ unsigned char sat_port; /* port */
struct at_addr sat_addr; /* net/node */ struct at_addr sat_addr; /* net/node */
}; };
.ta .ta

View File

@ -115,13 +115,13 @@ is set to the IP protocol.
.nf .nf
struct sockaddr_in { struct sockaddr_in {
sa_family_t sin_family; /* address family: AF_INET */ sa_family_t sin_family; /* address family: AF_INET */
u_int16_t sin_port; /* port in network byte order */ uint16_t sin_port; /* port in network byte order */
struct in_addr sin_addr; /* internet address */ struct in_addr sin_addr; /* internet address */
}; };
/* Internet address. */ /* Internet address. */
struct in_addr { struct in_addr {
u_int32_t s_addr; /* address in network byte order */ uint32_t s_addr; /* address in network byte order */
}; };
.fi .fi
.in .in
@ -408,13 +408,13 @@ structure:
#define SO_EE_ORIGIN_ICMP6 3 #define SO_EE_ORIGIN_ICMP6 3
struct sock_extended_err { struct sock_extended_err {
u_int32_t ee_errno; /* error number */ uint32_t ee_errno; /* error number */
u_int8_t ee_origin; /* where the error originated */ uint8_t ee_origin; /* where the error originated */
u_int8_t ee_type; /* type */ uint8_t ee_type; /* type */
u_int8_t ee_code; /* code */ uint8_t ee_code; /* code */
u_int8_t ee_pad; uint8_t ee_pad;
u_int32_t ee_info; /* additional information */ uint32_t ee_info; /* additional information */
u_int32_t ee_data; /* other data */ uint32_t ee_data; /* other data */
/* More data may follow */ /* More data may follow */
}; };

View File

@ -65,11 +65,11 @@ to v6 and it will be mapped to v6.
.in +4n .in +4n
.nf .nf
struct sockaddr_in6 { struct sockaddr_in6 {
u_int16_t sin6_family; /* AF_INET6 */ uint16_t sin6_family; /* AF_INET6 */
u_int16_t sin6_port; /* port number */ uint16_t sin6_port; /* port number */
u_int32_t sin6_flowinfo; /* IPv6 flow information */ uint32_t sin6_flowinfo; /* IPv6 flow information */
struct in6_addr sin6_addr; /* IPv6 address */ struct in6_addr sin6_addr; /* IPv6 address */
u_int32_t sin6_scope_id; /* Scope ID (new in 2.4) */ uint32_t sin6_scope_id; /* Scope ID (new in 2.4) */
}; };
struct in6_addr { struct in6_addr {

View File

@ -58,11 +58,11 @@ system header file, includes the following members:
.nf .nf
struct ipc_perm { struct ipc_perm {
uid_t cuid; /* creator user ID */ uid_t cuid; /* creator user ID */
gid_t cgid; /* creator group ID */ gid_t cgid; /* creator group ID */
uid_t uid; /* owner user ID */ uid_t uid; /* owner user ID */
gid_t gid; /* owner group ID */ gid_t gid; /* owner group ID */
ushort mode; /* r/w permissions */ unsigned short mode; /* r/w permissions */
}; };
.fi .fi
.in .in
@ -201,7 +201,7 @@ struct semid_ds {
struct ipc_perm sem_perm; struct ipc_perm sem_perm;
time_t sem_otime; /* last operation time */ time_t sem_otime; /* last operation time */
time_t sem_ctime; /* last change time */ time_t sem_ctime; /* last change time */
ulong sem_nsems; /* count of sems in set */ unsigned long sem_nsems; /* count of sems in set */
}; };
.fi .fi
.in .in
@ -239,8 +239,8 @@ containing the following members:
struct sem { struct sem {
int semval; /* semaphore value */ int semval; /* semaphore value */
int sempid; /* PID for last operation */ int sempid; /* PID for last operation */
.\" ushort semncnt; /* nr awaiting semval to increase */ .\" unsigned short semncnt; /* nr awaiting semval to increase */
.\" ushort semzcnt; /* nr awaiting semval = 0 */ .\" unsigned short semzcnt; /* nr awaiting semval = 0 */
} }
.fi .fi
.in .in