summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Mark sockets where the kernel chose the port# for.phk1996-08-232-2/+5
| | | | This can be used by netstat to behave more intelligently.
* Another attempt at making multi-sector mode work.dyson1996-08-231-16/+35
|
* add FreeBSD Inc. to copyright stringwosch1996-08-221-1/+2
|
* Some cleanups to the callout lists recently added.julian1996-08-226-83/+135
| | | | | | | | 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
* Even though this looks like it, this is not a complex code change.dyson1996-08-2124-628/+583
| | | | | | | | | | | | | | | | | The interface into the "VMIO" system has changed to be more consistant and robust. Essentially, it is now no longer necessary to call vn_open to get merged VM/Buffer cache operation, and exceptional conditions such as merged operation of VBLK devices is simpler and more correct. This code corrects a potentially large set of problems including the problems with ktrace output and loaded systems, file create/deletes, etc. Most of the changes to NFS are cosmetic and name changes, eliminating a layer of subroutine calls. The direct calls to vput/vrele have been re-instituted for better cross platform compatibility. Reviewed by: davidg
* Add hooks for an IP NAT module, much like the firewall stuff...sos1996-08-215-23/+60
| | | | | Move the sockopt definitions for the firewall code from ip_fw.h to in.h where it belongs.
* Add /usr/sbin to sysctl because /usr/sbin not in standard pathache1996-08-213-9/+9
|
* Add #define's for RFC1716/RFC1812 new ICMP UNREACHABLE types.fenner1996-08-201-1/+4
| | | | Obtained from: LBL's tcpdump distribution
* Fix a minor style error in my code.smpatel1996-08-201-2/+2
|
* Sync rfork() flags up with OpenBSD.smpatel1996-08-201-7/+13
| | | | Suggested by: Theo de Raadt <deraadt@theos.com>
* Reran makesyscalls.sh after changing select()'s first argument to 'int'.smpatel1996-08-205-5/+5
|
* Remove the kernel FD_SETSIZE limit for select().smpatel1996-08-206-22/+61
| | | | | | Make select()'s first argument 'int' not 'u_int'. Reviewed by: bde
* having checked in the file I probably should check in the entry forjulian1996-08-201-0/+1
| | | | kern_shutdown.c if I want anyone to be able to compile a kernel
* oops apparently this wasn't in my test compile, becasue it didn'tjulian1996-08-191-3/+4
|
* Update to match definitions in LBL June 96 releasepst1996-08-191-10/+17
|
* Collect all the functioons concerned with rebooting into one placejulian1996-08-196-437/+22
| | | | | also add the at_shutdown callout list, and change the one user of the present (broken) method (the vn driver) to use the new scheme.
* for kern_conf.c, start allocating dynamic major numbersjulian1996-08-193-13/+17
| | | | | | | | | half way through the range rather than possibly colliding with fixed elements. Increase the size of the arrays to take this into account.. remember that each element in the array is now only 1 ponter so this isn't that much.. also note a possible bug in debugging code in uipc_socket2.c (add XXX)
* Add a protocol-specific mbuf flag.wollman1996-08-191-2/+3
|
* s/ETHER_MIN_LAN/ETHER_MIN_LEN/peter1996-08-191-1/+1
|
* fix handling of external objects referenced by mbufsjulian1996-08-192-28/+22
| | | | | somehow this got broken between 4.3 tahoe and here, though I've been using these fixes for over a year here..
* oops somehow this dissppeared along the way..julian1996-08-191-1/+3
| | | | now I've started working on this again, I discovered it..
* fix a broken atalk stack..julian1996-08-191-3/+16
| | | | | the lat commits (3 weeks ago ) broke this, and I'm only now getting complaints.. oops!
* add callout lists for exit() and fork()julian1996-08-192-2/+143
| | | | | | | | | | | | | | | I've been meaning to do this for AGES as I keep having to patch those routines whenever I write a proprietary package or similar.. any module that assigns resources to processes needs to know when these events occur. there are existsing modules that should be modified to take advantage of these.. e.g. SYSV IPC primatives presently have #ifdef entries in exit() this also helps with making LKMs out of such things.. (see the man pages at_exit(9) and at_fork(9))
* move all functions related to shutting down to one filejulian1996-08-192-1/+447
| | | | | | | | | | | | | | | | | | | | | | | called kern_shutdown.c note: I couldn't see anything machine dependant in the functions boot() and dumpsys() which were in machdep.c I have left a prototype for cpu_boot() which would go in machdep.c, but I have nothing to put in it. Iexpect others will let me know in no uncertain ways that this or that is machine dependant and should be there, but I'll way for that to happen.. :) I haven't actually taken the functions OUT of machdep or anywhere else yet.. I'm checking in this file so others can have a look at it and comment. SO PLEASE DO COMMENT! I am also (in another checkin) addinf a man(9) page for the new at_shotdown().. er freudian slip there.. at_shutdown() call so have a look at that (and at_exit and at_fork as well) and feed me comments.. I'll heck in the changes to make these (shutdown) changes active tomorrow if no-one objects too strongly..
* make the declaration of the __error() function C++ safe. Otherwise,peter1996-08-181-2/+5
| | | | | the linker comes up with undefined variables because of the #define errno when using _THREAD_SAFE.
* Add __unused to the list of __dead, __dead2, __pure, __pure2 etc.peter1996-08-181-2/+12
| | | | | | | | | | | | | | gcc-2.7 has __attribute__((unused)) as a postfix operator on function arguments to prevent -Wunused from complaining about them. gcc < 2.7 doesn't have anything like this (and doesn't care about it either). eg: int foo(bar, baz) int bar __unused; /* needed because of function pointer typing */ char *baz __unused; { return (1); }
* Accept odd length ipx packets. (Win95 and some dialup servers use it.)jhay1996-08-181-6/+10
| | | | Original idea submitted by: Atsushi Murai <amurai@spec.co.jp>
* Fix a couple of typos that sneaked in with Poul's ETHER_* mega-commit.joerg1996-08-181-2/+2
| | | | Reviewed by: phk
* Do not test_unit_ready() before starting the unit...joerg1996-08-171-7/+7
|
* restore nsccons variable from rev 1.115 that was deleted in rev 1.136peter1996-08-163-3/+6
| | | | | | during phk's staticize/cleanup commits. pstat needs it, the MAXCONS option is not visible anywhere else, and pstat uses it to find the bounds of the sccons[MAXCONS] array, which varies.
* Fix fdavail() so that correctly pays attention to the rlimit.smpatel1996-08-151-3/+5
| | | | | | | | Fixes unp_externalize panic which occurs when a process is at it's ulimit for file descriptors and tries to receive a file descriptor from another process. Reviewed by: wollman
* Add comment about fxp device (Intel EE Pro/100B).asami1996-08-153-3/+12
|
* Certain vnode buffer list operations were not being spl protected,dyson1996-08-152-2/+10
| | | | | and they needed to be. Brelse for example can be called at interrupt level, and the buffer list operations were not being protected from it.
* Fix a typo in the #define for PF_RTIP, even though I doubt it willjdp1996-08-151-2/+2
| | | | ever make one bit of difference to anybody.
* Submitted by: doug Rabson (dfr@render.com)julian1996-08-132-9/+13
| | | | | | | | | cleaning up some of the vnode usage.. (I'm sure it still needs more..) where can one find out what each vfs call expects to be locked on completion, and how can one find out what each layer expects to be freed on error.?
* Completely rewrite handling of protocol field for firewalls, things arepst1996-08-132-98/+45
| | | | | | | now completely consistent across all IP protocols and should be quite a bit faster. Discussed with: fenner & alex
* symlink support in devfs.julian1996-08-132-38/+96
| | | | | | | | | | | | | | it only barely works so don't get too carried away.. I noticed that teh symlink is length 0.. I guess I'll fix that tomorrow.. it also sometimes panics with "cleaned vnode isn't" but it's not more broken than it was before.. I really want to go over it with someone who understands the lifecycle of a vnode better than I do.. terry? kirk? david? john?
* Fix two minor oddities introduced by my yesterday's patches:joerg1996-08-122-9/+15
| | | | | | | | | . preserve a multi-char sequence in a small static buffer inside pccngetc(), so it won't be clobbered later (used to happen when breaking into DDB user Ctrl-Alt-ESC), and . simplify the ``keystroke is present'' determination in sgetc(), thus making pccncheck() actually working without waiting for a keystroke.
* Back out mistaken local change that sneaked in on the last commit.wollman1996-08-122-0/+80
|
* Don't declare the user_ldt functions unless USER_LDT is defined.wollman1996-08-124-84/+8
| | | | Eliminates an obnoxious warning.
* Convert to newly aded collate compare functionache1996-08-121-3/+3
|
* Extend the poll code so that it can periodically scan the host cardspeter1996-08-122-8/+22
| | | | | | | for work regardless of whether there was an interrupt. This needs more work, it should be able to run better when there are more than 3 host cards present, ie: all cards in polling-only mode with no IRQ. (The host cards have a choice of 3 irq's, 11, 12, or 15, or just polling)
* Add two more portrange sysctls, which control the area of the belowpeter1996-08-122-17/+52
| | | | | | | | IPPORT_RESERVED that is used for selection when bind() is told to allocate a reserved port. Also, implement simple sanity checking for all the addresses set, to make it a little harder for a user/sysadmin to shoot themselves in the feet.
* Use collate for alpha character rangesache1996-08-121-1/+4
|
* Apply my small patch to make detection of ATAPI CD-ROMs happen awpaul1996-08-121-3/+11
| | | | | | | | | | | | | | | | | | | | | little more reliably. So far I've received a couple of positive responses and no objections to these changes. There are two one-line changes: - In wdprobe(), when testing the error status of drives, don't unconditionally decide that there is no controller present if we read back a value of 0x81 (drive 0 okay, drive 1 failed) twice in a row. This may be caused by having an ATAPI CD-ROM jumpered as a master on the controller with no slave. - In wdgetctlr(), when checking for a status of WDCS_READY, check the value twice. The first time may be bogus. This stops a phantom wd2 device from being detected when an ATAPI CD-ROM is attached to the secondary controller alone as a slave. (This can cause installation to fail when sysinstall attempts to open the phantom device and wedges the system as a result. This has bitten me a couple of times on some Gateway 2000 machines.)
* Add support for i686 machine check trap.dg1996-08-118-13/+24
|
* Defined T_MCHK exception for i686; renumbered T_RESERVED to 29.dg1996-08-112-4/+6
|
* Fix many long-standing bugs and problems with pcvt, namely:joerg1996-08-104-19/+40
| | | | | | | | | | | | | | | | | | . make pccncheck() work even when interrupts are disabled, so the ``Press a key on the console...'' procedure will work, . make kernel colors #ifndef, so they can be overridden from the config file, . use shutdown_nice() instead of cpu_reset() if Ctrl-Alt-Del is enabled, . allow pccngetc() to return more than a single character, so the arrow keys will work (and thus visual UserConfig!), . fix a warning. This closes all know PRs related to pcvt, in particular #845, #1236, and #1265. PR #991 is a duplicate for 845, and PR #1283 has already been fixed earlier in rev 1.11 of pcvt_conf.h. Submitted by: Ulf Kieber (kieber@sax.de), for the kernel color fix
* Teach UserConfig about ANSI (DEC?) ``application mode'' arrow keyjoerg1996-08-101-3/+4
| | | | sequences (ESC O A, as opposed to ESC [ A).
* Finally implement a simple commandline history in DDB.joerg1996-08-101-2/+71
| | | | | | | | Emacs-style line editing has already been there (did anybody ever notice this? :), so i `only' had to add ^P and ^N. The approach is fairly minimalistic, with the advantage of keeping the bloat as small as 864 bytes of .text and 16 bytes of .bss, plus 10*120 bytes malloc'ed history buffer at the first use.
OpenPOWER on IntegriCloud