Source-Changes-HG archive

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

[src/trunk]: src Remove <sys/user.h>



details:   https://anonhg.NetBSD.org/src/rev/67d2e018eafb
branches:  trunk
changeset: 824828:67d2e018eafb
user:      kamil <kamil%NetBSD.org@localhost>
date:      Tue Jun 20 01:17:13 2017 +0000

description:
Remove <sys/user.h>

Proposed on the the tech-userlevel mailing list without strong objections.

This file no longer serves any purpose in any supported release branch.

There will be fallout in pkgsrc, please restrict inclusion <sys/user.h> to
FreeBSD and DragonflyBSD.

I tried to iterate over packages in pkgsrc and there was little fallout,
however I don't have the full sources to scan every source code. I already
upstreamed to several projects removal of inclusion on NetBSD of
<sys/user.h> (like Qt5).

diffstat:

 distrib/sets/lists/comp/mi |   4 ++--
 sys/sys/Makefile           |   4 ++--
 sys/sys/user.h             |  41 -----------------------------------------
 3 files changed, 4 insertions(+), 45 deletions(-)

diffs (81 lines):

diff -r 546c655a49c3 -r 67d2e018eafb distrib/sets/lists/comp/mi
--- a/distrib/sets/lists/comp/mi        Mon Jun 19 23:54:00 2017 +0000
+++ b/distrib/sets/lists/comp/mi        Tue Jun 20 01:17:13 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: mi,v 1.2140 2017/06/13 06:39:09 nat Exp $
+#      $NetBSD: mi,v 1.2141 2017/06/20 01:17:13 kamil Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 ./etc/mtree/set.comp                           comp-sys-root
@@ -2994,7 +2994,7 @@
 ./usr/include/sys/un.h                         comp-c-include
 ./usr/include/sys/unistd.h                     comp-c-include
 ./usr/include/sys/unpcb.h                      comp-c-include
-./usr/include/sys/user.h                       comp-c-include
+./usr/include/sys/user.h                       comp-obsolete           obsolete
 ./usr/include/sys/utsname.h                    comp-c-include
 ./usr/include/sys/uuid.h                       comp-c-include
 ./usr/include/sys/vadvise.h                    comp-c-include
diff -r 546c655a49c3 -r 67d2e018eafb sys/sys/Makefile
--- a/sys/sys/Makefile  Mon Jun 19 23:54:00 2017 +0000
+++ b/sys/sys/Makefile  Tue Jun 20 01:17:13 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.161 2017/05/19 00:01:34 pgoyette Exp $
+#      $NetBSD: Makefile,v 1.162 2017/06/20 01:17:13 kamil Exp $
 
 .include <bsd.own.mk>
 
@@ -43,7 +43,7 @@
        tape.h termios.h time.h timeb.h timepps.h times.h timespec.h \
        timex.h tls.h trace.h tree.h tty.h ttychars.h ttycom.h \
        ttydefaults.h ttydev.h types.h \
-       ucontext.h ucred.h uio.h un.h unistd.h unpcb.h user.h utsname.h uuid.h \
+       ucontext.h ucred.h uio.h un.h unistd.h unpcb.h utsname.h uuid.h \
        vadvise.h verified_exec.h videoio.h vmmeter.h vnode.h vnode_if.h \
        wait.h wapbl.h wapbl_replay.h wdog.h xattr.h
 
diff -r 546c655a49c3 -r 67d2e018eafb sys/sys/user.h
--- a/sys/sys/user.h    Mon Jun 19 23:54:00 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-/*     $NetBSD: user.h,v 1.19 2014/02/19 20:40:40 dsl Exp $    */
-
-/*
- * Copyright (c) 1982, 1986, 1989, 1991, 1993
- *     The Regents of the University of California.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- *     @(#)user.h      8.2 (Berkeley) 9/23/93
- */
-
-#ifndef _SYS_USER_H_
-#define _SYS_USER_H_
-
-#ifdef _KERNEL
-#error "This header has been obsoleted and will be removed."
-#endif
-
-#endif /* !_SYS_USER_H_ */



Home | Main Index | Thread Index | Old Index