From owner-cvs-share Sun Aug 18 00:21:23 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA00649 for cvs-share-outgoing; Sun, 18 Aug 1996 00:21:23 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id AAA00553; Sun, 18 Aug 1996 00:20:58 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id JAA25856; Sun, 18 Aug 1996 09:20:57 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id JAA23438; Sun, 18 Aug 1996 09:20:56 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id IAA15135; Sun, 18 Aug 1996 08:59:13 +0200 (MET DST) From: J Wunsch Message-Id: <199608180659.IAA15135@uriah.heep.sax.de> Subject: Re: cvs commit: src/gnu/libexec/uucp Makefile src/etc Makefile src/gnu/usr.bin/send-pr Makefile src/share/termcap Makefile src/usr. To: wosch@freefall.freebsd.org (Wolfram Schneider) Date: Sun, 18 Aug 1996 08:59:12 +0200 (MET DST) Cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-share@freefall.freebsd.org, cvs-usrbin@freefall.freebsd.org, cvs-etc@freefall.freebsd.org, cvs-gnu@freefall.freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199608172227.PAA25750@freefall.freebsd.org> from Wolfram Schneider at "Aug 17, 96 03:27:10 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Wolfram Schneider wrote: > wosch 96/08/17 15:27:09 > > Modified: etc Makefile > gnu/libexec/uucp Makefile > gnu/usr.bin/send-pr Makefile > share/termcap Makefile > usr.bin/file Makefile > Log: > make install should not install any file in /etc. This is only half of the story, and you've just broken ``make release'' by this. If the respective Makefiles (correctly) don't do this anymore, /usr/src/etc/Makefile _must_ install these files now for ``make distrib-dirs''. file(1) has no concern with /etc at all, it should install its database under /usr/share/misc/. (units(1) DTRT already.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-cvs-share Sun Aug 18 03:53:28 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA16159 for cvs-share-outgoing; Sun, 18 Aug 1996 03:53:28 -0700 (PDT) Received: (from asami@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA16145; Sun, 18 Aug 1996 03:53:19 -0700 (PDT) Date: Sun, 18 Aug 1996 03:53:19 -0700 (PDT) From: Satoshi Asami Message-Id: <199608181053.DAA16145@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/mk bsd.port.mk Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk asami 96/08/18 03:53:18 Modified: share/mk bsd.port.mk Log: (1) Use INSTALL_PROGRAM where we attempt to pass this command line to configure. (2) Gently warn user for non-0022 umasks. Submitted by: "David E. O'Brien" (1) Revision Changes Path 1.221 +7 -2 src/share/mk/bsd.port.mk From owner-cvs-share Sun Aug 18 05:47:48 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id FAA21591 for cvs-share-outgoing; Sun, 18 Aug 1996 05:47:48 -0700 (PDT) Received: (from wosch@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id FAA21573; Sun, 18 Aug 1996 05:47:34 -0700 (PDT) Date: Sun, 18 Aug 1996 05:47:34 -0700 (PDT) From: Wolfram Schneider Message-Id: <199608181247.FAA21573@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/doc/handbook bibliography.sgml Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wosch 96/08/18 05:47:34 Modified: share/doc/handbook bibliography.sgml Log: new section ``Unix history'' * Saulus, Peter H. _A quarter century of UNIX_. * Simon Garfinkel, Daniel Weise, Steven Strassmann. _The UNIX-HATERS Hanbook_. Revision Changes Path 1.10 +17 -1 src/share/doc/handbook/bibliography.sgml From owner-cvs-share Sun Aug 18 10:04:52 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA01712 for cvs-share-outgoing; Sun, 18 Aug 1996 10:04:52 -0700 (PDT) Received: (from jkh@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA01692; Sun, 18 Aug 1996 10:04:43 -0700 (PDT) Date: Sun, 18 Aug 1996 10:04:43 -0700 (PDT) From: "Jordan K. Hubbard" Message-Id: <199608181704.KAA01692@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/doc/handbook hw.sgml scsi.sgml Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jkh 96/08/18 10:04:43 Modified: share/doc/handbook hw.sgml scsi.sgml Log: Typo police. Submitted-By: yoshiaki@kt.rim.or.jp Revision Changes Path 1.37 +2 -2 src/share/doc/handbook/hw.sgml 1.18 +2 -2 src/share/doc/handbook/scsi.sgml From owner-cvs-share Sun Aug 18 19:22:41 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id TAA06228 for cvs-share-outgoing; Sun, 18 Aug 1996 19:22:41 -0700 (PDT) Received: (from julian@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id TAA06172; Sun, 18 Aug 1996 19:22:20 -0700 (PDT) Date: Sun, 18 Aug 1996 19:22:20 -0700 (PDT) From: Julian Elischer Message-Id: <199608190222.TAA06172@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/man/man9 at_exit.9 at_fork.9 at_shutdown.9 Makefile Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk julian 96/08/18 19:22:19 Modified: share/man/man9 Makefile Added: share/man/man9 at_exit.9 at_fork.9 at_shutdown.9 Log: Add man-pages for at_exit, at_fork and at_shutdown() so that people can look and comment. I'll add the at_fork and at_exit immediatly, but I'll add teh at_shutdown later as it's more extensive and I desire people's comments.. julian Revision Changes Path 1.8 +5 -1 src/share/man/man9/Makefile From owner-cvs-share Mon Aug 19 05:11:44 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id FAA10085 for cvs-share-outgoing; Mon, 19 Aug 1996 05:11:44 -0700 (PDT) Received: (from asami@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id FAA10068; Mon, 19 Aug 1996 05:11:37 -0700 (PDT) Date: Mon, 19 Aug 1996 05:11:37 -0700 (PDT) From: Satoshi Asami Message-Id: <199608191211.FAA10068@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/doc/handbook contrib.sgml Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk asami 96/08/19 05:11:36 Modified: share/doc/handbook contrib.sgml Log: Added Hidekazu Kuroki for his myriad of Japanese ports (you've only seen the tip of an iceberg, in case you are wondering). Revision Changes Path 1.124 +2 -1 src/share/doc/handbook/contrib.sgml From owner-cvs-share Mon Aug 19 15:11:27 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA22283 for cvs-share-outgoing; Mon, 19 Aug 1996 15:11:27 -0700 (PDT) Received: (from wosch@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA22265; Mon, 19 Aug 1996 15:11:18 -0700 (PDT) Date: Mon, 19 Aug 1996 15:11:18 -0700 (PDT) From: Wolfram Schneider Message-Id: <199608192211.PAA22265@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/syscons/keymaps be.iso.kbd INDEX.keymaps Makefile Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wosch 96/08/19 15:11:17 Modified: share/syscons/keymaps INDEX.keymaps Makefile Added: share/syscons/keymaps be.iso.kbd Log: abbreviate UK add iso keyboard map for Belgian Revision Changes Path 1.8 +7 -5 src/share/syscons/keymaps/INDEX.keymaps 1.14 +1 -0 src/share/syscons/keymaps/Makefile From owner-cvs-share Mon Aug 19 15:13:13 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA22436 for cvs-share-outgoing; Mon, 19 Aug 1996 15:13:13 -0700 (PDT) Received: (from wosch@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA22420; Mon, 19 Aug 1996 15:13:08 -0700 (PDT) Date: Mon, 19 Aug 1996 15:13:08 -0700 (PDT) From: Wolfram Schneider Message-Id: <199608192213.PAA22420@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/syscons/fonts iso-8859-2-8x16.fnt INDEX.fonts Makefile Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wosch 96/08/19 15:13:07 Modified: share/syscons/fonts INDEX.fonts Makefile Added: share/syscons/fonts iso-8859-2-8x16.fnt Log: add 8x16 iso-8859-2 font submitted by: Slaven Reziæ (Tomiæ) Revision Changes Path 1.4 +4 -1 src/share/syscons/fonts/INDEX.fonts 1.9 +2 -1 src/share/syscons/fonts/Makefile From owner-cvs-share Tue Aug 20 01:22:15 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA09088 for cvs-share-outgoing; Tue, 20 Aug 1996 01:22:15 -0700 (PDT) Received: (from julian@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA09057; Tue, 20 Aug 1996 01:22:04 -0700 (PDT) Date: Tue, 20 Aug 1996 01:22:04 -0700 (PDT) From: Julian Elischer Message-Id: <199608200822.BAA09057@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-user, cvs-lib, cvs-share, cvs-include Subject: cvs commit: src/include pthread_np.h Makefile pthread.h src/lib Makefile src/lib/libc/i386/sys fork.S pipe.S rfork.S sigpending.S sigreturn.S src/lib/libc_r Makefile src/lib/libc_r/man Makefile.inc pthread_create.3 pthread_detach.3 pthread_equal.3 pthread_exit.3 pthread_getspecific.3 pthread_join.3 pthread_key_create.3 pthread_key_delete.3 pthread_once.3 pthread_self.3 pthread_setspecific.3 src/lib/libc_r/sys Makefile.inc src/lib/libc_r/uthread uthread_attr_destroy.c uthread_attr_init.c uthread_attr_setcreatesuspend_np.c uthread_attr_setprio.c uthread_attr_setstacksize.c uthread_multi_np.c uthread_resume_np.c uthread_single_np.c uthread_suspend_np.c Makefile.inc pthread_private.h uthread_accept.c uthread_attr_setcreatesuspend.c uthread_close.c uthread_cond.c uthread_create.c uthread_execve.c uthread_exit.c uthread_fcntl.c uthread_fd.c uthread_fork.c uthread_init.c uthread_kern.c uthread_mutex.c uthread_nanosleep.c uthread_open.c uthread_pipe.c uthread_resume.c uthread_select.c uthread_sig.c uthread_sigsuspend.c uthread_socket.c uthread_spec.c uthread_suspend.c src/share/man/man3 pthread.3 Makefile src/lib/libc/gen ttyname.c src/lib/libc/i386 SYS.h src/lib/libc/net gethostnamadr.c src/lib/libc/stdtime localtime.c Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk julian 96/08/20 01:22:02 Modified: include Makefile pthread.h lib Makefile lib/libc/gen ttyname.c lib/libc/i386 SYS.h lib/libc/i386/sys fork.S pipe.S rfork.S sigpending.S sigreturn.S lib/libc/net gethostnamadr.c lib/libc/stdtime localtime.c lib/libc_r Makefile lib/libc_r/sys Makefile.inc lib/libc_r/uthread Makefile.inc pthread_private.h uthread_accept.c uthread_attr_setcreatesuspend.c uthread_close.c uthread_cond.c uthread_create.c uthread_execve.c uthread_exit.c uthread_fcntl.c uthread_fd.c uthread_fork.c uthread_init.c uthread_kern.c uthread_mutex.c uthread_nanosleep.c uthread_open.c uthread_pipe.c uthread_resume.c uthread_select.c uthread_sig.c uthread_sigsuspend.c uthread_socket.c uthread_spec.c uthread_suspend.c share/man/man3 Makefile Added: include pthread_np.h lib/libc_r/man Makefile.inc pthread_create.3 pthread_detach.3 pthread_equal.3 pthread_exit.3 pthread_getspecific.3 pthread_join.3 pthread_key_create.3 pthread_key_delete.3 pthread_once.3 pthread_self.3 pthread_setspecific.3 lib/libc_r/uthread uthread_attr_destroy.c uthread_attr_init.c uthread_attr_setcreatesuspend_np.c uthread_attr_setprio.c uthread_attr_setstacksize.c uthread_multi_np.c uthread_resume_np.c uthread_single_np.c uthread_suspend_np.c share/man/man3 pthread.3 Log: Submitted by: John Birrell Here are the diffs for libc_r to get it one step closer to P1003.1c These make most of the thread/mutex/condvar structures opaque to the user. There are three functions which have been renamed with _np suffixes because they are extensions to P1003.1c (I did them for JAVA, which needs to suspend/resume threads and also start threads suspended). I've created a new header (pthread_np.h) for the non-POSIX stuff. The egrep tags stuff in /usr/src/lib/libc_r/Makefile that I uncommented doesn't work. I think its best to delete it. I don't think libc_r needs tags anyway, 'cause most of the source is in libc which does have tags. also: Here's the first batch of man pages for the thread functions. The diff to /usr/src/lib/libc_r/Makefile removes some stuff that was inherited from /usr/src/lib/libc/Makefile that should only be done with libc. also: I should have sent this diff with the pthread(3) man page. It allows people to type make -DWANT_LIBC_R world to get libc_r built with the rest of the world. I put this in the pthread(3) man page. The default is still not to build libc_r. also: The diff attached adds a pthread(3) man page to /usr/src/share/man/man3. The idea is that without libc_r installed, this man page will give people enough info to know that they have to build libc_r. Revision Changes Path 1.40 +5 -5 src/include/Makefile 1.2 +141 -186 src/include/pthread.h 1.44 +4 -0 src/lib/Makefile 1.5 +2 -1 src/lib/libc/gen/ttyname.c 1.5 +27 -9 src/lib/libc/i386/SYS.h 1.5 +3 -7 src/lib/libc/i386/sys/fork.S 1.5 +3 -7 src/lib/libc/i386/sys/pipe.S 1.3 +3 -7 src/lib/libc/i386/sys/rfork.S 1.5 +3 -7 src/lib/libc/i386/sys/sigpending.S 1.5 +3 -7 src/lib/libc/i386/sys/sigreturn.S 1.9 +23 -2 src/lib/libc/net/gethostnamadr.c 1.9 +8 -4 src/lib/libc/stdtime/localtime.c 1.3 +3 -18 src/lib/libc_r/Makefile 1.4 +34 -12 src/lib/libc_r/sys/Makefile.inc 1.3 +4 -4 src/lib/libc_r/uthread/Makefile.inc 1.2 +140 -8 src/lib/libc_r/uthread/pthread_private.h 1.2 +1 -0 src/lib/libc_r/uthread/uthread_accept.c 1.2 +0 -43 src/lib/libc_r/uthread/uthread_attr_setcreatesuspend.c 1.2 +50 -2 src/lib/libc_r/uthread/uthread_close.c 1.2 +187 -145 src/lib/libc_r/uthread/uthread_cond.c 1.2 +12 -9 src/lib/libc_r/uthread/uthread_create.c 1.2 +25 -0 src/lib/libc_r/uthread/uthread_execve.c 1.2 +38 -0 src/lib/libc_r/uthread/uthread_exit.c 1.2 +1 -0 src/lib/libc_r/uthread/uthread_fcntl.c 1.2 +19 -5 src/lib/libc_r/uthread/uthread_fd.c 1.2 +2 -0 src/lib/libc_r/uthread/uthread_fork.c 1.3 +0 -12 src/lib/libc_r/uthread/uthread_init.c 1.2 +230 -1 src/lib/libc_r/uthread/uthread_kern.c 1.2 +249 -216 src/lib/libc_r/uthread/uthread_mutex.c 1.2 +118 -29 src/lib/libc_r/uthread/uthread_nanosleep.c 1.2 +3 -8 src/lib/libc_r/uthread/uthread_open.c 1.2 +0 -5 src/lib/libc_r/uthread/uthread_pipe.c 1.2 +0 -70 src/lib/libc_r/uthread/uthread_resume.c 1.2 +9 -16 src/lib/libc_r/uthread/uthread_select.c 1.2 +44 -5 src/lib/libc_r/uthread/uthread_sig.c 1.2 +3 -0 src/lib/libc_r/uthread/uthread_sigsuspend.c 1.2 +6 -6 src/lib/libc_r/uthread/uthread_socket.c 1.2 +10 -10 src/lib/libc_r/uthread/uthread_spec.c 1.2 +0 -67 src/lib/libc_r/uthread/uthread_suspend.c 1.10 +3 -3 src/share/man/man3/Makefile From owner-cvs-share Tue Aug 20 02:51:22 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA13876 for cvs-share-outgoing; Tue, 20 Aug 1996 02:51:22 -0700 (PDT) Received: (from asami@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA13849; Tue, 20 Aug 1996 02:51:09 -0700 (PDT) Date: Tue, 20 Aug 1996 02:51:09 -0700 (PDT) From: Satoshi Asami Message-Id: <199608200951.CAA13849@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/doc/handbook porting.sgml Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk asami 96/08/20 02:51:08 Modified: share/doc/handbook porting.sgml Log: (1) Clarify the use of ${MOTIFLIB} by giving examples on what to substitute. (2) Bring the *_DEPENDS section up to the current state. Explain that the pathname in the "path:dir" pair can be a full pathname if you want a port to depend on something that isn't executable or an executable that's not expected to be in the user's search path (like /usr/local/libexec). Also, change the LIB_DEPENDS example to use jpeg, tcl-7.3's appropriateness as an example is quite outdated at this point. ;) Revision Changes Path 1.26 +53 -23 src/share/doc/handbook/porting.sgml From owner-cvs-share Tue Aug 20 03:01:01 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA14260 for cvs-share-outgoing; Tue, 20 Aug 1996 03:01:01 -0700 (PDT) Received: (from asami@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA14215; Tue, 20 Aug 1996 03:00:42 -0700 (PDT) Date: Tue, 20 Aug 1996 03:00:42 -0700 (PDT) From: Satoshi Asami Message-Id: <199608201000.DAA14215@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/mk bsd.port.mk Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk asami 96/08/20 03:00:40 Modified: share/mk bsd.port.mk Log: Update explanation of *_DEPENDS, in particular note that bsd.port.mk can now check existence of files specified by full pathnames, not only executables. Revision Changes Path 1.222 +20 -18 src/share/mk/bsd.port.mk From owner-cvs-share Tue Aug 20 10:50:37 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA20700 for cvs-share-outgoing; Tue, 20 Aug 1996 10:50:37 -0700 (PDT) Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id KAA20684; Tue, 20 Aug 1996 10:50:32 -0700 (PDT) Received: from campa.panke.de (anonymous233.ppp.cs.tu-berlin.de [130.149.17.233]) by mail.cs.tu-berlin.de (8.6.12/8.6.12) with ESMTP id TAA06759; Tue, 20 Aug 1996 19:30:36 +0200 Received: (from wosch@localhost) by campa.panke.de (8.6.12/8.6.12) id SAA02033; Tue, 20 Aug 1996 18:15:03 +0200 Date: Tue, 20 Aug 1996 18:15:03 +0200 From: Wolfram Schneider Message-Id: <199608201615.SAA02033@campa.panke.de> To: John Polstra Cc: wosch@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-share@freefall.freebsd.org Subject: Re: cvs commit: src/share/dict web2 In-Reply-To: <199608152141.OAA26875@austin.polstra.com> References: <199608152141.OAA26875@austin.polstra.com> Reply-to: Wolfram Schneider MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk John Polstra writes: >All these tiny changes to the 2.5 MB web2 file! If you are trying to >motivate sup users to switch to CTM or CVSup, you've found an excellent >technique. :-) Well, it is a Yank dictionary. It is very large, but miss the main words. The 'words' file from SunOS is 10 times smaller and has 5.000 words which we don't have. Missing countries, based on domains.tab from analog(1) Afghanistan, Algeria, Andorra, Antigua, Armenia, Aruba, Australia, Austria, Azerbaidjan, Bahamas, Bahrain, Bangladesh, Belarus, Belgium, Belize, Bhutan, Bosnia-Herzegovina, Botswana, Bouvet, Brunei, Bulgaria, Burkina, Burundi, Cambodia, Cameroon, Colombia, Comoros, Croatia, Cyprus, Denmark, Djibouti, Dominica, Ecuador, Estonia, Faroe, France, Gabon, Germany, Ghana, Greece, Grenada, Guadeloupe, Guam, Guatemala, Guyana, Haiti, Heard, Honduras, Hungary, Indonesia, Ireland, Italy, Kazakhstan, Kenya, Kiribati, Kuwait, Kyrgyzstan, Laos, Latvia, Lebanon, Lesotho, Libya, Liechtenstein, Lithuania, Luxembourg, Macau, Macedonia, Malawi, Malaysia, Maldives, Malta, Martinique, Mauritania, Mauritius, Mayotte, Mexico, Micronesia, Moldavia, Monaco, Mongolia, Montserrat, Myanmar, Namibia, Nauru, Netherlands, Niger, Nigeria, Pakistan, Papua, Pitcairn, Poland, Polynesia, Puerto, Qatar, Romania, Rwanda, Samoa, Saudi, Seychelles, Singapore, Slovenia, Somalia, Spain, Suriname, Svalbard, Sweden, Switzerland, Syria, Tadjikistan, Taiwan, Tanzania, Thailand, Togo, Trinidad, Tunisia, Turkmenistan, Turks, Tuvalu, Uganda, Ukraine, Uruguay, Uzbekistan, Vanuatu, Venezuela, Vietnam, Wallis, Yugoslavia, Zaire, Zambia Wolfram From owner-cvs-share Tue Aug 20 16:57:57 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA15136 for cvs-share-outgoing; Tue, 20 Aug 1996 16:57:57 -0700 (PDT) Received: (from jkh@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA15113; Tue, 20 Aug 1996 16:57:48 -0700 (PDT) Date: Tue, 20 Aug 1996 16:57:48 -0700 (PDT) From: "Jordan K. Hubbard" Message-Id: <199608202357.QAA15113@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/examples/cvsup - New directory Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jkh 96/08/20 16:57:47 src/share/examples/cvsup - New directory From owner-cvs-share Tue Aug 20 17:24:08 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA18403 for cvs-share-outgoing; Tue, 20 Aug 1996 17:24:08 -0700 (PDT) Received: (from jkh@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA18278; Tue, 20 Aug 1996 17:23:57 -0700 (PDT) Date: Tue, 20 Aug 1996 17:23:57 -0700 (PDT) From: "Jordan K. Hubbard" Message-Id: <199608210023.RAA18278@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/examples/cvsup README cvs-supfile ports-supfile secure-stable-supfile secure-supfile stable-supfile standard-supfile src/share/examples/sup README Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jkh 96/08/20 17:23:57 Modified: share/examples/sup README Added: share/examples/cvsup README cvs-supfile ports-supfile secure-stable-supfile secure-supfile stable-supfile standard-supfile Log: Clean up some of the example docs, add a set of example files for cvsup now that we're actively promoting that service. Revision Changes Path 1.5 +3 -2 src/share/examples/sup/README From owner-cvs-share Tue Aug 20 17:26:46 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA18727 for cvs-share-outgoing; Tue, 20 Aug 1996 17:26:46 -0700 (PDT) Received: (from jkh@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA18701; Tue, 20 Aug 1996 17:26:36 -0700 (PDT) Date: Tue, 20 Aug 1996 17:26:36 -0700 (PDT) From: "Jordan K. Hubbard" Message-Id: <199608210026.RAA18701@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/examples/cvsup cvs-supfile ports-supfile stable-supfile standard-supfile Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jkh 96/08/20 17:26:35 Modified: share/examples/cvsup cvs-supfile ports-supfile stable-supfile standard-supfile Log: Whups! Forgot to do my edits for sup.FreeBSD.org -> cvsup.FreeBSD.org before doing the commit. Revision Changes Path 1.2 +17 -17 src/share/examples/cvsup/cvs-supfile 1.2 +31 -31 src/share/examples/cvsup/ports-supfile 1.2 +17 -17 src/share/examples/cvsup/stable-supfile 1.2 +17 -17 src/share/examples/cvsup/standard-supfile From owner-cvs-share Tue Aug 20 21:57:39 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id VAA13441 for cvs-share-outgoing; Tue, 20 Aug 1996 21:57:39 -0700 (PDT) Received: from sovcom.kiae.su (sovcom.kiae.su [193.125.152.1]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id VAA13436; Tue, 20 Aug 1996 21:57:35 -0700 (PDT) Received: by sovcom.kiae.su id AA24783 (5.65.kiae-1 ); Wed, 21 Aug 1996 07:52:55 +0300 Received: by sovcom.KIAE.su (UUMAIL/2.0); Wed, 21 Aug 96 07:52:55 +0300 Received: (from ache@localhost) by nagual.ru (8.7.5/8.7.3) id IAA00418; Wed, 21 Aug 1996 08:47:30 +0400 (MSD) Message-Id: <199608210447.IAA00418@nagual.ru> Subject: Re: cvs commit: src/share/examples/cvsup - New directory In-Reply-To: <199608202357.QAA15113@freefall.freebsd.org> from "Jordan K. Hubbard" at "Aug 20, 96 04:57:48 pm" To: jkh@freefall.freebsd.org (Jordan K. Hubbard) Date: Wed, 21 Aug 1996 08:47:30 +0400 (MSD) Cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-share@freefall.freebsd.org From: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (Andrey A. Chernov) Organization: self X-Class: Fast X-Mailer: ELM [version 2.4ME+ PL25 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > jkh 96/08/20 16:57:47 > > src/share/examples/cvsup - New directory > Please, don't forget to add this directory to BSD.usr.dist Or I worry too early? -- Andrey A. Chernov http://www.nagual.ru/~ache/ From owner-cvs-share Wed Aug 21 00:18:46 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA10650 for cvs-share-outgoing; Wed, 21 Aug 1996 00:18:46 -0700 (PDT) Received: (from asami@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA10608; Wed, 21 Aug 1996 00:18:34 -0700 (PDT) Date: Wed, 21 Aug 1996 00:18:34 -0700 (PDT) From: Satoshi Asami Message-Id: <199608210718.AAA10608@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/doc/handbook bibliography.sgml Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk asami 96/08/21 00:18:33 Modified: share/doc/handbook bibliography.sgml Log: There is no word "UNIX" in the title of the new (red) daemon book. Revision Changes Path 1.11 +2 -2 src/share/doc/handbook/bibliography.sgml From owner-cvs-share Wed Aug 21 00:29:17 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA11834 for cvs-share-outgoing; Wed, 21 Aug 1996 00:29:17 -0700 (PDT) Received: (from asami@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA11800; Wed, 21 Aug 1996 00:29:06 -0700 (PDT) Date: Wed, 21 Aug 1996 00:29:06 -0700 (PDT) From: Satoshi Asami Message-Id: <199608210729.AAA11800@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/doc/handbook contrib.sgml handbook.sgml history.sgml kerberos.sgml kernelconfig.sgml linuxemu.sgml nutshell.sgml relnotes.sgml Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk asami 96/08/21 00:29:04 Modified: share/doc/handbook contrib.sgml handbook.sgml history.sgml kerberos.sgml kernelconfig.sgml linuxemu.sgml nutshell.sgml relnotes.sgml Log: Be consistent about the codebase we originated from. Always use "4.4BSD-Lite" (not "4.4 BSD Lite", "BSD 4.4-lite" or some such), this is what the CSRG people call their release in the red daemon book (and most of the handbook had it that way). Revision Changes Path 1.125 +2 -2 src/share/doc/handbook/contrib.sgml 1.54 +2 -2 src/share/doc/handbook/handbook.sgml 1.15 +4 -4 src/share/doc/handbook/history.sgml 1.8 +2 -2 src/share/doc/handbook/kerberos.sgml 1.15 +2 -2 src/share/doc/handbook/kernelconfig.sgml 1.10 +2 -2 src/share/doc/handbook/linuxemu.sgml 1.10 +2 -2 src/share/doc/handbook/nutshell.sgml 1.13 +5 -5 src/share/doc/handbook/relnotes.sgml From owner-cvs-share Wed Aug 21 03:17:12 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA27149 for cvs-share-outgoing; Wed, 21 Aug 1996 03:17:12 -0700 (PDT) Received: (from jkh@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA27113; Wed, 21 Aug 1996 03:16:55 -0700 (PDT) Date: Wed, 21 Aug 1996 03:16:55 -0700 (PDT) From: "Jordan K. Hubbard" Message-Id: <199608211016.DAA27113@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/examples/cvsup README Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jkh 96/08/21 03:16:54 Modified: share/examples/cvsup README Log: Add cvsup.nl.freebsd.org Revision Changes Path 1.2 +5 -0 src/share/examples/cvsup/README From owner-cvs-share Wed Aug 21 12:22:12 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA17818 for cvs-share-outgoing; Wed, 21 Aug 1996 12:22:12 -0700 (PDT) Received: (from mpp@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA17773; Wed, 21 Aug 1996 12:22:06 -0700 (PDT) Date: Wed, 21 Aug 1996 12:22:06 -0700 (PDT) From: Mike Pritchard Message-Id: <199608211922.MAA17773@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/doc/handbook uart.sgml Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk mpp 96/08/21 12:22:06 Modified: share/doc/handbook uart.sgml Log: Fix the typos listed in PR# 1511, plus a few others. Submitted by: Mitsuru IWASAKI Revision Changes Path 1.3 +9 -9 src/share/doc/handbook/uart.sgml From owner-cvs-share Wed Aug 21 14:43:58 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA01125 for cvs-share-outgoing; Wed, 21 Aug 1996 14:43:58 -0700 (PDT) Received: (from mpp@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA01080; Wed, 21 Aug 1996 14:43:36 -0700 (PDT) Date: Wed, 21 Aug 1996 14:43:36 -0700 (PDT) From: Mike Pritchard Message-Id: <199608212143.OAA01080@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/man/man9 at_exit.9 at_fork.9 at_shutdown.9 devfs_add_devswf.9 devfs_link.9 intro.9 Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk mpp 96/08/21 14:43:34 Modified: share/man/man9 at_exit.9 at_fork.9 at_shutdown.9 devfs_add_devswf.9 devfs_link.9 intro.9 Log: Use the .Fx macro to reference FreeBSD versions in several newer man pages. For those of you that don't know, here is an example of how the .Fx macro is used: The xyzzy command first appeared in .Fx 2.2 . Will expand to: The xyzzy command first appeared in FreeBSD 2.2. Revision Changes Path 1.2 +3 -2 src/share/man/man9/at_exit.9 1.2 +3 -2 src/share/man/man9/at_fork.9 1.2 +3 -2 src/share/man/man9/at_shutdown.9 1.2 +3 -2 src/share/man/man9/devfs_add_devswf.9 1.4 +3 -2 src/share/man/man9/devfs_link.9 1.4 +2 -4 src/share/man/man9/intro.9 From owner-cvs-share Wed Aug 21 15:02:13 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA03339 for cvs-share-outgoing; Wed, 21 Aug 1996 15:02:13 -0700 (PDT) Received: (from mpp@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA03305; Wed, 21 Aug 1996 15:01:54 -0700 (PDT) Date: Wed, 21 Aug 1996 15:01:54 -0700 (PDT) From: Mike Pritchard Message-Id: <199608212201.PAA03305@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/man/man4 intro.4 ipfirewall.4 worm.4 src/share/man/man8/man8.i386 crash.8 src/share/man/man4/man4.i386 joy.4 matcd.4 mtio.4 scd.4 vx.4 src/share/man/man5 sysconfig.5 Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk mpp 96/08/21 15:01:53 Modified: share/man/man4 intro.4 ipfirewall.4 worm.4 share/man/man4/man4.i386 joy.4 matcd.4 mtio.4 scd.4 vx.4 share/man/man5 sysconfig.5 share/man/man8/man8.i386 crash.8 Log: Update a bunch of man pages to use the .Fx macro to specify FreeBSD versions. Revision Changes Path 1.3 +3 -2 src/share/man/man4/intro.4 1.6 +4 -2 src/share/man/man4/ipfirewall.4 1.6 +3 -2 src/share/man/man4/worm.4 1.6 +2 -1 src/share/man/man4/man4.i386/joy.4 1.6 +3 -2 src/share/man/man4/man4.i386/matcd.4 1.2 +2 -1 src/share/man/man4/man4.i386/mtio.4 1.3 +3 -2 src/share/man/man4/man4.i386/scd.4 1.2 +3 -1 src/share/man/man4/man4.i386/vx.4 1.4 +3 -2 src/share/man/man5/sysconfig.5 1.3 +2 -1 src/share/man/man8/man8.i386/crash.8 From owner-cvs-share Wed Aug 21 15:18:40 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA05229 for cvs-share-outgoing; Wed, 21 Aug 1996 15:18:40 -0700 (PDT) Received: (from mpp@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA05198; Wed, 21 Aug 1996 15:18:26 -0700 (PDT) Date: Wed, 21 Aug 1996 15:18:26 -0700 (PDT) From: Mike Pritchard Message-Id: <199608212218.PAA05198@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/misc na.phone Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk mpp 96/08/21 15:18:25 Modified: share/misc na.phone Log: Update the area code for St. Cloud, MN, since it received a new one this year. Also move one entry that was out of place into the correct sort order. Revision Changes Path 1.3 +2 -2 src/share/misc/na.phone From owner-cvs-share Wed Aug 21 15:33:17 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA06881 for cvs-share-outgoing; Wed, 21 Aug 1996 15:33:17 -0700 (PDT) Received: (from mpp@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA06836; Wed, 21 Aug 1996 15:33:05 -0700 (PDT) Date: Wed, 21 Aug 1996 15:33:05 -0700 (PDT) From: Mike Pritchard Message-Id: <199608212233.PAA06836@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/misc zipcodes Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk mpp 96/08/21 15:33:04 Modified: share/misc zipcodes Log: Add my own zipcode, since it seems to be missing, along with some other ones that NetBSD has in their zipcode file that we don't. Revision Changes Path 1.2 +4 -1 src/share/misc/zipcodes From owner-cvs-share Wed Aug 21 15:38:35 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA07456 for cvs-share-outgoing; Wed, 21 Aug 1996 15:38:35 -0700 (PDT) Received: (from mpp@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA07415; Wed, 21 Aug 1996 15:38:22 -0700 (PDT) Date: Wed, 21 Aug 1996 15:38:22 -0700 (PDT) From: Mike Pritchard Message-Id: <199608212238.PAA07415@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/misc scsi_modes Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk mpp 96/08/21 15:38:21 Modified: share/misc scsi_modes Log: Fix a spelling error. Revision Changes Path 1.4 +1 -1 src/share/misc/scsi_modes From owner-cvs-share Wed Aug 21 20:55:28 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA08698 for cvs-share-outgoing; Wed, 21 Aug 1996 20:55:28 -0700 (PDT) Received: (from julian@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA08515; Wed, 21 Aug 1996 20:50:38 -0700 (PDT) Date: Wed, 21 Aug 1996 20:50:38 -0700 (PDT) From: Julian Elischer Message-Id: <199608220350.UAA08515@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib, cvs-share, cvs-sys Subject: cvs commit: src/lib/libc/sys reboot.2 src/share/man/man9 at_shutdown.9 src/sys/dev/vn vn.c src/sys/kern kern_exit.c kern_fork.c kern_shutdown.c src/sys/sys reboot.h systm.h Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk julian 96/08/21 20:50:37 Modified: lib/libc/sys reboot.2 share/man/man9 at_shutdown.9 sys/dev/vn vn.c sys/kern kern_exit.c kern_fork.c kern_shutdown.c sys/sys reboot.h systm.h Log: Some cleanups to the callout lists recently added. note that at_shutdown has a new parameter to indicate When during a shutdown the callout should be made. also add a RB_POWEROFF flag to reboot "howto" parameter.. tells the reboot code in our at_shutdown module to turn off the UPS and kill the power. bound to be useful eventually on laptops Revision Changes Path 1.4 +3 -0 src/lib/libc/sys/reboot.2 1.3 +13 -3 src/share/man/man9/at_shutdown.9 1.40 +2 -2 src/sys/dev/vn/vn.c 1.38 +23 -18 src/sys/kern/kern_exit.c 1.25 +38 -31 src/sys/kern/kern_fork.c 1.3 +66 -29 src/sys/kern/kern_shutdown.c 1.12 +2 -1 src/sys/sys/reboot.h 1.42 +5 -3 src/sys/sys/systm.h From owner-cvs-share Thu Aug 22 09:55:29 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA28471 for cvs-share-outgoing; Thu, 22 Aug 1996 09:55:29 -0700 (PDT) Received: (from wosch@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA28446; Thu, 22 Aug 1996 09:55:20 -0700 (PDT) Date: Thu, 22 Aug 1996 09:55:20 -0700 (PDT) From: Wolfram Schneider Message-Id: <199608221655.JAA28446@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/man/man9 style.9 Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wosch 96/08/22 09:55:19 Modified: share/man/man9 style.9 Log: add copyright, $Id$ remove case '?', if '?' is not in getopt(), it should not be in the switch statement Revision Changes Path 1.10 +27 -2 src/share/man/man9/style.9 From owner-cvs-share Thu Aug 22 13:46:57 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA16208 for cvs-share-outgoing; Thu, 22 Aug 1996 13:46:57 -0700 (PDT) Received: (from mpp@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA14699; Thu, 22 Aug 1996 13:27:59 -0700 (PDT) From: Mike Pritchard Message-Id: <199608222027.NAA14699@freefall.freebsd.org> Subject: Re: cvs commit: src/share/man/man9 style.9 To: wosch@freefall.freebsd.org (Wolfram Schneider) Date: Thu, 22 Aug 1996 13:27:59 -0700 (PDT) Cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-share@freefall.freebsd.org In-Reply-To: <199608221655.JAA28446@freefall.freebsd.org> from "Wolfram Schneider" at Aug 22, 96 09:55:20 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Wolfram Schneider wrote: > > wosch 96/08/22 09:55:19 > > Modified: share/man/man9 style.9 > Log: > add copyright, $Id$ > remove case '?', if '?' is not in getopt(), it should > not be in the switch statement > > Revision Changes Path > 1.10 +27 -2 src/share/man/man9/style.9 '?' is a valid return value from getopt(), and should probably be in the switch statement, even if it is covered by the "default" case. Since this is the style guide, including it in the example will at least make people think about it. -- Mike Pritchard mpp@FreeBSD.org "Go that way. Really fast. If something gets in your way, turn" From owner-cvs-share Thu Aug 22 16:39:56 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA01990 for cvs-share-outgoing; Thu, 22 Aug 1996 16:39:56 -0700 (PDT) Received: (from mpp@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA01966; Thu, 22 Aug 1996 16:39:34 -0700 (PDT) Date: Thu, 22 Aug 1996 16:39:34 -0700 (PDT) From: Mike Pritchard Message-Id: <199608222339.QAA01966@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/man/man3 bitstring.3 queue.3 src/share/man/man5 passwd.5 src/share/man/man4 yp.4 Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk mpp 96/08/22 16:39:33 Modified: share/man/man3 bitstring.3 queue.3 share/man/man4 yp.4 share/man/man5 passwd.5 Log: Use the .Bx macro where appropriate. Revision Changes Path 1.2 +2 -1 src/share/man/man3/bitstring.3 1.7 +2 -1 src/share/man/man3/queue.3 1.7 +4 -2 src/share/man/man4/yp.4 1.5 +2 -1 src/share/man/man5/passwd.5 From owner-cvs-share Thu Aug 22 16:52:43 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA03881 for cvs-share-outgoing; Thu, 22 Aug 1996 16:52:43 -0700 (PDT) Received: (from mpp@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA03726; Thu, 22 Aug 1996 16:52:07 -0700 (PDT) Date: Thu, 22 Aug 1996 16:52:07 -0700 (PDT) From: Mike Pritchard Message-Id: <199608222352.QAA03726@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/man/man5 passwd.5 src/share/man/man4 inet.4 pt.4 sd.4 st.4 ttcp.4 src/share/man/man4/man4.i386 ahc.4 asc.4 fe.4 Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk mpp 96/08/22 16:52:04 Modified: share/man/man4 inet.4 pt.4 sd.4 st.4 ttcp.4 share/man/man4/man4.i386 ahc.4 asc.4 fe.4 share/man/man5 passwd.5 Log: Use the .Fx macro to specify FreeBSD version where appropriate. Revision Changes Path 1.4 +2 -3 src/share/man/man4/inet.4 1.3 +1 -2 src/share/man/man4/pt.4 1.5 +3 -1 src/share/man/man4/sd.4 1.8 +3 -1 src/share/man/man4/st.4 1.3 +3 -3 src/share/man/man4/ttcp.4 1.5 +1 -3 src/share/man/man4/man4.i386/ahc.4 1.3 +1 -2 src/share/man/man4/man4.i386/asc.4 1.4 +2 -3 src/share/man/man4/man4.i386/fe.4 1.6 +3 -4 src/share/man/man5/passwd.5 From owner-cvs-share Fri Aug 23 00:00:46 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA02456 for cvs-share-outgoing; Fri, 23 Aug 1996 00:00:46 -0700 (PDT) Received: (from tg@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA02442; Fri, 23 Aug 1996 00:00:37 -0700 (PDT) Date: Fri, 23 Aug 1996 00:00:37 -0700 (PDT) From: Thomas Gellekum Message-Id: <199608230700.AAA02442@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/doc/handbook contrib.sgml Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk tg 96/08/23 00:00:36 Modified: share/doc/handbook contrib.sgml Log: Add tim Vanderhoek for his uulib and uudeview ports. Revision Changes Path 1.126 +2 -1 src/share/doc/handbook/contrib.sgml From owner-cvs-share Fri Aug 23 00:26:25 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA03543 for cvs-share-outgoing; Fri, 23 Aug 1996 00:26:25 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id AAA03363; Fri, 23 Aug 1996 00:21:51 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id JAA04619; Fri, 23 Aug 1996 09:21:18 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id JAA17840; Fri, 23 Aug 1996 09:21:18 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id JAA29339; Fri, 23 Aug 1996 09:10:01 +0200 (MET DST) From: J Wunsch Message-Id: <199608230710.JAA29339@uriah.heep.sax.de> Subject: Re: cvs commit: src/share/man/man9 style.9 To: mpp@freefall.freebsd.org (Mike Pritchard) Date: Fri, 23 Aug 1996 09:10:01 +0200 (MET DST) Cc: wosch@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-share@freefall.freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199608222027.NAA14699@freefall.freebsd.org> from Mike Pritchard at "Aug 22, 96 01:27:59 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Mike Pritchard wrote: > > remove case '?', if '?' is not in getopt(), it should > > not be in the switch statement > '?' is a valid return value from getopt(), and should probably be > in the switch statement, even if it is covered by the "default" case. > Since this is the style guide, including it in the example will > at least make people think about it. Yep. Folks, please discuss modifications to the style guide first. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-cvs-share Fri Aug 23 05:40:33 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id FAA14339 for cvs-share-outgoing; Fri, 23 Aug 1996 05:40:33 -0700 (PDT) Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id FAA14333; Fri, 23 Aug 1996 05:40:21 -0700 (PDT) Received: from caramba.cs.tu-berlin.de (wosch@caramba.cs.tu-berlin.de [130.149.17.12]) by mail.cs.tu-berlin.de (8.6.12/8.6.12) with ESMTP id OAA23714; Fri, 23 Aug 1996 14:15:44 +0200 From: Wolfram Schneider Received: (from wosch@localhost) by caramba.cs.tu-berlin.de (8.7.5/8.7.2) id OAA22685; Fri, 23 Aug 1996 14:15:39 +0200 (MET DST) Date: Fri, 23 Aug 1996 14:15:39 +0200 (MET DST) Message-Id: <199608231215.OAA22685@caramba.cs.tu-berlin.de> To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Cc: mpp@freefall.freebsd.org (Mike Pritchard), wosch@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-share@freefall.freebsd.org Subject: Re: cvs commit: src/share/man/man9 style.9 In-Reply-To: <199608230710.JAA29339@uriah.heep.sax.de> References: <199608222027.NAA14699@freefall.freebsd.org> <199608230710.JAA29339@uriah.heep.sax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk J. Wunsch writes: >As Mike Pritchard wrote: > >> > remove case '?', if '?' is not in getopt(), it should >> > not be in the switch statement > >> '?' is a valid return value from getopt(), and should probably be >> in the switch statement, even if it is covered by the "default" case. >> Since this is the style guide, including it in the example will >> at least make people think about it. > >Yep. Folks, please discuss modifications to the style guide first. There was a discussion 6 months ago. mv.c revision 1.6 date: 1996/02/19 05:51:13; author: pst; state: Exp; lines: +2 -5 [...] -? is an unnecessary case statement and not useful Wolfram From owner-cvs-share Fri Aug 23 09:49:41 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA09926 for cvs-share-outgoing; Fri, 23 Aug 1996 09:49:41 -0700 (PDT) Received: (from jkh@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA09825; Fri, 23 Aug 1996 09:49:13 -0700 (PDT) Date: Fri, 23 Aug 1996 09:49:13 -0700 (PDT) From: "Jordan K. Hubbard" Message-Id: <199608231649.JAA09825@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/mk bsd.lib.mk bsd.prog.mk bsd.sgml.mk Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jkh 96/08/23 09:49:11 Modified: share/mk bsd.lib.mk bsd.prog.mk bsd.sgml.mk Log: Add depend to all target so that it's explicit. It's only done once, even if make all is run multiple times, since the depend rule looks for an existing .depend file. Revision Changes Path 1.40 +2 -2 src/share/mk/bsd.lib.mk 1.36 +2 -2 src/share/mk/bsd.prog.mk 1.7 +2 -2 src/share/mk/bsd.sgml.mk From owner-cvs-share Fri Aug 23 15:33:49 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA20899 for cvs-share-outgoing; Fri, 23 Aug 1996 15:33:49 -0700 (PDT) Received: (from jkh@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA20873; Fri, 23 Aug 1996 15:33:38 -0700 (PDT) Date: Fri, 23 Aug 1996 15:33:38 -0700 (PDT) From: "Jordan K. Hubbard" Message-Id: <199608232233.PAA20873@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/mk bsd.dep.mk bsd.lib.mk bsd.prog.mk bsd.sgml.mk Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jkh 96/08/23 15:33:36 Modified: share/mk bsd.dep.mk bsd.lib.mk bsd.prog.mk bsd.sgml.mk Log: Make it possible to turn the depend pass off entirely with a NO_DEPEND variable. Requested-By: wollman Revision Changes Path 1.7 +4 -1 src/share/mk/bsd.dep.mk 1.41 +2 -2 src/share/mk/bsd.lib.mk 1.37 +2 -2 src/share/mk/bsd.prog.mk 1.8 +2 -2 src/share/mk/bsd.sgml.mk From owner-cvs-share Fri Aug 23 21:57:48 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id VAA25887 for cvs-share-outgoing; Fri, 23 Aug 1996 21:57:48 -0700 (PDT) Received: (from peter@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id VAA25814; Fri, 23 Aug 1996 21:57:25 -0700 (PDT) Date: Fri, 23 Aug 1996 21:57:25 -0700 (PDT) From: Peter Wemm Message-Id: <199608240457.VAA25814@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/doc/handbook contrib.sgml Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 96/08/23 21:57:23 Modified: share/doc/handbook contrib.sgml Log: Add some collected names from the last few commits, and fix a typo (somebody was hidden behind somebody else's name it seems) Revision Changes Path 1.127 +6 -2 src/share/doc/handbook/contrib.sgml From owner-cvs-share Sat Aug 24 02:29:10 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA23011 for cvs-share-outgoing; Sat, 24 Aug 1996 02:29:10 -0700 (PDT) Received: (from asami@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA22990; Sat, 24 Aug 1996 02:28:55 -0700 (PDT) Date: Sat, 24 Aug 1996 02:28:55 -0700 (PDT) From: Satoshi Asami Message-Id: <199608240928.CAA22990@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/mk bsd.port.mk Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk asami 96/08/24 02:28:54 Modified: share/mk bsd.port.mk Log: Use the new "file:" URL specification to fetch to check the CDROM first if /cdrom/ports/distfiles exists. If FETCH_SYMLINK_DISTFILES is set, symlink the file instead of copying. Reviewed by: jhk Revision Changes Path 1.223 +12 -2 src/share/mk/bsd.port.mk From owner-cvs-share Sat Aug 24 03:19:05 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA25510 for cvs-share-outgoing; Sat, 24 Aug 1996 03:19:05 -0700 (PDT) Received: (from jkh@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA25487; Sat, 24 Aug 1996 03:18:54 -0700 (PDT) Date: Sat, 24 Aug 1996 03:18:54 -0700 (PDT) From: "Jordan K. Hubbard" Message-Id: <199608241018.DAA25487@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/doc/handbook hw.sgml Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jkh 96/08/24 03:18:53 Modified: share/doc/handbook hw.sgml Log: Add a section for CDR drives. Revision Changes Path 1.38 +20 -1 src/share/doc/handbook/hw.sgml From owner-cvs-share Sat Aug 24 03:49:26 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA26696 for cvs-share-outgoing; Sat, 24 Aug 1996 03:49:26 -0700 (PDT) Received: (from wosch@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA26675; Sat, 24 Aug 1996 03:49:15 -0700 (PDT) Date: Sat, 24 Aug 1996 03:49:15 -0700 (PDT) From: Wolfram Schneider Message-Id: <199608241049.DAA26675@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/man/man9 style.9 Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wosch 96/08/24 03:49:13 Modified: share/man/man9 style.9 Log: .\" Copyright (c) 1995 FreeBSD Inc. .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 [your name] 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. .\" .\" $Id: style.9,v 1.10 1996/08/22 16:55:15 wosch Exp $ .\" .Dd December 14, 1995 .Dt STYLE 9 .Os FreeBSD 2.2 .Sh NAME .Nm style .Nd "Kernel source file style guide" .Sh DESCRIPTION This file contains an example of the preferred style for kernel source files in the FreeBSD source tree. .Bd -literal -offset 0i /* * Style guide for the 4BSD KNF (Kernel Normal Form). * * @(#)style 1.14 (Berkeley) 4/28/95 * * $Id: style.9,v 1.10 1996/08/22 16:55:15 wosch Exp $ * */ /* * VERY important single-line comments look like this. */ /* Most single-line comments look like this. */ /* * Multi-line comments look like this. Make them real sentences. Fill * them so they look like real paragraphs. */ .Ed .Pp Kernel include files come first; normally, you'll need OR , but not both! includes , and it's okay to depend on that. .Bd -literal -offset 0i #include /* Non-local includes in brackets. */ .Ed .Pp If it's a network program, put the network include files next. .Bd -literal -offset 0i #include #include #include #include #include .Ed .Pp Then there's a blank line, followed by the /usr include files. The /usr include files should be sorted! .Bd -literal -offset 0i #include .Ed .Pp Global pathnames are defined in /usr/include/paths.h. Pathnames local to the program go in pathnames.h in the local directory. .Bd -literal -offset 0i #include .Ed .Pp Then, there's a blank line, and the user include files. .Bd -literal -offset 0i #include "pathnames.h" /* Local includes in double quotes. */ .Ed .Pp Macros are capitalized, parenthesized, and should avoid side-effects. If they are an inline expansion of a function, the function is defined all in lowercase, the macro has the same name all in uppercase. If the macro needs more than a single line, use braces. Right-justify the backslashes, it makes it easier to read. .Bd -literal -offset 0i #define MACRO(x, y) { \e variable = (x) + (y); \e (y) += 2; \e } .Ed .Pp Enum types are capitalized. .Bd -literal -offset 0i enum enumtype { ONE, TWO } et; .Ed .Pp When declaring variables in structures, declare them sorted by use, then by size, and then by alphabetical order. The first category normally doesn't apply, but there are exceptions. Each one gets its own line. Put a tab after the first word, i.e. use .Ql int^Ix; and .Ql struct^Ifoo *x; . .Pp Major structures should be declared at the top of the file in which they are used, or in separate header files, if they are used in multiple source files. Use of the structures should be by separate declarations and should be "extern" if they are declared in a header file. .Bd -literal -offset 0i struct foo { struct foo *next; /* List of active foo */ struct mumble amumble; /* Comment for mumble */ int bar; }; struct foo *foohead; /* Head of global foo list */ /* Make the structure name match the typedef. */ typedef struct _bar { int level; } BAR; .Ed .Pp All functions are prototyped somewhere. .Pp Function prototypes for private functions (i.e. functions not used elsewhere) go at the top of the first source module. Functions local to one source module should be declared .Ql static . .Pp Functions used from other parts of the kernel are prototyped in the relevant include file. .Pp Functions that are used locally in more than one module go into a separate header file, e.g. .Pa extern.h . .Pp Only use the __P macro from the include file if the source file in general is (to be) compilable with a K&R Old testament compiler. .Pp Only the kernel has a name associated with the types, i.e. in the kernel use: .Bd -literal -offset 0i void function __P((int fd)); .Ed .Pp in user land use: .Bd -literal -offset 0i void function __P((int)); static char *function __P((int, const char *)); static void usage __P((void)); /* * All major routines should have a comment briefly describing what * they do. The comment before the "main" routine should describe * what the program does. */ int main(argc, argv) int argc; char *argv[]; { extern char *optarg; extern int optind; long num; int ch; char *ep; .Ed .Pp For consistency, getopt should be used to parse options. Options should be sorted in the getopt call and the switch statement, unless parts of the switch cascade. Elements in a switch statement that cascade should have a FALLTHROUGH comment. Numerical arguments should be checked for accuracy. Code that cannot be reached should have a NOTREACHED comment. .Bd -literal -offset 0i while ((ch = getopt(argc, argv, "abn")) != EOF) switch (ch) { /* Indent the switch. */ case 'a': /* Don't indent the case. */ aflag = 1; /* FALLTHROUGH */ case 'b': bflag = 1; break; case 'n': num = strtol(optarg, &ep, 10); if (num <= 0 || *ep != '\e0') err("illegal number -- %s", optarg); break; case '?': default: usage(); /* NOTREACHED */ } argc -= optind; argv += optind; .Ed .Pp Space after keywords (while, for, return, switch). No braces are used for control statements with zero or only a single statement. .Pp Forever loops are done with for's, not while's. .Bd -literal -offset 0i for (p = buf; *p != '\e0'; ++p); for (;;) stmt; .Ed .Pp Parts of a for loop may be left empty. Don't put declarations inside blocks unless the routine is unusually complicated. .Bd -literal -offset 0i for (; cnt < 15; cnt++) { stmt1; stmt2; } .Ed .Pp Second level indents are four spaces. .Bd -literal -offset 0i while (cnt < 20) z = a + really + long + statement + that + needs + two lines + gets + indented + four + spaces + on + the + second + and + subsequent + lines. .Ed .Pp Closing and opening braces go on the same line as the else. Don't add braces that aren't necessary. .Bd -literal -offset 0i if (test) stmt; else if (bar) { stmt; stmt; } else stmt; .Ed .Pp No spaces after function names. .Bd -literal -offset 0i if (error = function(a1, a2)) exit(error); .Ed .Pp Unary operators don't require spaces, binary operators do. Don't use parenthesis unless they're required for precedence, or the statement is really confusing without them. .Bd -literal -offset 0i a = b->c[0] + ~d == (e || f) || g && h ? i : j >> 1; k = !(l & FLAGS); .Ed .Pp Exits should be 0 on success, or according to the predefined values in .Xr sysexits 3 . .Bd -literal -offset 0i exit(EX_OK); /* * Avoid obvious comments such as * "Exit 0 on success." */ } .Ed .Pp The function type should be on a line by itself preceding the function. .Bd -literal -offset 0i static char * function(a1, a2, fl, a4) int a1, a2, a4; /* Declare ints, too, don't default them. */ float fl; /* List in order declared, as much as possible. */ { .Ed .Pp When declaring variables in functions declare them sorted by size, then in alphabetical order; multiple ones per line are okay. Declaring functions inside functions is not recommendable, since their linkage scope is always global. If a line overflows reuse the type keyword. .Pp Be careful to not obfuscate the code by initializing variables in the declarations. Use this feature only thoughtfully. .Bd -literal -offset 0i extern u_char one; extern char two; struct foo three, *four; double five; int *six, seven, eight(); char *nine, ten, eleven, twelve, thirteen, fourteen, fifteen; char *overflow __P((void)); void *mymalloc __P((u_int)); .Ed .Pp Casts and sizeof's are not followed by a space. .Pp NULL is the preferred null pointer constant. Use NULL instead of (type *)0 or (type *)NULL in contexts where the compiler knows the type, e.g., in assignments. Use (type *)NULL in other contexts, in particular for all function args. (Casting is essential for varadic args and is necessary for other args if the function prototype might not be in scope; since we pretend to support K&R compilers, most prototypes might not be in scope.) Test pointers against NULL, e.g., use: .Bd -literal -offset 0i (p = f()) == NULL .Ed .Pp not: .Bd -literal -offset 0i !(p = f()) .Ed .Pp Don't use '!' for tests unless it's a boolean, e.g. use .Bd -literal -offset 0i if (*p == '\e0') .Ed .Pp not .Bd -literal -offset 0i if (!*p) .Ed .Pp Routines returning void * should not have their return values cast to any pointer type. .Pp Use .Xr err 3 or .Xr warn 3 , don't roll your own! .Bd -literal -offset 0i if ((four = malloc(sizeof(struct foo))) == NULL) err(1, (char *)NULL); if ((six = (int *)overflow()) == NULL) errx(1, "Number overflowed."); return (eight); } .Ed .Pp Don't use ANSI function declarations unless you absolutely have too, i.e. you're declaring functions with variable numbers of arguments. .Pp ANSI function return values and braces look like regular functions. .Bd -literal -offset 0i int function(int a1, int a2) { ... } .Ed .Pp Variable numbers of arguments should look like this. .Bd -literal -offset 0i #if __STDC__ #include #else #include #endif void #if __STDC__ vaf(const char *fmt, ...) #else vaf(fmt, va_alist) char *fmt; va_dcl #endif { va_list ap; #if __STDC__ va_start(ap, fmt); #else va_start(ap); #endif STUFF; va_end(ap); /* No return needed for void functions. */ } static void usage() { /* Insert an empty line if the function has no local variables. */ .Ed .Pp Use .Xr printf 3 , not fputs/puts/putchar/whatever, it's faster and usually cleaner, not to mention avoiding stupid bugs. .Pp Usage statements should look like the manual pages. Options w/o operands come first, in alphabetical order inside a single set of braces. Followed by options with operands, in alphabetical order, each in braces. Followed by required arguments in the order they are specified, followed by optional arguments in the order they are specified. A bar .Pq Sq \&| separates either/or options/arguments, and multiple options/arguments which are specified together are placed in a single set of braces. .Pp .Bd -ragged -offset 0.3i "usage: f [-ade] [-b b_arg] [-m m_arg] req1 req2 [opt1 [opt2]]\en" "usage: f [-a | -b] [-c [-de] [-n number]]\en" .Ed .Bd -literal -offset 0i (void)fprintf(stderr, "usage: f [-ab]\en"); exit(1); } .Ed .Pp Note that the policy regarding the usage of K&R versus ANSI function definitions could not be commonly agreed to. While keeping the old form is more consistent with the existing code base, sticking to it defeats the migration to the more modern ANSI style. For new code, chose what you feel is more important. However, when modifying existing subsystems or files, stick with the style that is already there. .Sh SEE ALSO .Xr err 3 , .Xr warn 3 , .Xr sysexits 3 .Sh HISTORY This man page is largely based on the src/admin/style/style file from the BSD 4.4-Lite2 release, with a few updates to reflect the current practice and desire of the FreeBSD project. Revision Changes Path 1.11 +3 -2 src/share/man/man9/style.9 From owner-cvs-share Sat Aug 24 04:12:56 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id EAA27533 for cvs-share-outgoing; Sat, 24 Aug 1996 04:12:56 -0700 (PDT) Received: from mail.cs.tu-berlin.de (mail.cs.tu-berlin.de [130.149.17.13]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id EAA27514; Sat, 24 Aug 1996 04:12:31 -0700 (PDT) Received: from campa.panke.de (anonymous214.ppp.cs.tu-berlin.de [130.149.17.214]) by mail.cs.tu-berlin.de (8.6.12/8.6.12) with ESMTP id NAA00748; Sat, 24 Aug 1996 13:00:48 +0200 Received: (from wosch@localhost) by campa.panke.de (8.6.12/8.6.12) id NAA00679; Sat, 24 Aug 1996 13:00:33 +0200 Date: Sat, 24 Aug 1996 13:00:33 +0200 From: Wolfram Schneider Message-Id: <199608241100.NAA00679@campa.panke.de> To: peter@freebsd.org Cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-share@freefall.freebsd.org Subject: cvs commit: src/share/man/man9 style.9 In-Reply-To: <199608241049.DAA26675@freefall.freebsd.org> References: <199608241049.DAA26675@freefall.freebsd.org> Reply-to: Wolfram Schneider MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-cvs-share@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Wolfram Schneider writes: >wosch 96/08/24 03:49:13 > > Modified: share/man/man9 style.9 > Log: > .\" Copyright (c) 1995 FreeBSD Inc. > .\" All rights reserved. [445 lines deleted] Argh! Peter, please remove this log. The correct log information is: bring back ``case '?':'' in switch statement Wolfram From owner-cvs-share Sat Aug 24 09:44:42 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA15684 for cvs-share-outgoing; Sat, 24 Aug 1996 09:44:42 -0700 (PDT) Received: (from mpp@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA15666; Sat, 24 Aug 1996 09:44:29 -0700 (PDT) Date: Sat, 24 Aug 1996 09:44:29 -0700 (PDT) From: Mike Pritchard Message-Id: <199608241644.JAA15666@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/man/man8/man8.i386 MAKEDEV.8 Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk mpp 96/08/24 09:44:27 Modified: share/man/man8/man8.i386 MAKEDEV.8 Log: Convert to mdoc format. Note: this man page could probably use some updating to reflect the list of devices that MAKEDEV now supports. Revision Changes Path 1.5 +36 -49 src/share/man/man8/man8.i386/MAKEDEV.8 From owner-cvs-share Sat Aug 24 22:18:00 1996 Return-Path: owner-cvs-share Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA06547 for cvs-share-outgoing; Sat, 24 Aug 1996 22:18:00 -0700 (PDT) Received: (from jkh@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA06429; Sat, 24 Aug 1996 22:16:58 -0700 (PDT) Date: Sat, 24 Aug 1996 22:16:58 -0700 (PDT) From: "Jordan K. Hubbard" Message-Id: <199608250516.WAA06429@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-share Subject: cvs commit: src/share/mk bsd.dep.mk bsd.lib.mk bsd.prog.mk Sender: owner-cvs-share@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jkh 96/08/24 22:16:58 Modified: share/mk bsd.dep.mk bsd.lib.mk bsd.prog.mk Log: Back out the recent DEPEND changes - as Bruce points out, it's bogus. I'll leave any future Makefile hackery to him since he's clearly thought about this a great deal more than I have. Revision Changes Path 1.8 +0 -3 src/share/mk/bsd.dep.mk 1.42 +2 -2 src/share/mk/bsd.lib.mk 1.38 +2 -2 src/share/mk/bsd.prog.mk