aboutsummaryrefslogtreecommitdiff
path: root/sys/posix4/mqueue.h
diff options
context:
space:
mode:
authorPeter Dufault <dufault@FreeBSD.org>1998-03-08 17:25:38 +0000
committerPeter Dufault <dufault@FreeBSD.org>1998-03-08 17:25:38 +0000
commitaac4ad2c994742defc0623bd489206743241552c (patch)
tree0dff9523762d4433c9265778cf79490f9378d188 /sys/posix4/mqueue.h
parentaac18d035f1c8256522613d417dc9ae2731641ec (diff)
downloadsrc-aac4ad2c994742defc0623bd489206743241552c.tar.gz
src-aac4ad2c994742defc0623bd489206743241552c.zip
Reviewed by: bde
Changes to support building with _POSIX_SOURCE set to 199309L: 1. Add sys/_posix.h to handle those preprocessor defs that POSIX says have effects when defined before including any header files; 2. Change POSIX4_VISIBLE back to _POSIX4_VISIBLE 3. Add _POSIX4_VISIBLE_HISTORICALLY for pre-existing BSD features now defined in POSIX. These show up when: _POSIX_SOURCE and _POSIX_C_SOURCE are not set or _POSIX_C_SOURCE is set >= 199309L and vanish when: _POSIX_SOURCE is set or _POSIX_C_SOURCE is < 199309L. 4. Explain these in man 9 posix4; 5. Include _posix.h and conditionalize on new feature test.
Notes
Notes: svn path=/head/; revision=34319
Diffstat (limited to 'sys/posix4/mqueue.h')
-rw-r--r--sys/posix4/mqueue.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/posix4/mqueue.h b/sys/posix4/mqueue.h
index 0872ddf6266d..6fcf4409ed33 100644
--- a/sys/posix4/mqueue.h
+++ b/sys/posix4/mqueue.h
@@ -36,7 +36,7 @@
*
*/
-#ifdef POSIX4_INCLUDE_MAYBES
+#ifdef _POSIX4_INCLUDE_MAYBES
#include <sys/types.h>
#include <fcntl.h>
#include <time.h>
@@ -55,8 +55,10 @@ struct mq_attr {
};
#ifndef KERNEL
+
#include <sys/cdefs.h>
+__BEGIN_DECLS
mqd_t mq_open __P((const char *, int oflag, ...));
int mq_close __P((mqd_t));
int mq_unlink __P((const char *));
@@ -65,6 +67,7 @@ ssize_t mq_receive __P((mqd_t, char *, size_t, unsigned int *));
int mq_notify __P((mqd_t, const struct sigevent *));
int mq_setattr __P((mqd_t, const struct mq_attr *, struct mq_attr *));
int mq_getattr __P((mqd_t, struct mq_attr *));
+__END_DECLS
#endif /* KERNEL */