From owner-cvs-sbin Mon Oct 21 12:40:12 1996 Return-Path: owner-cvs-sbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA05999 for cvs-sbin-outgoing; Mon, 21 Oct 1996 12:40:12 -0700 (PDT) Received: (from phk@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA05968; Mon, 21 Oct 1996 12:40:04 -0700 (PDT) Date: Mon, 21 Oct 1996 12:40:04 -0700 (PDT) From: Poul-Henning Kamp Message-Id: <199610211940.MAA05968@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sbin Subject: cvs commit: src/sbin/dumpfs dumpfs.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk phk 96/10/21 12:40:03 Modified: sbin/dumpfs dumpfs.c Log: dumpfs blindly trusts that it has been handed a filesystem. If the magic is bad, don't waste our time. Submitted by: Giles Lean Giles Lean Obtained from: NetBSD PR bin/249 Revision Changes Path 1.5 +7 -0 src/sbin/dumpfs/dumpfs.c From owner-cvs-sbin Tue Oct 22 14:57:15 1996 Return-Path: owner-cvs-sbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA08303 for cvs-sbin-outgoing; Tue, 22 Oct 1996 14:57:15 -0700 (PDT) Received: (from joerg@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA08247; Tue, 22 Oct 1996 14:57:01 -0700 (PDT) Date: Tue, 22 Oct 1996 14:57:01 -0700 (PDT) From: Joerg Wunsch Message-Id: <199610222157.OAA08247@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sbin Subject: cvs commit: src/sbin/mount_nfs mount_nfs.8 Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk joerg 96/10/22 14:57:01 Modified: sbin/mount_nfs mount_nfs.8 Log: Mention the historic mount options, as `deprecated'. Closes PR # docs/735. Revision Changes Path 1.5 +49 -0 src/sbin/mount_nfs/mount_nfs.8 From owner-cvs-sbin Thu Oct 24 23:48:40 1996 Return-Path: owner-cvs-sbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA28430 for cvs-sbin-outgoing; Thu, 24 Oct 1996 23:48:40 -0700 (PDT) Received: (from bde@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA28412; Thu, 24 Oct 1996 23:48:31 -0700 (PDT) Date: Thu, 24 Oct 1996 23:48:31 -0700 (PDT) From: Bruce Evans Message-Id: <199610250648.XAA28412@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib, cvs-sbin Subject: cvs commit: src/lib/libmd mdXhl.c src/sbin/md5 md5.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 96/10/24 23:48:31 Modified: lib/libmd mdXhl.c sbin/md5 md5.c Log: Moved #include of earlier so that this compiles when doesn't (bogusly) include . Cleaned up #includes. Revision Changes Path 1.8 +8 -7 src/lib/libmd/mdXhl.c 1.7 +6 -3 src/sbin/md5/md5.c From owner-cvs-sbin Fri Oct 25 00:08:08 1996 Return-Path: owner-cvs-sbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA29848 for cvs-sbin-outgoing; Fri, 25 Oct 1996 00:08:08 -0700 (PDT) Received: from spinner.DIALix.COM (root@spinner.DIALix.COM [192.203.228.67]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id AAA29832; Fri, 25 Oct 1996 00:07:56 -0700 (PDT) Received: from spinner.DIALix.COM (peter@localhost.DIALix.oz.au [127.0.0.1]) by spinner.DIALix.COM (8.8.2/8.8.2) with ESMTP id PAA18196; Fri, 25 Oct 1996 15:07:47 +0800 (WST) Message-Id: <199610250707.PAA18196@spinner.DIALix.COM> X-Mailer: exmh version 1.6.9 8/22/96 To: Bruce Evans cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-lib@freefall.freebsd.org, cvs-sbin@freefall.freebsd.org Subject: Re: cvs commit: src/lib/libmd mdXhl.c src/sbin/md5 md5.c In-reply-to: Your message of "Thu, 24 Oct 1996 23:48:31 MST." <199610250648.XAA28412@freefall.freebsd.org> Date: Fri, 25 Oct 1996 15:07:47 +0800 From: Peter Wemm Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Bruce Evans wrote: > Modified: lib/libmd mdXhl.c > sbin/md5 md5.c > Log: > Moved #include of earlier so that this compiles when > doesn't (bogusly) include . Bogus it may be, but if we're even going to pretend that we are trying to conform to important standards where possible (such as Spec1170 aka the "Single Unix" spec), stdio.h and all the other major include files _must_ be self contained. POSIX may not require it, but the X/Open stuff does. Cheers, -Peter From owner-cvs-sbin Fri Oct 25 01:09:48 1996 Return-Path: owner-cvs-sbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA01761 for cvs-sbin-outgoing; Fri, 25 Oct 1996 01:09:48 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id BAA01755; Fri, 25 Oct 1996 01:09:31 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.7.6/8.6.9) id SAA11209; Fri, 25 Oct 1996 18:03:16 +1000 Date: Fri, 25 Oct 1996 18:03:16 +1000 From: Bruce Evans Message-Id: <199610250803.SAA11209@godzilla.zeta.org.au> To: bde@freefall.freebsd.org, peter@spinner.DIALix.COM Subject: Re: cvs commit: src/lib/libmd mdXhl.c src/sbin/md5 md5.c Cc: cvs-all@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-lib@freefall.freebsd.org, cvs-sbin@freefall.freebsd.org Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >> Modified: lib/libmd mdXhl.c >> sbin/md5 md5.c >> Log: >> Moved #include of earlier so that this compiles when >> doesn't (bogusly) include . > >Bogus it may be, but if we're even going to pretend that we are trying to >conform to important standards where possible (such as Spec1170 aka the >"Single Unix" spec), stdio.h and all the other major include files _must_ >be self contained. POSIX may not require it, but the X/Open stuff does. If we're going to pretend to be ANSI and POSIX conformant, then standard headers must not include massive namespace pollution from other headers. POSIX specifies that only a few names in the application namespace may be defined in : 1. dev_t, gid_t, ino_t, mode_t, nlink_t, off_t, pid_t, size_t, ssize_t, uid_t 2. all other names ending with _t (this applies all POSIX headers) (2) says that including in any POSIX header is OK provided doesn't define any junk. The FreeBSD defines a lot of junk :-(. See my list posted a few months ago. Even if _POSIX_SOURCE is defined, the junk includes everything in . Even if were clean, it isn't convenient to depend on it to define enough types in POSIX headers that are also specified ANSI, because it can't be included in the _ANSI_SOURCE case (if we pretend to be ANSI conformant) unless it has zillions of ifdefs to prevent exportation of the non-ANSI parts in the _ANSI_SOURCE case, and then it would still need to define the necessary types in the implementation namespace, but we can types in the implementation namespace just by including . The problem in is that fpos_t needs to be the same as off_t, but off_t is not allowed in the ANSI namespace. Of course headers should be self-contained. The ones defined by ANSI are specified to be self-contained, although the POSIX ones aren't. Here are my diffs for making stdio.h self contained. I've been using essentially the same version for 3 years now. Bruce diff -c2 stdio.h~ stdio.h *** stdio.h~ Wed Jul 3 17:15:02 1996 --- stdio.h Tue May 28 02:34:06 1996 *************** *** 40,50 **** #define _STDIO_H_ - #if !defined(_ANSI_SOURCE) && !defined(__STRICT_ANSI__) - #include - #endif - #include - #include #ifdef _BSD_SIZE_T_ typedef _BSD_SIZE_T_ size_t; --- 40,46 ---- #define _STDIO_H_ #include #include + #ifdef _BSD_SIZE_T_ typedef _BSD_SIZE_T_ size_t; *************** *** 68,72 **** */ #if !defined(_ANSI_SOURCE) && !defined(__STRICT_ANSI__) ! typedef off_t fpos_t; #else typedef struct __sfpos { --- 64,68 ---- */ #if !defined(_ANSI_SOURCE) && !defined(__STRICT_ANSI__) ! typedef _BSD_OFF_T_ fpos_t; #else typedef struct __sfpos { From owner-cvs-sbin Fri Oct 25 13:39:06 1996 Return-Path: owner-cvs-sbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA13255 for cvs-sbin-outgoing; Fri, 25 Oct 1996 13:39:06 -0700 (PDT) Received: (from joerg@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA13202; Fri, 25 Oct 1996 13:38:46 -0700 (PDT) Date: Fri, 25 Oct 1996 13:38:46 -0700 (PDT) From: Joerg Wunsch Message-Id: <199610252038.NAA13202@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sbin Subject: cvs commit: src/sbin/fsck preen.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk joerg 96/10/25 13:38:45 Modified: sbin/fsck preen.c Log: Allow the specification of a mountpoint, and resolve it s disk device using the fstab. Closes PR bin/129. Submitted by: jmg@nike.efn.org (John-Mark Gurney) Revision Changes Path 1.4 +16 -1 src/sbin/fsck/preen.c