summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Nuke info dist.jkh1997-12-261-2/+0
|
* Add -lzjkh1997-12-252-4/+4
|
* The ioopt code is still buggy, but wasn't fully disabled.dyson1997-12-251-2/+3
|
* Make kern.ncpu reports the number of detected processors when runninggpalmer1997-12-251-1/+8
| | | | with a SMP kernel.
* Use consistent spelling,hoek1997-12-2510-19/+19
| | | | | | | | writeable -> writable (recall prior debate over this? :-) initialise -> initialize recognise -> recognize Merry Christmas! :)
* The spl fixes in in_setsockaddr and in_setpeeraddr that were meant todg1997-12-251-11/+17
| | | | | | | | | 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
* Add a man page for REMOVING devices from devfs.julian1997-12-251-0/+62
|
* Changed pthread_detach to conform to POSIX, i.e. the single argumentalex1997-12-254-31/+10
| | | | | | | | | 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.
* Removed unnecessary initialization of hp in gethostbyaddr_r.alex1997-12-251-3/+3
|
* Add overflow checks: if output size becomes bigger than INT_MAX,ache1997-12-251-2/+13
| | | | just return EOF
* Correct type of stored argument place (from previous fix)ache1997-12-242-4/+4
|
* 1) Restore back comment about snprintf()ache1997-12-241-7/+10
| | | | | 2) Optimize string buffer copy to call memcpy() and update pointers only for count > 0, it makes snprintf(NULL, 0, ...) more efficient
* Return back to BSD snprintf semantics which recent C9x standard adoptsache1997-12-243-21/+23
| | | | | | | | | | 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.
* 1) Oops! Insert again if (n == 0) return 0.ache1997-12-242-10/+10
| | | | | | | | | | | | | | | | | | | 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
* sprintf->snprintf paranoiaimp1997-12-241-4/+4
| | | | Obtained from: OpenBSD (?)
* Be extra paranoid about the length of data returned from gethostbyaddr orimp1997-12-241-2/+2
| | | | | gethostbyname. Submitted by: Julian Assange
* sprintf->snprintf paranoia. The one thing that looks like a hole inimp1997-12-241-7/+8
| | | | | the diff is in an ifdef that isn't enabled for FreeBSD. Obtained from: OpenBSD(?)
* Various sprintf -> snprintf fixes.imp1997-12-242-9/+12
| | | | | Minor style fix (strcpy(foo,"") -> *foo = '\0') Obtained from: OpenBSD(?)
* Use snprintf rather than printf out of paranoiaimp1997-12-245-9/+10
| | | | Obtained from: OpenBSD
* Support running with inadequate swap space. Additionally, the codedyson1997-12-242-8/+16
| | | | will complain with a suggestion of increasing it.
* Back out part related to "return 0 if n == 0" and return EOF as before.ache1997-12-242-6/+2
| | | | | | | | | | | 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.
* Fix snprintf(...%n...)ache1997-12-241-5/+9
| | | | | | 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.
* Remove wrong comment about snprintf:ache1997-12-241-5/+4
| | | | | | | | | "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
* snprintf return value fixes to conform Single Unix specs:ache1997-12-242-6/+16
| | | | | | | | | | | | | | | | | | | | 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.
* Small bugfix: store $uid_start instead hard coded value 1000wosch1997-12-241-2/+2
| | | | in /etc/adduser.conf.
* Correct copyright.brian1997-12-244-96/+12
| | | | Requested by: Eivind Eklund <perhaps@yes.no>
* Put the dir file in the correct distribution.jkh1997-12-241-0/+2
|
* Cosmetic (style):brian1997-12-2424-162/+165
| | | | | | | sizeof(var) -> sizeof var sizeof type -> sizeof(type) Suggested by: J Wunsch <j@uriah.heep.sax.de>
* Use sizeof cftypes128 for NCFTYPES128 macro, not sizeof cftypes !brian1997-12-241-2/+2
| | | | Lucky that sizeof cftypes < sizeof cftypes128
* - Add prototype for adjust_timeout_calltodo().nate1997-12-241-1/+5
| | | | Submitted/forgotten by: Ken Key <key@cs.utk.edu>
* Be extra paranoid about trusting the length of the data returned byimp1997-12-241-1/+1
| | | | | gethostbyaddr. Submitted by: Julian Assange
* Two fixes:imp1997-12-241-6/+8
| | | | | 1) Correct strncpy usage 2) gethostbyaddr paranoia from Julian Assange
* Added cross references for apm, cron, inetd, lpd, moused, mrouted,alex1997-12-241-1/+15
| | | | | nfsd, nfsiod, portmap, rpc.lockd, rpc.statd, syslogd, tickadj, and ypbind.
* Minor style nit noticed by bde.imp1997-12-241-2/+2
|
* Be extra paranoid about trusting the length returned by gethostbyaddr.imp1997-12-241-3/+3
| | | | Submitted by: Julian Assange
* Be extra paranoid about trusting the size of the address returned fromimp1997-12-241-2/+2
| | | | | gethostbyaddr. Submitted by: Julian Assange
* strncpy(x,y,sizeof(x)) --> strncpy(x,y,sizeof(x)-1)brian1997-12-236-16/+16
| | | | | Suggested by: Philippe Charnier <charnier@lirmm.fr> Theo de Raadt <deraadt@cvs.openbsd.org>
* Add a PARITITON arg to SCSI_MKFIXED, and use it tobrian1997-12-232-5/+10
| | | | | | specify RAW_PART for the suopen() in sscioctl(). Now you can `scsi -f /dev/ssc -p'.
* This patch causes the "calltodo" timer list to be decremented by the amountnate1997-12-235-7/+236
| | | | | | | | | | | | | | | | | | | | | | 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 <msmith@freebsd.org> Submitted by: Ken Key <key@cs.utk.edu>
* - Added support for a new MouseMan model (4 buttons, no wheel).yokota1997-12-232-6/+30
| | | | | | | | | | | | | 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.
* Document `flags' for the psm driver.yokota1997-12-233-3/+33
|
* Removed unnecessary setting of 'error' -- binding to a privileged portalex1997-12-231-2/+2
| | | | by a non-root user always returns EACCES.
* YTK fix.alex1997-12-222-5/+8
|
* Reviewed by: William LeFebvre <wnl@groupsys.com>jb1997-12-221-6/+6
| | | | | | | 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-)
* Fix sysctl path /usr/sbin->/sbinache1997-12-221-2/+2
|
* Remove unused include fileseivind1997-12-221-9/+3
| | | | Submitted by: bde
* Improve my copyright.dyson1997-12-221-11/+4
|
* Improve my copyright.dyson1997-12-221-9/+2
|
* Correct my previous fix for the UPAGES problem.dyson1997-12-222-10/+6
|
* Remove obsolete /etc/hostname.ep? reference.charnier1997-12-221-2/+4
| | | | | PR: kern/5310 Submitted by: tom@sdf.com
OpenPOWER on IntegriCloud