Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Header cleanup: F_SETOWN and F_GETOWN are in XNS5 an...



details:   https://anonhg.NetBSD.org/src/rev/36ff6fd194af
branches:  trunk
changeset: 546546:36ff6fd194af
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Thu May 01 12:32:39 2003 +0000

description:
Header cleanup: F_SETOWN and F_GETOWN are in XNS5 and later, and in
POSIX-2001 and later.

diffstat:

 sys/sys/fcntl.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r bb285fa905cd -r 36ff6fd194af sys/sys/fcntl.h
--- a/sys/sys/fcntl.h   Thu May 01 12:13:26 2003 +0000
+++ b/sys/sys/fcntl.h   Thu May 01 12:32:39 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fcntl.h,v 1.24 2003/04/28 23:16:28 bjh21 Exp $ */
+/*     $NetBSD: fcntl.h,v 1.25 2003/05/01 12:32:39 bjh21 Exp $ */
 
 /*-
  * Copyright (c) 1983, 1990, 1993
@@ -165,7 +165,8 @@
 #define        F_SETFD         2               /* set file descriptor flags */
 #define        F_GETFL         3               /* get file status flags */
 #define        F_SETFL         4               /* set file status flags */
-#if defined(_NETBSD_SOURCE)
+#if (_POSIX_C_SOURCE - 0) >= 200112L || (_XOPEN_SOURCE - 0) >= 500 || \
+    defined(_NETBSD_SOURCE)
 #define        F_GETOWN        5               /* get SIGIO/SIGURG proc/pgrp */
 #define F_SETOWN       6               /* set SIGIO/SIGURG proc/pgrp */
 #endif



Home | Main Index | Thread Index | Old Index