aboutsummaryrefslogtreecommitdiff
path: root/sys/posix4/mqueue.h
diff options
context:
space:
mode:
authorMike Barcroft <mike@FreeBSD.org>2002-09-20 17:54:34 +0000
committerMike Barcroft <mike@FreeBSD.org>2002-09-20 17:54:34 +0000
commitef02ea6e40fd50fe4ce2dd4ee733896df977b7cc (patch)
tree6b98a4494f53b6616f6e7610357de794f1b91c89 /sys/posix4/mqueue.h
parent6fb3d70418f6085121f617a1662d4d98cbf660d2 (diff)
downloadsrc-ef02ea6e40fd50fe4ce2dd4ee733896df977b7cc.tar.gz
src-ef02ea6e40fd50fe4ce2dd4ee733896df977b7cc.zip
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.
Notes
Notes: svn path=/head/; revision=103704
Diffstat (limited to 'sys/posix4/mqueue.h')
-rw-r--r--sys/posix4/mqueue.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/sys/posix4/mqueue.h b/sys/posix4/mqueue.h
index 803c5b4fb06f..8fb98fbed9ed 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_ */