Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F190507
a.txt
rodrigc (Craig Rodrigues)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
•
rodrigc
Jul 30 2015, 6:27 PM
2015-07-30 18:27:55 (UTC+0)
Size
2 KB
Referenced Files
None
Subscribers
None
a.txt
View Options
Index: sys/sys/msg.h
===================================================================
--- sys/sys/msg.h (revision 286070)
+++ sys/sys/msg.h (working copy)
@@ -163,8 +163,9 @@
struct ucred *cred; /* creator's credentials */
};
-#else /* !_KERNEL */
+#endif /* _KERNEL */
+#if !defined(_KERNEL) || defined(_WANT_MSG_PROTOTYPES)
__BEGIN_DECLS
int msgctl(int, int, struct msqid_ds *);
int msgget(key_t, int);
@@ -176,6 +177,6 @@
#endif
__END_DECLS
-#endif /* _KERNEL */
+#endif /* !_KERNEL || _WANT_MSG_PROTOTYPES */
#endif /* !_SYS_MSG_H_ */
Index: sys/sys/sem.h
===================================================================
--- sys/sys/sem.h (revision 286070)
+++ sys/sys/sem.h (working copy)
@@ -137,8 +137,9 @@
*/
void semexit(struct proc *p);
-#else /* ! _KERNEL */
+#endif /* _KERNEL */
+#if !defined(_KERNEL) || defined(_WANT_SEM_PROTOTYPES)
__BEGIN_DECLS
#if __BSD_VISIBLE
int semsys(int, ...);
@@ -148,6 +149,6 @@
int semop(int, struct sembuf *, size_t);
__END_DECLS
-#endif /* !_KERNEL */
+#endif /* !_KERNEL || _WANT_SEM_PROTOTYPES */
#endif /* !_SYS_SEM_H_ */
Index: sys/sys/shm.h
===================================================================
--- sys/sys/shm.h (revision 286070)
+++ sys/sys/shm.h (working copy)
@@ -144,8 +144,9 @@
void shmexit(struct vmspace *);
void shmfork(struct proc *, struct proc *);
-#else /* !_KERNEL */
+#endif /* _KERNEL */
+#if !defined(_KERNEL) || defined(_WANT_SHM_PROTOTYPES)
#include <sys/cdefs.h>
#ifndef _SIZE_T_DECLARED
@@ -163,6 +164,6 @@
int shmdt(const void *);
__END_DECLS
-#endif /* !_KERNEL */
+#endif /* _KERNEL || _WANT_SHM_PROTOTYPES */
#endif /* !_SYS_SHM_H_ */
Index: usr.bin/ipcrm/ipcrm.c
===================================================================
--- usr.bin/ipcrm/ipcrm.c (revision 286085)
+++ usr.bin/ipcrm/ipcrm.c (working copy)
@@ -34,6 +34,9 @@
__FBSDID("$FreeBSD$");
#include <sys/param.h>
+#define _WANT_MSG_PROTOTYPES
+#define _WANT_SEM_PROTOTYPES
+#define _WANT_SHM_PROTOTYPES
#define _KERNEL
#include <sys/sem.h>
#include <sys/shm.h>
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
188658
Default Alt Text
a.txt (2 KB)
Attached To
Mode
D2669: Apply some style(9) and fix some CLANG warnings.
Attached
Detach File
Event Timeline
Log In to Comment