531884 116 119 235 169 119 138 264 147 486 276 418 295 171 157 157 149 227 810 130 175 569 482 168 174 205 360 287 289 204 151 204 198 164 167 211 223 186 135 123 165 201 144 127 107 220 278 558 244 137 124 182 142 116 116 142 126 355 101 207 141 128 121 153 129 187 132 692 763 231 144 254 208 193 124 236 176 205 190 207 217 138 159 177 877 339 275 620 213 163 114 202 114 244 114 211 146 664 386 270 151 174 154 312 143 445 130 249 185 152 99 108 152 159 149 210 125 171 K 10 svn:author V 3 bde K 8 svn:date V 27 1997-12-20T00:07:11.000000Z K 7 svn:log V 27 Fixed gratuitous ANSIisms. END K 10 svn:author V 3 bde K 8 svn:date V 27 1997-12-20T00:13:51.000000Z K 7 svn:log V 142 Fixed a sloppy common-style declaration. natm_pcb.c: Include which will be used when M_PCB is declared in the right place. END K 10 svn:author V 3 bde K 8 svn:date V 27 1997-12-20T00:25:01.000000Z K 7 svn:log V 77 Added a used include. Fixed a gratuitous ANSIism and nearby KNF violations. END K 10 svn:author V 3 bde K 8 svn:date V 27 1997-12-20T00:27:03.000000Z K 7 svn:log V 27 Removed a stray semicolon. END K 10 svn:author V 3 bde K 8 svn:date V 27 1997-12-20T00:28:49.000000Z K 7 svn:log V 46 Ifdefed some conditionally used declarations. END K 10 svn:author V 3 bde K 8 svn:date V 27 1997-12-20T00:40:05.000000Z K 7 svn:log V 171 Never create the destination directory at install time. Don't build things at install time. Don't override the (correct) clean rule. Rewrote all the rules and cleaned up. END K 10 svn:author V 4 kato K 8 svn:date V 27 1997-12-20T02:37:55.000000Z K 7 svn:log V 54 Sync with sys/i386/conf/Makefile.i386 revision 1.106. END K 10 svn:author V 3 sef K 8 svn:date V 27 1997-12-20T03:05:47.000000Z K 7 svn:log V 393 Clear the p_stops field on change of user/group id, unless the correct flag is set in the p_pfsflags field. This, essentially, prevents an SUID proram from hanging after being traced. (E.g., "truss /usr/bin/rlogin" would fail, but leave rlogin in a stopevent state.) Yet another case where procctl is (hopefully ;)) no longer needed in the general case. Reviewed by: bde (thanks bruce :)) END K 10 svn:author V 2 jb K 8 svn:date V 27 1997-12-20T04:06:06.000000Z K 7 svn:log V 184 Change errno usage as a field in a structure and as an argument to a function from 'errno' to 'error' so that there is no conflict with the thread-safe definition of errno in errno.h. END K 10 svn:author V 2 se K 8 svn:date V 27 1997-12-20T09:04:25.000000Z K 7 svn:log V 326 Make the class code checks in function pci_cfgcheck less strict. It failed to recognize the PCI bus in a system that had only an old chip-set (class code 000000) and a Cyclom multiport serial card on PCI bus 0, but no VGA card or disk or network controller. PR: i386/5300 Submitted by: Nickolay N. Dudorov END K 10 svn:author V 5 peter K 8 svn:date V 27 1997-12-20T12:41:33.000000Z K 7 svn:log V 200 Somewhere between 2.2.2 and 2.2.5, somebody screwed the RELENG_2_2 tag on the protocols file. Restore the tag and correctly merge the changes up to rev 1.7, as was RELENG_2_2 was incorrectly set at. END K 10 svn:author V 5 peter K 8 svn:date V 27 1997-12-20T12:45:39.000000Z K 7 svn:log V 77 Merge rev 1.8 and 1.9 from HEAD (fix ipv6 official names and add SKIP names) END K 10 svn:author V 6 eivind K 8 svn:date V 27 1997-12-20T16:44:51.000000Z K 7 svn:log V 62 Remove bogus #ifdef INET - SLIP doesn't compile without INET. END K 10 svn:author V 3 sef K 8 svn:date V 27 1997-12-20T18:34:49.000000Z K 7 svn:log V 65 Add a copyright and license statement, at the request of Jordan. END K 10 svn:author V 3 sef K 8 svn:date V 27 1997-12-20T18:36:02.000000Z K 7 svn:log V 57 Add a copyright and license notice, on Jordan's request. END K 10 svn:author V 3 sef K 8 svn:date V 27 1997-12-20T18:40:43.000000Z K 7 svn:log V 134 Add some copyright and license terms, at Jordan's request. Note that syscall.h just refers to another file for the copyright notice. END K 10 svn:author V 5 wosch K 8 svn:date V 27 1997-12-20T18:46:09.000000Z K 7 svn:log V 715 Added builtin decompression using zlib library, option -Z. Enabled this new feature with the makefile variable GREP_LIBZ. If you don't like it, compile with `make GREP_LIBZ='. grep + zlib has several advantages: - the shell script zgrep(1) will be basically a one line exec grep -Z "$@" - no shell script, no bugs. The current zgrep implementations have many bugs and some grep options are no supported. - no shell script, no security risks. - it is a magnitude faster than a shell script Also fixed: 0 -> STDIN_FILENO Close a file descriptor only if the open call was successfully. It does not hurt for the open(2) function, but the gzclose(3) function died in free() to free up (not) allocated memory. END K 10 svn:author V 5 wosch K 8 svn:date V 27 1997-12-20T18:54:22.000000Z K 7 svn:log V 36 Added a sparc category to the list. END K 10 svn:author V 5 wosch K 8 svn:date V 27 1997-12-20T19:20:33.000000Z K 7 svn:log V 81 Added zgrep.libz. This version of zgrep(1) depend on a grep(1) linked with libz. END K 10 svn:author V 3 bde K 8 svn:date V 27 1997-12-20T21:36:58.000000Z K 7 svn:log V 476 Don't attempt to print the statistics for a "clean" preened filesystem when there isn't even a filesystem. Attempting to print them tended to cause SIGSEGV or SIGFPE depending on how far setup() got before it returned 0. This was broken in the previous revision by removing a return statement that the previous case depended on falling into. PR: 4840 (fixed by this commit) PR: 2537 (possibly fixed by Lite2 merge and later changes. setup() does more checking now) END K 10 svn:author V 3 bde K 8 svn:date V 27 1997-12-20T22:24:32.000000Z K 7 svn:log V 389 Fixed style bugs in the printing of statistics after preening. Use floating point better in the percentage calculation there to avoid overflow when there are more than about 20 million fragments. Start using floating point in the other percentage calculation to avoid overflow when there are more than about 2 million fragments. Fixed printf format strings. Converted sccsid to rcsid. END K 10 svn:author V 8 jraynard K 8 svn:date V 27 1997-12-20T22:29:55.000000Z K 7 svn:log V 71 Year 2000 fixes for groff PR: 4930 Submitted by: Stephen J. Roznowski END K 10 svn:author V 8 jraynard K 8 svn:date V 27 1997-12-20T22:31:37.000000Z K 7 svn:log V 77 Year 2000 fixes PR: 4930 Submitted by: Stephen J. Roznowski END K 10 svn:author V 8 jraynard K 8 svn:date V 27 1997-12-20T22:40:58.000000Z K 7 svn:log V 107 Merge revision 1.4 from head (a number of keyboard fixes). Requested by: Goris Davy END K 10 svn:author V 5 joerg K 8 svn:date V 27 1997-12-20T23:03:49.000000Z K 7 svn:log V 265 Protect against a null pointer dereferencation in the case of an unknown drive. Such a drive will be configured by worm(4) nevertheless (albeit with a warning), but cannot be opened except of the SCSI control device (so scsi(8) or cdrecord will continue to work). END K 10 svn:author V 5 joerg K 8 svn:date V 27 1997-12-20T23:05:14.000000Z K 7 svn:log V 192 Duplicate the entry for the Plasmon CD-R device, so both possibilities (read/only and write/once) will be covered. This is necessary in order to fill in the proper device information record. END K 10 svn:author V 3 bde K 8 svn:date V 27 1997-12-21T00:00:44.000000Z K 7 svn:log V 196 Fixed overflow in chkrange(). Some out of bounds block numbers, e.g. -1, were not detected. Use a bulletproof check that doesn't depend on special properties of the args or the limit. PR: 3528 END K 10 svn:author V 5 brian K 8 svn:date V 27 1997-12-21T01:07:13.000000Z K 7 svn:log V 109 Cosmetic: Remove blank lines, add .Pp where necessary. Submitted by: Theo de Raadt END K 10 svn:author V 5 brian K 8 svn:date V 27 1997-12-21T01:21:40.000000Z K 7 svn:log V 57 Correct the "how to find out if the line is up" example. END K 10 svn:author V 5 brian K 8 svn:date V 27 1997-12-21T02:11:48.000000Z K 7 svn:log V 109 Allow leading whitespace before '#' when identifying comments. Submitted by: Dave Bodenstab END K 10 svn:author V 5 brian K 8 svn:date V 27 1997-12-21T02:27:32.000000Z K 7 svn:log V 103 Zero struct sockaddr_??s before filling them in. Suggested by: Theo de Raadt END K 10 svn:author V 5 brian K 8 svn:date V 27 1997-12-21T02:34:27.000000Z K 7 svn:log V 70 Mention that leading whitespace is ignored when identifying comments. END K 10 svn:author V 5 brian K 8 svn:date V 27 1997-12-21T02:37:49.000000Z K 7 svn:log V 73 Cosmetic: Tidy up. Submitted by: Theo de Raadt END K 10 svn:author V 5 brian K 8 svn:date V 27 1997-12-21T03:16:19.000000Z K 7 svn:log V 116 Allow multiple (comma seperated) devices on the "set device" line. Submitted by: Derek Inksetter END K 10 svn:author V 5 brian K 8 svn:date V 27 1997-12-21T03:41:23.000000Z K 7 svn:log V 128 Cosmetic: Test for comment lines after the lenght has been established. Pointed out by: Theo de Raadt END K 10 svn:author V 3 cwt K 8 svn:date V 27 1997-12-21T08:31:50.000000Z K 7 svn:log V 94 Remove private install rule in favor of INTERNALLIB and INTERNALSTATICLIB. Suggested by: bde END K 10 svn:author V 5 dyson K 8 svn:date V 27 1997-12-21T10:41:19.000000Z K 7 svn:log V 41 I added vfs_ioopt prematurely, disabled. END K 10 svn:author V 5 brian K 8 svn:date V 27 1997-12-21T12:11:13.000000Z K 7 svn:log V 29 Add (BSD) copyright headers. END K 10 svn:author V 6 eivind K 8 svn:date V 27 1997-12-21T13:42:27.000000Z K 7 svn:log V 70 Remove unused private include files from slattach. Submitted by: bde END K 10 svn:author V 5 brian K 8 svn:date V 27 1997-12-21T14:28:24.000000Z K 7 svn:log V 106 Charles Mott created these (and told me via email that they were BSD copyright). Use his name, not mine. END K 10 svn:author V 6 eivind K 8 svn:date V 27 1997-12-21T15:35:22.000000Z K 7 svn:log V 49 Remove unused private header. Submitted by: max END K 10 svn:author V 3 max K 8 svn:date V 27 1997-12-21T15:40:11.000000Z K 7 svn:log V 35 Typo fix in the message displayed. END K 10 svn:author V 3 max K 8 svn:date V 27 1997-12-21T15:41:56.000000Z K 7 svn:log V 15 MFC: typo fix. END K 10 svn:author V 3 bde K 8 svn:date V 27 1997-12-21T16:35:12.000000Z K 7 svn:log V 127 Moved some declarations from to the correct places, and fixed everything that depended on them being misplaced. END K 10 svn:author V 5 wosch K 8 svn:date V 27 1997-12-21T19:15:12.000000Z K 7 svn:log V 183 When called as `zgrep', the -Z argument is assumed. Make a link from zgrep to grep. Pointed out by: Tim Vanderhoek and Mike Smith END K 10 svn:author V 5 joerg K 8 svn:date V 27 1997-12-21T21:40:02.000000Z K 7 svn:log V 463 Properly clean out the SI_MOUNTEDON flag iff the mount attempt fails half the way down. Otherwise, further attempts to mount the device will be rejected with BUSY. IMHO, this flag can completely go away for cd9660. There's no reason you need to prevent CDs from being mounted multiple times, and in case of multisession CDs it can even make sense to mount two different sessions by the same time (to different mount points, otherwise it would be pointless ;). END K 10 svn:author V 5 dyson K 8 svn:date V 27 1997-12-22T00:36:48.000000Z K 7 svn:log V 149 Hopefully fix the problem with the TLB not being updated correctly. Problem tracked down by bde@freebsd.org, but this is an attempted efficient fix. END K 10 svn:author V 5 brian K 8 svn:date V 27 1997-12-22T02:28:18.000000Z K 7 svn:log V 43 Don't forget to ntohs(sin.sin_port) (DUH!) END K 10 svn:author V 8 charnier K 8 svn:date V 27 1997-12-22T07:35:40.000000Z K 7 svn:log V 27 Use .Tn, .Bx Free and .An. END K 10 svn:author V 8 charnier K 8 svn:date V 27 1997-12-22T07:37:50.000000Z K 7 svn:log V 85 Remove obsolete /etc/hostname.ep? reference. PR: kern/5310 Submitted by: tom@sdf.com END K 10 svn:author V 5 dyson K 8 svn:date V 27 1997-12-22T10:06:09.000000Z K 7 svn:log V 48 Correct my previous fix for the UPAGES problem. END K 10 svn:author V 5 dyson K 8 svn:date V 27 1997-12-22T11:48:13.000000Z K 7 svn:log V 22 Improve my copyright. END K 10 svn:author V 5 dyson K 8 svn:date V 27 1997-12-22T11:54:00.000000Z K 7 svn:log V 22 Improve my copyright. END K 10 svn:author V 6 eivind K 8 svn:date V 27 1997-12-22T13:46:08.000000Z K 7 svn:log V 47 Remove unused include files Submitted by: bde END K 10 svn:author V 4 ache K 8 svn:date V 27 1997-12-22T19:11:28.000000Z K 7 svn:log V 33 Fix sysctl path /usr/sbin->/sbin END K 10 svn:author V 2 jb K 8 svn:date V 27 1997-12-22T19:39:20.000000Z K 7 svn:log V 263 Reviewed by: William LeFebvre Change errno -> error in local structure to avoid a clash with the thread-aware version of errno which is required for a thread-safe libc. Have discussed this with the author and he has agreed to this change. 8-) END K 10 svn:author V 4 alex K 8 svn:date V 27 1997-12-22T23:00:35.000000Z K 7 svn:log V 9 YTK fix. END K 10 svn:author V 4 alex K 8 svn:date V 27 1997-12-23T01:40:40.000000Z K 7 svn:log V 113 Removed unnecessary setting of 'error' -- binding to a privileged port by a non-root user always returns EACCES. END K 10 svn:author V 8 charnier K 8 svn:date V 27 1997-12-23T07:15:39.000000Z K 7 svn:log V 44 MFC: Use Pa for files and Ar for arguments. END K 10 svn:author V 8 charnier K 8 svn:date V 27 1997-12-23T07:18:29.000000Z K 7 svn:log V 31 MFC: Use err(3). Silent -Wall. END K 10 svn:author V 8 charnier K 8 svn:date V 27 1997-12-23T07:20:16.000000Z K 7 svn:log V 24 MFC: Mdoc'ify man page. END K 10 svn:author V 8 charnier K 8 svn:date V 27 1997-12-23T07:25:07.000000Z K 7 svn:log V 56 MFC: Use .Nm ktrace instead of .Nm in SYNOPSIS section. END K 10 svn:author V 8 charnier K 8 svn:date V 27 1997-12-23T07:26:55.000000Z K 7 svn:log V 32 MFC: Use .Tn, .Bx Free and .An. END K 10 svn:author V 8 charnier K 8 svn:date V 27 1997-12-23T07:28:34.000000Z K 7 svn:log V 90 MFC: Remove obsolete /etc/hostname.ep? reference. PR: kern/5310 Submitted by: tom@sdf.com END K 10 svn:author V 6 yokota K 8 svn:date V 27 1997-12-23T08:01:16.000000Z K 7 svn:log V 37 Document `flags' for the psm driver. END K 10 svn:author V 6 yokota K 8 svn:date V 27 1997-12-23T08:04:38.000000Z K 7 svn:log V 596 - Added support for a new MouseMan model (4 buttons, no wheel). Based on the report from Dave Bodenstab. - Turn off PnP COM device enumeration procedure if the user explicitly specifies a protocol type with the "-t" option. - Accept "-t auto". Now the user may entirely omit the "-t" option in the command line, or specify "-t auto" in order to make moused detect an appropriate protocol type automatically. In the previous version, moused did so only if the "-t" option is absent in the command line. ("-t auto" won't disable PnP COM device enumeration.) - Updated the man page. END K 10 svn:author V 4 nate K 8 svn:date V 27 1997-12-23T16:32:35.000000Z K 7 svn:log V 669 This patch causes the "calltodo" timer list to be decremented by the amount of time that the laptop was suspending. Thus, select() calls that might have suspended rather than firing at 1hr + "time suspended" since the timer was posted. Adding: options APM_FIXUP_CALLTODO to the kernel config enables the patch. [ This patch was slightly modified to use a consistant indent style and I removed some unused local variables. After this has been tested a few weeks we'll make the options the default, so for now I'm now documenting it in LINT. Mike can later if he wants. ] Reviewed by: Mike Smith Submitted by: Ken Key END K 10 svn:author V 5 brian K 8 svn:date V 27 1997-12-23T19:44:45.000000Z K 7 svn:log V 136 Add a PARITITON arg to SCSI_MKFIXED, and use it to specify RAW_PART for the suopen() in sscioctl(). Now you can `scsi -f /dev/ssc -p'. END K 10 svn:author V 3 jkh K 8 svn:date V 27 1997-12-23T21:05:55.000000Z K 7 svn:log V 52 /etc/sysconfig -> /etc/rc.conf Submitted by: chein END K 10 svn:author V 5 brian K 8 svn:date V 27 1997-12-23T22:38:55.000000Z K 7 svn:log V 159 strncpy(x,y,sizeof(x)) --> strncpy(x,y,sizeof(x)-1) Suggested by: Philippe Charnier Theo de Raadt END K 10 svn:author V 3 imp K 8 svn:date V 27 1997-12-24T00:57:41.000000Z K 7 svn:log V 115 Be extra paranoid about trusting the size of the address returned from gethostbyaddr. Submitted by: Julian Assange END K 10 svn:author V 3 imp K 8 svn:date V 27 1997-12-24T00:58:39.000000Z K 7 svn:log V 100 Be extra paranoid about trusting the length returned by gethostbyaddr. Submitted by: Julian Assange END K 10 svn:author V 3 imp K 8 svn:date V 27 1997-12-24T00:59:02.000000Z K 7 svn:log V 32 Minor style nit noticed by bde. END K 10 svn:author V 4 alex K 8 svn:date V 27 1997-12-24T00:59:28.000000Z K 7 svn:log V 142 Added cross references for apm, cron, inetd, lpd, moused, mrouted, nfsd, nfsiod, portmap, rpc.lockd, rpc.statd, syslogd, tickadj, and ypbind. END K 10 svn:author V 3 imp K 8 svn:date V 27 1997-12-24T00:59:49.000000Z K 7 svn:log V 84 Two fixes: 1) Correct strncpy usage 2) gethostbyaddr paranoia from Julian Assange END K 10 svn:author V 3 imp K 8 svn:date V 27 1997-12-24T01:00:24.000000Z K 7 svn:log V 112 Be extra paranoid about trusting the length of the data returned by gethostbyaddr. Submitted by: Julian Assange END K 10 svn:author V 4 nate K 8 svn:date V 27 1997-12-24T01:33:45.000000Z K 7 svn:log V 97 - Add prototype for adjust_timeout_calltodo(). Submitted/forgotten by: Ken Key END K 10 svn:author V 5 brian K 8 svn:date V 27 1997-12-24T09:28:11.000000Z K 7 svn:log V 112 Use sizeof cftypes128 for NCFTYPES128 macro, not sizeof cftypes ! Lucky that sizeof cftypes < sizeof cftypes128 END K 10 svn:author V 5 brian K 8 svn:date V 27 1997-12-24T09:29:17.000000Z K 7 svn:log V 122 Cosmetic (style): sizeof(var) -> sizeof var sizeof type -> sizeof(type) Suggested by: J Wunsch END K 10 svn:author V 3 jkh K 8 svn:date V 27 1997-12-24T10:16:49.000000Z K 7 svn:log V 46 Put the dir file in the correct distribution. END K 10 svn:author V 5 brian K 8 svn:date V 27 1997-12-24T10:28:38.000000Z K 7 svn:log V 65 Correct copyright. Requested by: Eivind Eklund END K 10 svn:author V 5 wosch K 8 svn:date V 27 1997-12-24T11:44:14.000000Z K 7 svn:log V 83 Small bugfix: store $uid_start instead hard coded value 1000 in /etc/adduser.conf. END K 10 svn:author V 4 ache K 8 svn:date V 27 1997-12-24T12:31:32.000000Z K 7 svn:log V 783 snprintf return value fixes to conform Single Unix specs: 1) if buffer size is smaller than arguments size, return buffer size, not arguments size as before. 2) if buffer size is 0, return 0, not EOF as before. (now it is compatible with Linux and Apache implementations too). NOTE: Single Unix specs says: If the value of n {buffer size} is zero on a call to snprintf(), an unspecified value less than 1 is returned. It means we can't return EOF since EOF can take *any* value in general not especially < 1. Better variant will be return -1 (it is less then 1 and different with n == 1 case) but -1 value is already occuped by EOF in our implementation, so we can't distinguish true IO error in that case. So 0 here is only possible case still conforming to Single Unix specs. END K 10 svn:author V 4 ache K 8 svn:date V 27 1997-12-24T13:17:13.000000Z K 7 svn:log V 245 Remove wrong comment about snprintf: "return the number of bytes needed, rather the number used" According to Single Unix specs: Upon successful completion, these functions return the number of bytes transmitted excluding the terminating null END K 10 svn:author V 4 ache K 8 svn:date V 27 1997-12-24T13:47:13.000000Z K 7 svn:log V 181 Fix snprintf(...%n...) to pass not more than buffer size to %n agrument, old variant always assume infinite buffer. %n is for actually transmitted characters, not for planned ones. END K 10 svn:author V 4 ache K 8 svn:date V 27 1997-12-24T14:32:40.000000Z K 7 svn:log V 526 Back out part related to "return 0 if n == 0" and return EOF as before. The main argument is that it is impossible to determine if %n evaluated or not when snprintf return 0, because it can happens for both n == 0 and n == 1. Although EOF here is good indication of the end of process, if n is decreased in the loop... Since it is already supposed in many places that EOF *is* negative, f.e. from Single Unix specs for snprintf "return ... a negative value if an output error was encountered" this not makes situation worse. END K 10 svn:author V 5 dyson K 8 svn:date V 27 1997-12-24T15:05:25.000000Z K 7 svn:log V 118 Support running with inadequate swap space. Additionally, the code will complain with a suggestion of increasing it. END K 10 svn:author V 3 imp K 8 svn:date V 27 1997-12-24T18:56:03.000000Z K 7 svn:log V 71 Use snprintf rather than printf out of paranoia Obtained from: OpenBSD END K 10 svn:author V 3 imp K 8 svn:date V 27 1997-12-24T18:58:07.000000Z K 7 svn:log V 22 MFC:sprintf->snprintf END K 10 svn:author V 3 imp K 8 svn:date V 27 1997-12-24T19:13:23.000000Z K 7 svn:log V 109 Various sprintf -> snprintf fixes. Minor style fix (strcpy(foo,"") -> *foo = '\0') Obtained from: OpenBSD(?) END K 10 svn:author V 3 imp K 8 svn:date V 27 1997-12-24T19:13:49.000000Z K 7 svn:log V 22 MFC:sprintf->snprintf END K 10 svn:author V 3 imp K 8 svn:date V 27 1997-12-24T19:21:09.000000Z K 7 svn:log V 151 sprintf->snprintf paranoia. The one thing that looks like a hole in the diff is in an ifdef that isn't enabled for FreeBSD. Obtained from: OpenBSD(?) END K 10 svn:author V 3 imp K 8 svn:date V 27 1997-12-24T19:23:18.000000Z K 7 svn:log V 22 MFC:sprintf->snprintf END K 10 svn:author V 3 imp K 8 svn:date V 27 1997-12-24T19:38:18.000000Z K 7 svn:log V 118 Be extra paranoid about the length of data returned from gethostbyaddr or gethostbyname. Submitted by: Julian Assange END K 10 svn:author V 3 imp K 8 svn:date V 27 1997-12-24T19:39:57.000000Z K 7 svn:log V 54 sprintf->snprintf paranoia Obtained from: OpenBSD (?) END K 10 svn:author V 4 ache K 8 svn:date V 27 1997-12-24T20:24:08.000000Z K 7 svn:log V 570 1) Oops! Insert again if (n == 0) return 0. Final word is Bruce's quote: C9x specifies the BSD4.4-Lite behaviour: [#3] ... Thus, the null-terminated output has been completely written if and only if the returned value is less than n. It means that if we not have any null-terminated output as for n == 0 we can't return value less than n, so we forced to return value equal to n i.e. 0 The next good thing is glibc compatibility, of course. 2) Do check for too big n in machine-independent way. 3) Minor optimization assuming EOF is < 0 END K 10 svn:author V 4 ache K 8 svn:date V 27 1997-12-24T23:02:47.000000Z K 7 svn:log V 292 Return back to BSD snprintf semantics which recent C9x standard adopts instead of Singe Unix, thanx Bruce for explaining, I am not realize standards war was there. But now, fix n == 0 case to not return error and fix check for too big n. Things left to do: check for overflow in arguments. END K 10 svn:author V 4 ache K 8 svn:date V 27 1997-12-24T23:23:18.000000Z K 7 svn:log V 176 1) Restore back comment about snprintf() 2) Optimize string buffer copy to call memcpy() and update pointers only for count > 0, it makes snprintf(NULL, 0, ...) more efficient END K 10 svn:author V 4 ache K 8 svn:date V 27 1997-12-24T23:54:19.000000Z K 7 svn:log V 58 Correct type of stored argument place (from previous fix) END K 10 svn:author V 4 ache K 8 svn:date V 27 1997-12-25T00:32:17.000000Z K 7 svn:log V 81 Add overflow checks: if output size becomes bigger than INT_MAX, just return EOF END K 10 svn:author V 4 alex K 8 svn:date V 27 1997-12-25T04:21:08.000000Z K 7 svn:log V 61 Removed unnecessary initialization of hp in gethostbyaddr_r. END K 10 svn:author V 4 alex K 8 svn:date V 27 1997-12-25T05:07:20.000000Z K 7 svn:log V 218 Changed pthread_detach to conform to POSIX, i.e. the single argument provided is of type pthread_t instead of pthread_t *. PR: 4320 Return EINVAL instead of ESRCH if attempting to detach an already detached thread. END K 10 svn:author V 6 julian K 8 svn:date V 27 1997-12-25T05:54:24.000000Z K 7 svn:log V 48 Add a man page for REMOVING devices from devfs. END K 10 svn:author V 2 dg K 8 svn:date V 27 1997-12-25T06:57:36.000000Z K 7 svn:log V 353 The spl fixes in in_setsockaddr and in_setpeeraddr that were meant to fix PR#3618 weren't sufficient since malloc() can block - allowing the net interrupts in and leading to the same problem mentioned in the PR (a panic). The order of operations has been changed so that this is no longer a problem. Needs to be brought into the 2.2.x branch. PR: 3618 END K 10 svn:author V 3 jkh K 8 svn:date V 27 1997-12-25T07:57:43.000000Z K 7 svn:log V 38 MFC: -R support for ports collection. END K 10 svn:author V 4 hoek K 8 svn:date V 27 1997-12-25T09:36:42.000000Z K 7 svn:log V 155 Use consistent spelling, writeable -> writable (recall prior debate over this? :-) initialise -> initialize recognise -> recognize Merry Christmas! :) END K 10 svn:author V 7 gpalmer K 8 svn:date V 27 1997-12-25T13:14:21.000000Z K 7 svn:log V 89 Make kern.ncpu reports the number of detected processors when running with a SMP kernel. END K 10 svn:author V 5 dyson K 8 svn:date V 27 1997-12-25T20:55:15.000000Z K 7 svn:log V 58 The ioopt code is still buggy, but wasn't fully disabled. END K 10 svn:author V 3 jkh K 8 svn:date V 27 1997-12-25T23:08:44.000000Z K 7 svn:log V 8 Add -lz END K 10 svn:author V 3 jkh K 8 svn:date V 27 1997-12-26T00:17:28.000000Z K 7 svn:log V 16 Nuke info dist. END K 10 svn:author V 3 jkh K 8 svn:date V 27 1997-12-26T00:19:23.000000Z K 7 svn:log V 60 DISTRIBUTION is bin (we'll make the info dist another way). END K 10 svn:author V 5 wosch K 8 svn:date V 27 1997-12-26T01:53:58.000000Z K 7 svn:log V 65 Do not install the z*grep man pages if grep was linked with -lz. END K 10 svn:author V 4 alex K 8 svn:date V 27 1997-12-26T03:24:26.000000Z K 7 svn:log V 56 Put the return value of getopt into an int, not a char. END K 10 svn:author V 4 hoek K 8 svn:date V 27 1997-12-26T05:29:29.000000Z K 7 svn:log V 116 "This is the add^H^H^Hinfo module." Pedantic comment fix. PR: bin/5188 Submitted by: Alex [3]garbanzo@hooked.net END K 10 svn:author V 4 hoek K 8 svn:date V 27 1997-12-26T05:35:08.000000Z K 7 svn:log V 32 MFC: comment fix PR: bin/5188 END K 10 svn:author V 6 helbig K 8 svn:date V 27 1997-12-26T12:26:43.000000Z K 7 svn:log V 76 For regular files the sticky bit is ignored, but the user can still set it. END