[Midnightbsd-cvs] src [12342] trunk/sys/sys/sem.h: sync with FreeBSD 11-stable
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Feb 8 15:08:43 EST 2020
Revision: 12342
http://svnweb.midnightbsd.org/src/?rev=12342
Author: laffer1
Date: 2020-02-08 15:08:42 -0500 (Sat, 08 Feb 2020)
Log Message:
-----------
sync with FreeBSD 11-stable
Modified Paths:
--------------
trunk/sys/sys/sem.h
Modified: trunk/sys/sys/sem.h
===================================================================
--- trunk/sys/sys/sem.h 2020-02-08 20:07:51 UTC (rev 12341)
+++ trunk/sys/sys/sem.h 2020-02-08 20:08:42 UTC (rev 12342)
@@ -1,5 +1,5 @@
/* $MidnightBSD$ */
-/* $FreeBSD: stable/10/sys/sys/sem.h 224016 2011-07-14 14:18:14Z bz $ */
+/* $FreeBSD: stable/11/sys/sys/sem.h 347995 2019-05-20 16:31:45Z kib $ */
/* $NetBSD: sem.h,v 1.5 1994/06/29 06:45:15 cgd Exp $ */
/*
@@ -11,6 +11,9 @@
#ifndef _SYS_SEM_H_
#define _SYS_SEM_H_
+#ifdef _WANT_SYSVSEM_INTERNALS
+#define _WANT_SYSVIPC_INTERNALS
+#endif
#include <sys/ipc.h>
#ifndef _PID_T_DECLARED
@@ -38,7 +41,7 @@
long sem_pad1; /* SVABI/386 says I need this here */
time_t sem_ctime; /* last change time */
/* Times measured in secs since */
- /* 00:00:00 GMT, Jan. 1, 1970 */
+ /* 00:00:00 UTC, Jan. 1, 1970, without leap seconds */
long sem_pad2; /* SVABI/386 says I need this here */
long sem_pad3[4]; /* SVABI/386 says I need this here */
};
@@ -51,7 +54,7 @@
time_t sem_otime; /* last operation time */
time_t sem_ctime; /* last change time */
/* Times measured in secs since */
- /* 00:00:00 GMT, Jan. 1, 1970 */
+ /* 00:00:00 UTC, Jan. 1, 1970, without leap seconds */
};
/*
@@ -102,8 +105,7 @@
#define SEM_A IPC_W /* alter permission */
#define SEM_R IPC_R /* read permission */
-#ifdef _KERNEL
-
+#if defined(_KERNEL) || defined(_WANT_SYSVSEM_INTERNALS)
/*
* semaphore info struct
*/
@@ -118,7 +120,6 @@
semvmx, /* semaphore maximum value */
semaem; /* adjust on exit max value */
};
-extern struct seminfo seminfo;
/*
* Kernel wrapper for the user-level structure
@@ -132,13 +133,16 @@
/* internal "mode" bits */
#define SEM_ALLOC 01000 /* semaphore is allocated */
#define SEM_DEST 02000 /* semaphore will be destroyed on last detach */
+#endif
+#ifdef _KERNEL
+extern struct seminfo seminfo;
/*
* Process sem_undo vectors at proc exit.
*/
void semexit(struct proc *p);
-#else /* ! _KERNEL */
+#else /* !_KERNEL */
__BEGIN_DECLS
#if __BSD_VISIBLE
More information about the Midnightbsd-cvs
mailing list