diff options
author | mike <mike@FreeBSD.org> | 2002-09-20 17:54:34 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-09-20 17:54:34 +0000 |
commit | a3e4a43eb40ed09b8052f1c485b016facc0886b4 (patch) | |
tree | 6b98a4494f53b6616f6e7610357de794f1b91c89 /sys/posix4 | |
parent | d376fc4110ce10f8834cc1b4c5916de1912b21b6 (diff) | |
download | FreeBSD-src-a3e4a43eb40ed09b8052f1c485b016facc0886b4.zip FreeBSD-src-a3e4a43eb40ed09b8052f1c485b016facc0886b4.tar.gz |
Fix various style(9) bugs:
o Unusual order of #ifndef _FOO_H_, followed by license.
o Missing tabs in typedef.
o Missing tabs in struct between types and member names.
o Unaligned, unordered function prototypes.
o Reversed comment for #endif.
Diffstat (limited to 'sys/posix4')
-rw-r--r-- | sys/posix4/mqueue.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/sys/posix4/mqueue.h b/sys/posix4/mqueue.h index 803c5b4..8fb98fb 100644 --- a/sys/posix4/mqueue.h +++ b/sys/posix4/mqueue.h @@ -1,8 +1,3 @@ -#ifndef _MQUEUE_H_ -#define _MQUEUE_H_ - -/* mqueue.h: POSIX 1003.1b Message Queues */ - /*- * Copyright (c) 1996, 1997 * HD Associates, Inc. All rights reserved. @@ -37,6 +32,11 @@ * $FreeBSD$ */ +/* mqueue.h: POSIX 1003.1b Message Queues */ + +#ifndef _MQUEUE_H_ +#define _MQUEUE_H_ + #include <sys/_posix.h> #ifdef _P1003_1B_INCLUDE_MAYBES @@ -48,13 +48,13 @@ struct sigevent; #endif -typedef int mqd_t; /* message queue descriptors */ +typedef int mqd_t; /* message queue descriptors */ struct mq_attr { - long mq_flags; /* message queue flags */ - long mq_maxmsg; /* maximum number of messages */ - long mq_msgsize; /* maximum message size */ - long mq_curmsgs; /* number of messages currently queued */ + long mq_flags; /* message queue flags */ + long mq_maxmsg; /* maximum number of messages */ + long mq_msgsize; /* maximum message size */ + long mq_curmsgs; /* number of messages currently queued */ }; #ifndef _KERNEL @@ -62,16 +62,16 @@ struct mq_attr { #include <sys/cdefs.h> __BEGIN_DECLS -mqd_t mq_open(const char *, int oflag, ...); -int mq_close(mqd_t); -int mq_unlink(const char *); -int mq_send(mqd_t, const char *, size_t, unsigned int); -ssize_t mq_receive(mqd_t, char *, size_t, unsigned int *); -int mq_notify(mqd_t, const struct sigevent *); -int mq_setattr(mqd_t, const struct mq_attr *, struct mq_attr *); -int mq_getattr(mqd_t, struct mq_attr *); +int mq_close(mqd_t); +int mq_getattr(mqd_t, struct mq_attr *); +int mq_notify(mqd_t, const struct sigevent *); +mqd_t mq_open(const char *, int oflag, ...); +ssize_t mq_receive(mqd_t, char *, size_t, unsigned int *); +int mq_send(mqd_t, const char *, size_t, unsigned int); +int mq_setattr(mqd_t, const struct mq_attr *, struct mq_attr *); +int mq_unlink(const char *); __END_DECLS #endif -#endif /* _MQUEUE_H_ */ +#endif /* !_MQUEUE_H_ */ |