summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Don't give up just because we cant find the blkdev that correspondsphk1996-10-274-8/+12
| | | | to the name given as a chardev.
* improve comments for UT_NAMESIZEwosch1996-10-272-3/+7
|
* setuid back to the original caller immediately after opening the route socket.fenner1996-10-271-14/+19
| | | | | | | | | | | | | | | | | Opening the socket is the only privileged operation route requires. Make a couple of static buffers bigger, and use strncpy() and snprintf() where there's a chance of overflow. Fixes PR bin/1903 Partially Submitted by: Ollivier Robert <roberto@keltia.freenix.fr> Don't look up the network number if we're being asked to add a host route. Fixes PR bin/1900 Submitted by: Bruce A. Mah <bmah@cs.berkeley.edu> (pr bin/1900)
* $@ -> "$@", now ``mkdep "foo bar".c'' works.wosch1996-10-271-5/+6
| | | | | | | Do not exit with status 0 if mkdep(1) cannot create output, e.g. if .depend is not writable or the FS is readonly mounted. Store arguments as comments for debugging purpose.
* fix perl indention stylewosch1996-10-271-13/+11
|
* Move static variable nextpid out from fork1(). Now top(1) can printwosch1996-10-271-2/+3
| | | | last pid value.
* (reverse) sync with src/lib/libtcl/Makefile rev 1.9wosch1996-10-271-11/+22
| | | | | | | | | >Do not make symbolic links from obj directory into source tree, >it may break `make reinstall'. Use cp(1). > >Simplify Makefile. Requested by: Peter
* Add rudimentry support for ifconfig'ing aliases at boot. Also allowpeter1996-10-272-3/+25
| | | | start_if.<if> to do all the work instead if so configured. With examples.
* lpc/cmds.c:imp1996-10-2710-38/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From NetBSD via OpenBSD to fix NetBSD PR #506 More descriptive message for printer status (OpenBSD: 1.2) Various warnings cleaned up (OpenBSD: 1.4) lpc/lpc.c: Various warnings cleaned up (OpenBSD: 1.3) lpd/lpd.c: Remove trailing blank lines (OpenBSD: 1.2) Potential umask problem with creating /dev/printer (OpenBSD: 1.4 and 1.5) Ftp bounce attack (untested on FreeBSD) (OpenBSD: 1.6, 1.8, 1.9) Fencepost in strncpy (OpenBSD: 1.6) lpd/printjob.c: Fix from freebsd for waiting for an exiting filter, that appears not in the FreeBSD CVS tree. (OpenBSD: 1.6) lpd/recvjob.c: Buffer overflow protection: use strncpy rather than strcpy. (OpenBSD: 1.3) lpr/lpr.c: NetBSD change of return type for main() (OpenBSD: 1.2) Restrict time running as root (OpenBSD: 1.7) Use getcwd rather than getwd (from NetBSD) Use snprintf rather than sprintf (OpenBSD: 1.8) Minor tweak to end of loop and buffer overflow sanity. card() overflow already in FreeBSD (OpenBSD: 1.9) lptest/lptest.c: void -> int return type of main, from NetBSD via OpenBSD (OpenBSD: 1.2) pac/pac.c: void -> int return type of main, from NetBSD via OpenBSD (OpenBSD: 1.3) Obtained from: OpenBSD
* Do not make symbolic links from obj directory into source tree,wosch1996-10-261-233/+73
| | | | | | it may break `make reinstall'. Use cp(1). simplify makefile
* Fix an off-by-one error in getvfsent().joerg1996-10-261-1/+1
| | | | Detected by: phkmalloc :)
* Use the calibrated/adjustable i8254 frequency `timer_freq' instead ofsos1996-10-263-69/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TIMER_FREQ. Fixed missing splx() in scrn_timer(). The bug was harmless because of the undocumented behaviour that the ipl is automatically restored for timeout functions (see softclock()). Perhaps we should depend on this behaviour. Fixed the ddb fix in rev.1.176. The in_debugger flag was no use because it only works when the debugger is entered via the keyboard hotkey. The debugger may be entered for breakpoints and traps, and the console putc routine has no way of knowing when it was, so the console putc routine must (almost?) always remove the cursor image. Not fixed: console switching in ddb doesn't work (ISTR it working), and console 0 shouldn't be switched to for the debugger hotkey unless console 0 is /dev/console. Fixed side effects from calling add_keyboard_randomness() in the console getc routine by not calling it. add_keyboard_randomness() currently always reenables interrupts on 386's and 486's. This is very bad if the console getc routine is called from the debugger and the debugger was entered with interrupts disabled. Fixed preservation of initial screen and now-bogus comment about it. It was broken by setting the initial scr_buf to `buffer' instead of Crtat. `buffer' was full of nulls and the first scroll cleared everything above the things written through syscons. Submitted by: bruce (bde@freebsd.org)
* Note that streams are now flushed on abort.alex1996-10-261-2/+2
| | | | Change standards section to reflect POSIX 1003.1-1990 conformance.
* First round of moving secure telnet (AKA kerberised telnet) to its new homemarkm1996-10-2628-154/+272
| | | | | in eBones/. Peter has already (ages ago) done the repository copy. These are mainly -Wall cleanups. The makefile changes will follow in a day or so.
* Apparently this patch fixes the objc backend on the i386 platforms.peter1996-10-261-0/+7
| | | | | | | Without this, compiled programs die with FP errors. This is originally credited to: jlemon@netcom.com (Jonathan Lemon), and has been forwarded to me by quite a few of people.
* Replace hardcoded length of "/dev/" with strlen(_PATH_DEV).alex1996-10-261-1/+1
| | | | Pointed out by: bde
* Update this to match my version.phk1996-10-262-24/+21
|
* Various cosmeticsphk1996-10-261-48/+28
| | | | | | Improve chances of troublefree 64bit operation. [imp] Noticed by: Warner Losh <imp@village.org>
* sprintf --> snprintfalex1996-10-261-3/+4
| | | | | | Use _PATH_DEV instead of hard coded "/dev/" Obtained from: OpenBSD, Jason Downs <downsj@OpenBSD.ORG>
* POSIX requires stdio buffers be flushed on abort.alex1996-10-261-0/+8
| | | | Obtained from: OpenBSD, Thorsten Lockert <tholo@OpenBSD.ORG>
* Fix transcription error I introduced in last patch. This created aimp1996-10-261-2/+2
| | | | | | fencepost error that would run one off the end of the buffer. Noticed by: Bruce Evans
* Removed initialization of a variable that went away. Oops.bde1996-10-265-25/+15
|
* Allow the specification of a mountpoint, and resolve it s disk devicejoerg1996-10-254-4/+64
| | | | | | | | using the fstab. Closes PR bin/129. Submitted by: jmg@nike.efn.org (John-Mark Gurney)
* Fix a problem where the command line could be used to overflow a stackimp1996-10-251-2/+2
| | | | | | | | buffer which could be made to lead to a root shell. This patch is OpenBSD's solution to the problem, and will silently truncate the output rather than overflow the buffer. Obtained from: OpenBSD
* Don't allow reassembly to create packets bigger than IP_MAXPACKET, and countfenner1996-10-255-8/+32
| | | | | | | | | attempts to do so. Don't allow users to source packets bigger than IP_MAXPACKET. Make UDP length and ipovly's protocol length unsigned short. Reviewed by: wollman Submitted by: (partly by) kml@nas.nasa.gov (Kevin Lahey)
* Declare pointers to signal handling functions in full instead of asbde1996-10-253-8/+6
| | | | sig_t's so that <sys/signal.h> isn't a prerequisite.
* Give ypxfr the ability to detect the presence of the YP_INTERDOMAINwpaul1996-10-254-7/+91
| | | | | | | | | and YP_SECURE flags so that it can properly add them to newly created maps when needed. This applies only when using the 'standard' method for map transfers. When using rpc.ypxfrd, the whole map is copied verbatim, along with any special entries that may be encoded in it. Also made -Wall a little quieter for ypxfrd_getmap.c.
* Removed unused #includes.bde1996-10-251-14/+14
| | | | | | | | Strength-reduced used #include. Staticized pcaintr(). Fixed some style bugs.
* Use the same format for the "expect N shift reduce conflicts" messagebde1996-10-251-1/+1
| | | | | as in the one other place in /usr/src that prints such an "expect" message (amd).
* Made this work for non-root again. The security fixes in rev.1.11bde1996-10-251-10/+15
| | | | | were equivalent to disabling its setgid'ness, since the default kernel was not distinguished from a user-specified kernel.
* Restored order of cuac above ttyc.bde1996-10-252-56/+60
| | | | | | | | | Fixed some style bugs for cua* and tty*. Removed superfluous chmod for consolectl. FIxed a tiny security bug for perfmon and changed the style for perfmon to match the style of the non-std devices.
* Build intermediate object files for mkinit, mknodes and mksyntaxbde1996-10-251-6/+19
| | | | | | | | so that simple regresssion tests based on `cmp' work. mkdep still doesn't work right for these tools. They should probably be in separate directories. Sorted dependencies.
* Improved comment about `all' target.bde1996-10-251-16/+15
| | | | Use a for loop instead of massive duplication in the build-tools target.
* Use macros from timmerreg.h instead of private ones.bde1996-10-252-56/+14
| | | | | | | | Use global timer_freq instead of private TIMER_CLK. Removed unused #includes. Fixed some comments.
* Print the clock calibration messages all on one (long) line again sobde1996-10-255-105/+90
| | | | | | | | that they are easy to grep for. Removed now-unused i586 counter variables. Fixed some style bugs.
* Improved biasing of i586 clock by adjusting for hardclock() latency.bde1996-10-255-105/+130
| | | | | | | | | | | | | | | | | | | | | I decided to do this for every hardclock() call instead of lazily in microtime(). The lazy method is simpler but has more overhead if microtime() is called a lot. CPU_THISTICKLEN() is now a no-op and should probably go away. Previously it did nothing directly but had the side effect of setting i586_last_tick for CPU_CLOCKUPDATE() and i586_avg_tick for debugging. CPU_CLOCKUPDATE() now uses a better method and i586_avg_tick is too much trouble to maintain. Reduced nesting of #includes in the usual case. Increased nesting of #includes when CLOCK_HAIR is defined. This is a kludge to get typedefs for inline functions only when the inline functions are used. Normally only kern_clock.c defines this. kern_clock.c can't include the i386 headers directly. Removed unused LOCORE support.
* Removed #include of <machine/clock.h>. It is no longer used, and wouldbde1996-10-251-2/+1
| | | | | | break when I remove LOCORE support from clock.h. I586_CTR_MULTIPLIER_SHIFT = 32 from clock.h is actually still used, but 32 is so magic that it doesn't get used explicitly.
* Added Michael Butschky <butsch@computi.erols.com>, to the additionalmax1996-10-251-1/+2
| | | | contributor list.
* Unremoved used #include of <sys/systm.h> for the !GUPROF case.bde1996-10-251-1/+4
|
* Moved #include of <sys/types.h> earlier so that this compiles whenbde1996-10-252-10/+14
| | | | | | <stdio.h> doesn't (bogusly) include <sys/types.h>. Cleaned up #includes.
* - KNF cleanup.gibbs1996-10-251-170/+143
| | | | - Add support for memory mapped I/O.
* - KNF cleanup.gibbs1996-10-254-1457/+1100
| | | | | | | | | | | | | | | | - Add support for memory mapped I/O. - Use DMA to get SCBs down to the adapters. - Remove old paging code. - Be much smarter about how we allocate SCB space. The old, simple method wasted almost half a page per SCB. Ooops. - Make command complete interrupt processing more efficient. - Break the monolithic ahc_intr into sub-routines. The sub-routines handle rare, special case events so the function call is not a penalty and the removal of the code from the main routine most likely improves performance instruction prefech will work better and less code is pushed into the cache. - Never, ever allow tagged queueing if a device has disconnection disabled. - Clean up and simplify timeout code. Many of the changes are to handle the new DMA scheme.
* KNF cleanup.gibbs1996-10-251-64/+64
| | | | Update to handle new arg to ahc_alloc.
* Go back to using DMA to get SCBs down to the adapter.gibbs1996-10-252-356/+485
| | | | | | | | | | SCB paging is now handled almost entirely by the sequencer and also uses DMA. This should make SCB paging at least an order of magnitude more efficient and vastly simplifies the implementation. Add a few space optimizations so this code still fits on aic7770 chips. Update comments.
* Change recently added diagnostics to more descriptiveache1996-10-251-8/+8
|
* Added a missing break, so all static bins would be missed :(sos1996-10-241-1/+2
|
* Add support for handling the YP_SECURE and YP_INTERDOMAIN keys fromwpaul1996-10-245-20/+164
| | | | | | | | | | | | any maps that may have them. If the YP_SECURE key is present, ypserv will only allow access to the map from clients on reserved ports. If the YP_INTERDOMAIN key is present, the server will do DNS lookups for hostnames that it can't find in hosts.byname or hosts.byaddr. This is the same as the -d flag (which is retained for backwards compatibility) but it can be set on a per-map/per-domain basis. Also modified /var/yp/Makefile to add YP_INTERDOMAIN to the hosts.* maps and YP_SECURE to master.passwd.* maps by default.
* Fix the dependancies.markm1996-10-241-8/+9
| | | | | Thanks Andrey! Submitted by: ache
* Fix this so that dependancies work properly.markm1996-10-241-13/+10
| | | | | Thanks Andrey! Submitted by: ache
* If errors occur during the loading of the shared libraries required byjdp1996-10-242-20/+60
| | | | | | | | | | | | | the main program, report them directly from the dynamic linker and die there, rather than returning an error message to crt0.o. This enables the printing of error messages even for old executables, whose version of crt0.o is not able to print them. This fix closes PR bin/1869. The code in crt0.o for printing error messages from the dynamic linker is no longer used, because of this change. But it must remain, for backward compatibility with older dynamic linkers.
OpenPOWER on IntegriCloud