[Midnightbsd-cvs] src [12330] trunk/sys/sys: sync with FreeBSD 11-stable
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Feb 8 14:57:07 EST 2020
Revision: 12330
http://svnweb.midnightbsd.org/src/?rev=12330
Author: laffer1
Date: 2020-02-08 14:57:06 -0500 (Sat, 08 Feb 2020)
Log Message:
-----------
sync with FreeBSD 11-stable
Modified Paths:
--------------
trunk/sys/sys/unistd.h
trunk/sys/sys/unpcb.h
Modified: trunk/sys/sys/unistd.h
===================================================================
--- trunk/sys/sys/unistd.h 2020-02-08 19:56:26 UTC (rev 12329)
+++ trunk/sys/sys/unistd.h 2020-02-08 19:57:06 UTC (rev 12330)
@@ -28,7 +28,7 @@
* SUCH DAMAGE.
*
* @(#)unistd.h 8.2 (Berkeley) 1/7/94
- * $FreeBSD: stable/10/sys/sys/unistd.h 312171 2017-01-14 11:27:11Z kib $
+ * $FreeBSD: stable/11/sys/sys/unistd.h 353789 2019-10-21 01:24:21Z kevans $
*/
#ifndef _SYS_UNISTD_H_
@@ -51,7 +51,7 @@
* returns -1, the functions may be stubbed out.
*/
#define _POSIX_ADVISORY_INFO 200112L
-#define _POSIX_ASYNCHRONOUS_IO 0
+#define _POSIX_ASYNCHRONOUS_IO 200112L
#define _POSIX_CHOWN_RESTRICTED 1
#define _POSIX_CLOCK_SELECTION (-1)
#define _POSIX_CPUTIME 200112L
@@ -187,11 +187,14 @@
#define RFTSIGNUM(flags) (((flags) >> RFTSIGSHIFT) & RFTSIGMASK)
#define RFTSIGFLAGS(signum) ((signum) << RFTSIGSHIFT)
#define RFPROCDESC (1<<28) /* return a process descriptor */
-#define RFPPWAIT (1<<31) /* parent sleeps until child exits (vfork) */
+/* kernel: parent sleeps until child exits (vfork) */
+#define RFPPWAIT (1<<31)
+/* user: vfork(2) semantics, clear signals */
+#define RFSPAWN (1U<<31)
#define RFFLAGS (RFFDG | RFPROC | RFMEM | RFNOWAIT | RFCFDG | \
RFTHREAD | RFSIGSHARE | RFLINUXTHPN | RFSTOPPED | RFHIGHPID | RFTSIGZMB | \
- RFPROCDESC | RFPPWAIT)
-#define RFKERNELONLY (RFSTOPPED | RFHIGHPID | RFPPWAIT | RFPROCDESC)
+ RFPROCDESC | RFSPAWN | RFPPWAIT)
+#define RFKERNELONLY (RFSTOPPED | RFHIGHPID | RFPROCDESC)
#endif /* __BSD_VISIBLE */
Modified: trunk/sys/sys/unpcb.h
===================================================================
--- trunk/sys/sys/unpcb.h 2020-02-08 19:56:26 UTC (rev 12329)
+++ trunk/sys/sys/unpcb.h 2020-02-08 19:57:06 UTC (rev 12330)
@@ -28,7 +28,7 @@
* SUCH DAMAGE.
*
* @(#)unpcb.h 8.1 (Berkeley) 6/2/93
- * $FreeBSD: stable/10/sys/sys/unpcb.h 305261 2016-09-02 00:14:28Z markj $
+ * $FreeBSD: stable/11/sys/sys/unpcb.h 339067 2018-10-01 17:36:58Z asomers $
*/
#ifndef _SYS_UNPCB_H_
@@ -151,4 +151,13 @@
};
#endif /* _SYS_SOCKETVAR_H_ */
+#if defined(_KERNEL)
+struct thread;
+
+/* In uipc_userreq.c */
+void
+unp_copy_peercred(struct thread *td, struct unpcb *client_unp,
+ struct unpcb *server_unp, struct unpcb *listen_unp);
+#endif
+
#endif /* _SYS_UNPCB_H_ */
More information about the Midnightbsd-cvs
mailing list