diff options
Diffstat (limited to 'lib/libutil/imsg_init.3')
-rw-r--r-- | lib/libutil/imsg_init.3 | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/lib/libutil/imsg_init.3 b/lib/libutil/imsg_init.3 index 995b137fc63..25b5f549664 100644 --- a/lib/libutil/imsg_init.3 +++ b/lib/libutil/imsg_init.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: imsg_init.3,v 1.17 2016/10/15 12:33:22 jmc Exp $ +.\" $OpenBSD: imsg_init.3,v 1.18 2017/03/24 09:34:12 nicm Exp $ .\" .\" Copyright (c) 2010 Nicholas Marriott <nicm@openbsd.org> .\" @@ -14,7 +14,7 @@ .\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING .\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: October 15 2016 $ +.Dd $Mdocdate: March 24 2017 $ .Dt IMSG_INIT 3 .Os .Sh NAME @@ -48,6 +48,7 @@ .In sys/types.h .In sys/queue.h .In sys/uio.h +.In stdint.h .In imsg.h .Ft void .Fn imsg_init "struct imsgbuf *ibuf" "int fd" @@ -56,16 +57,16 @@ .Ft ssize_t .Fn imsg_get "struct imsgbuf *ibuf" "struct imsg *imsg" .Ft int -.Fn imsg_compose "struct imsgbuf *ibuf" "u_int32_t type" "uint32_t peerid" \ - "pid_t pid" "int fd" "const void *data" "u_int16_t datalen" +.Fn imsg_compose "struct imsgbuf *ibuf" "uint32_t type" "uint32_t peerid" \ + "pid_t pid" "int fd" "const void *data" "uint16_t datalen" .Ft int -.Fn imsg_composev "struct imsgbuf *ibuf" "u_int32_t type" "u_int32_t peerid" \ +.Fn imsg_composev "struct imsgbuf *ibuf" "uint32_t type" "uint32_t peerid" \ "pid_t pid" "int fd" "const struct iovec *iov" "int iovcnt" .Ft "struct ibuf *" -.Fn imsg_create "struct imsgbuf *ibuf" "u_int32_t type" "u_int32_t peerid" \ - "pid_t pid" "u_int16_t datalen" +.Fn imsg_create "struct imsgbuf *ibuf" "uint32_t type" "uint32_t peerid" \ + "pid_t pid" "uint16_t datalen" .Ft int -.Fn imsg_add "struct ibuf *buf" "const void *data" "u_int16_t datalen" +.Fn imsg_add "struct ibuf *buf" "const void *data" "uint16_t datalen" .Ft void .Fn imsg_close "struct imsgbuf *ibuf" "struct ibuf *msg" .Ft void @@ -262,11 +263,11 @@ struct imsg { }; struct imsg_hdr { - u_int32_t type; - u_int16_t len; - u_int16_t flags; - u_int32_t peerid; - u_int32_t pid; + uint32_t type; + uint16_t len; + uint16_t flags; + uint32_t peerid; + uint32_t pid; }; .Ed .Pp @@ -329,7 +330,7 @@ struct ibuf { struct msgbuf { TAILQ_HEAD(, ibuf) bufs; - u_int32_t queued; + uint32_t queued; int fd; }; .Ed |