summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/pcvt/pcvt_sup.c
Commit message (Collapse)AuthorAgeFilesLines
* Part 3 of the pcvt/voxware revival.peter1999-01-011-0/+2216
| | | | Reviewed by: core
* Pre 3.0 branch cleanup casualty #4: pcvtphk1998-12-271-2216/+0
|
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()archie1998-12-041-1/+1
| | | | | | | | | | | | | | for possible buffer overflow problems. Replaced most sprintf()'s with snprintf(); for others cases, added terminating NUL bytes where appropriate, replaced constants like "16" with sizeof(), etc. These changes include several bug fixes, but most changes are for maintainability's sake. Any instance where it wasn't "immediately obvious" that a buffer overflow could not occur was made safer. Reviewed by: Bruce Evans <bde@zeta.org.au> Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Reviewed by: Mike Spengler <mks@networkcs.com>
* Eradicate the variable "time" from the kernel, using various measures.phk1998-03-301-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "time" wasn't a atomic variable, so splfoo() protection were needed around any access to it, unless you just wanted the seconds part. Most uses of time.tv_sec now uses the new variable time_second instead. gettime() changed to getmicrotime(0. Remove a couple of unneeded splfoo() protections, the new getmicrotime() is atomic, (until Bruce sets a breakpoint in it). A couple of places needed random data, so use read_random() instead of mucking about with time which isn't random. Add a new nfs_curusec() function. Mark a couple of bogosities involving the now disappeard time variable. Update ffs_update() to avoid the weird "== &time" checks, by fixing the one remaining call that passwd &time as args. Change profiling in ncr.c to use ticks instead of time. Resolution is the same. Add new function "tvtohz()" to avoid the bogus "splfoo(), add time, call hzto() which subtracts time" sequences. Reviewed by: bde
* Moved some #includes from <sys/param.h> nearer to where they are actuallybde1998-03-281-0/+2
| | | | used.
* Back out DIAGNOSTIC changes.eivind1998-02-061-2/+0
|
* Turn DIAGNOSTIC into a new-style option.eivind1998-02-041-0/+2
|
* Update for changes in the callout interface.gibbs1997-09-211-9/+18
|
* Fixed the type of timeout functions and removed casts that hid thebde1997-04-201-17/+15
| | | | | | | | | | | | | type mismatches. There was no problem in practice (at least on 386's). Don't cast NULL in calls to timeout functions. pcvt is fully prototyped and doesn't support K&R. Timeout functions take args of type `void *', so use magic numbers of type `void *' for UPDATE_* to reduce the danger of wrong conversions. Removed FreeBSD-pre-1.1-related TIMEOUT_FUNC_T macro. It was especially bogus for the pre-1.1 case.
* Updated #includes to 4.4Lite style.bde1996-09-101-1/+1
|
* Remove trailing whitespace.rgrimes1995-05-301-74/+74
|
* There have been a few occasions where some actions could dereferencejoerg1995-04-101-7/+11
| | | | | uninitialized tty pointers early during boot; it got very obvious when pressing Alt-F11 after a boot -c.
* Update pcvt to 3.20 b24joerg1995-04-081-8/+19
|
* Update to beta3.20/b22joerg1995-03-051-20/+61
| | | | pcvt_ioctl.h doesn't belong to here.
* Bring pcvt console driver into the tree - now users can chose whicheverjkh1995-02-051-0/+2151
console driver they like best (2 is ok, it was 4 that was a little insane for awhile there! :-). Submitted by: hm
OpenPOWER on IntegriCloud