summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Document that we will core-dump on getting a NULL pointer.Eivind Eklund1998-09-281-0/+4
| | | | Notes: svn path=/head/; revision=39716
* Bring the man page more or less up to date with the code.Dag-Erling Smørgrav1998-09-261-23/+54
| | | | Notes: svn path=/head/; revision=39694
* Don't cast int pointers to long pointers when reading labels fromDoug Rabson1998-09-261-6/+9
| | | | | | | /etc/disktab. Notes: svn path=/head/; revision=39684
* /usr/lib/compat -> /usr/lib/compat/aoutJordan K. Hubbard1998-09-261-2/+2
| | | | | | | | This change will need to be reviewed just as soon as we start generating ELF compat libs, but for now it does the right thing for a.out libs. Notes: svn path=/head/; revision=39674
* * Enable old UFS compatibility code for booting from Digital Unix formattedDoug Rabson1998-09-266-7/+46
| | | | | | | | | | disks. * Fix a whole raft of warnings, printf and otherwise. * Make zalloc work for alpha (just a case of using the right typedef). * Add some (disabled) malloc debug printing to stand.h. Notes: svn path=/head/; revision=39672
* Fixed setting of mp_End in zextendPool(). A case was missing and mp_SizeMatthew Dillon1998-09-261-2/+3
| | | | | | | no longer reflects the mp_End - mp_Base equivalent. Notes: svn path=/head/; revision=39666
* Replace the old and extremely icky Mach/NetBSD allocator with a similarlyMike Smith1998-09-2613-338/+1118
| | | | | | | | | | | | | | | | | | | | compact and much better one donated by Matt Dillon. Implement a simple sbrk() which uses the existing setheap() api. Remove the custom allocator from the UFS code. It wasn't working quite right, and it shouldn't be needed with the new allocator. Fix a serious problem with changing the value of already-existent environment variables. Don't attempt to modify the supposedly-const argument to putenv() Fix an off-by-one sizing error in the zipfs code detected by the new allocator. Submitted by: zmalloc from Matt Dillon <dillon@backplane.com> Notes: svn path=/head/; revision=39665
* Apply patch to properly sscanf(3) when there is whitespace in the formatDavid E. O'Brien1998-09-251-7/+2
| | | | | | | | | | | | | | | | string. From the submitted patch: Credit for patch: Chris Torek <torek@bsdi.com> Tod Miller <millert@openbsd.org> This makes us in line with SunOS 4.1.3_U1, Solaris 2.6, OpenBSD 2.3, HP-UX 10.20, Irix 5.3. The previous behavior was in line with Ultrix 4.4. PR: bin/7970 Submitted by: Niall Smart nialls@euristix.ie Notes: svn path=/head/; revision=39644
* Use unsigned chars instead of signed chars when extracting bits of theDoug Rabson1998-09-231-1/+1
| | | | | | | inet address. Notes: svn path=/head/; revision=39607
* Use 8k pagesize on alpha, not 4k.Doug Rabson1998-09-231-1/+5
| | | | Notes: svn path=/head/; revision=39606
* Include "stand.h", not <stand.h>.Jordan K. Hubbard1998-09-211-1/+1
| | | | Notes: svn path=/head/; revision=39536
* Allocate disk buffers using a custom allocator. The standard allocator ↵Doug Rabson1998-09-201-11/+45
| | | | | | | | | | fragments extremely badly if disk buffers are freed back into the main heap and the alpha bootstrap has a restricted address space which just ran out :-(. Notes: svn path=/head/; revision=39529
* Use a simple version of inet_ntoa(). The libc one uses inet_ntop which is tooDoug Rabson1998-09-201-0/+65
| | | | | | | complicated. Notes: svn path=/head/; revision=39528
* Back out part of previous commit (even though it's technically correct).Alexander Langer1998-09-201-1/+17
| | | | | | | | | | | | | | Our spinlock implementation allows a particular thread to obtain a lock multiple times, but release the lock with a single unlock call. Since we're detecting recursion, we know the lock is already owned by the current thread in a previous call and must not be released in the current call. This is really far too dependent on this particular spinlock implementation, so I've added commented out calls to THREAD_UNLOCK in the appropriate places. We can activate this code when spinlock is taught to count each lock operation. Notes: svn path=/head/; revision=39501
* Change the devstat generation number from an int to a long. The int-sizedKenneth D. Merry1998-09-203-23/+24
| | | | | | | | | | | | | generation was causing unaligned access faults on the Alpha. I have incremented the devstat version number, since this is an interface change. You'll need to recompile libdevstat, systat, iostat, vmstat and rpc.rstatd along with your kernel. Partially Submitted by: Andrew Gallatin <gallatin@cs.duke.edu> Notes: svn path=/head/; revision=39498
* Correctly back out of free if a recursive call into malloc.c is detected.Alexander Langer1998-09-191-8/+7
| | | | | | | | | Set malloc_func *after* grabbing the thread lock. Noticed by: Simon Coggins <simon@oz.org> Notes: svn path=/head/; revision=39491
* Nuke prototype for strerror, consumers get it from <string.h>Mike Smith1998-09-182-4/+2
| | | | | | | Fix overlooked nullopen() implementation. Notes: svn path=/head/; revision=39469
* Path arguments to *_open functions should be const, but we were manglingMike Smith1998-09-189-74/+54
| | | | | | | | | them. Submitted by: write-protected text segment in BTX Notes: svn path=/head/; revision=39468
* Remove scsi_da.c from the list of things compiled into the CAM library.Kenneth D. Merry1998-09-181-1/+1
| | | | | | | | | | | | | | | | | The functions that were being compiled into the library have been moved to scsi_all.c. One warning: Any programs using scsi_start_stop() or scsi_read_write() that included scsi_da.h but not scsi_all.h will need to be changed to include scsi_all.h. This doesn't affect camcontrol, and I don't think it affects any ports, but you never know. PR: kern/7969 Reviewed by: gibbs Notes: svn path=/head/; revision=39465
* Simplify implementation and eliminate a register preservation problem.Luoqi Chen1998-09-182-48/+20
| | | | | | | Reviewed by: Bruce Evans <bde@zeta.org.au> Notes: svn path=/head/; revision=39455
* Fix some error message format problems in checkversion() and getversion().Kenneth D. Merry1998-09-181-8/+35
| | | | | | | Reported By: bde Notes: svn path=/head/; revision=39451
* s/yellow pages/NIS/Poul-Henning Kamp1998-09-171-3/+2
| | | | | | | | | PR: 7949 Reviewed by: phk Submitted by: Norihiro Kumagai <kuma@jp.freebsd.org> Notes: svn path=/head/; revision=39408
* libscsi is obsoleted by CAM.Justin T. Gibbs1998-09-175-1652/+2
| | | | Notes: svn path=/head/; revision=39402
* Fix some Alpha portability problems, and add some belt-and-suspendersKenneth D. Merry1998-09-161-9/+44
| | | | | | | | | | checking in some functions. Submitted by: dfr Modified by: ken Notes: svn path=/head/; revision=39381
* Adjust the declarations of kvm_read and kvm_write to match reality a littleDoug Rabson1998-09-161-2/+2
| | | | | | | closer. Notes: svn path=/head/; revision=39353
* Change to a code sequence which is more likely to work on SMP systems.Doug Rabson1998-09-162-40/+16
| | | | | | | Now all I need is an alpha SMP box to port FreeBSD to :-) Notes: svn path=/head/; revision=39352
* Sort table and descriptions.Joseph Koshy1998-09-161-7/+7
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=39334
* Replace memory leaking instances of realloc with non-leaking reallocf.Warner Losh1998-09-1634-67/+70
| | | | | | | | | | | | | | In some cases replace if (a == null) a = malloc(x); else a = realloc(a, x); with simple reallocf(a, x). Per ANSI-C, this is guaranteed to be the same thing. I've been running these on my system here w/o ill effects for some time. However, the CTM-express is at part 6 of 34 for the CAM changes, so I've not been able to do a build world with the CAM in the tree with these changes. Shouldn't impact anything, but... Notes: svn path=/head/; revision=39327
* o Don't reference non-existant function freealloc.Warner Losh1998-09-161-4/+4
| | | | | | | | | o Properly order things Pointed out by: bde Notes: svn path=/head/; revision=39325
* Fix style problems noted by Bruce:Warner Losh1998-09-162-8/+35
| | | | | | | | | o No copyright on reallocf. o Order makefile list correctly. o indent reallocf properly. Notes: svn path=/head/; revision=39322
* Bump minor version number and add version.c to update to version 0.4Bill Fenner1998-09-151-3/+7
| | | | | | | PR: bin/7877 Notes: svn path=/head/; revision=39295
* Don't initialize NIS until it is really necessary. Now, in case of networkDmitrij Tejblum1998-09-151-55/+71
| | | | | | | | | or NIS server problems, local user can login without a pause. Also, -Wsomething cleanup. Notes: svn path=/head/; revision=39283
* (this is an extract from src/share/examples/atm/README)Poul-Henning Kamp1998-09-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | =================================== HARP | Host ATM Research Platform =================================== HARP 3 What is this stuff? ------------------- The Advanced Networking Group (ANG) at the Minnesota Supercomputer Center, Inc. (MSCI), as part of its work on the MAGIC Gigabit Testbed, developed the Host ATM Research Platform (HARP) software, which allows IP hosts to communicate over ATM networks using standard protocols. It is intended to be a high-quality platform for IP/ATM research. HARP provides a way for IP hosts to connect to ATM networks. It supports standard methods of communication using IP over ATM. A host's standard IP software sends and receives datagrams via a HARP ATM interface. HARP provides functionality similar to (and typically replaces) vendor-provided ATM device driver software. HARP includes full source code, making it possible for researchers to experiment with different approaches to running IP over ATM. HARP is self-contained; it requires no other licenses or commercial software packages. HARP implements support for the IETF Classical IP model for using IP over ATM networks, including: o IETF ATMARP address resolution client o IETF ATMARP address resolution server o IETF SCSP/ATMARP server o UNI 3.1 and 3.0 signalling protocols o Fore Systems's SPANS signalling protocol What's supported ---------------- The following are supported by HARP 3: o ATM Host Interfaces - FORE Systems, Inc. SBA-200 and SBA-200E ATM SBus Adapters - FORE Systems, Inc. PCA-200E ATM PCI Adapters - Efficient Networks, Inc. ENI-155p ATM PCI Adapters o ATM Signalling Protocols - The ATM Forum UNI 3.1 signalling protocol - The ATM Forum UNI 3.0 signalling protocol - The ATM Forum ILMI address registration - FORE Systems's proprietary SPANS signalling protocol - Permanent Virtual Channels (PVCs) o IETF "Classical IP and ARP over ATM" model - RFC 1483, "Multiprotocol Encapsulation over ATM Adaptation Layer 5" - RFC 1577, "Classical IP and ARP over ATM" - RFC 1626, "Default IP MTU for use over ATM AAL5" - RFC 1755, "ATM Signaling Support for IP over ATM" - RFC 2225, "Classical IP and ARP over ATM" - RFC 2334, "Server Cache Synchronization Protocol (SCSP)" - Internet Draft draft-ietf-ion-scsp-atmarp-00.txt, "A Distributed ATMARP Service Using SCSP" o ATM Sockets interface - The file atm-sockets.txt contains further information What's not supported -------------------- The following major features of the above list are not currently supported: o UNI point-to-multipoint support o Driver support for Traffic Control/Quality of Service o SPANS multicast and MPP support o SPANS signalling using Efficient adapters This software was developed under the sponsorship of the Defense Advanced Research Projects Agency (DARPA). Reviewed (lightly) by: phk Submitted by: Network Computing Services, Inc. Notes: svn path=/head/; revision=39271
* Turn off replies to ICMP echo requests for broadcast and multicastJoseph Koshy1998-09-151-2/+6
| | | | | | | | | | | | | | | | addresses by default. Add a knob "icmp_bmcastecho" to "rc.network" to allow this behaviour to be controlled from "rc.conf". Document the controlling sysctl variable "net.inet.icmp.bmcastecho" in sysctl(3). Reviewed by: dg, jkh Reminded on -hackers by: Steinar Haug <sthaug@nethelp.no> Notes: svn path=/head/; revision=39267
* Remove references to the "od" device.Justin T. Gibbs1998-09-152-5/+3
| | | | Notes: svn path=/head/; revision=39252
* Hook up libcam and libdevstat.Justin T. Gibbs1998-09-151-4/+4
| | | | Notes: svn path=/head/; revision=39251
* Add new files for HARP3Poul-Henning Kamp1998-09-158-0/+1642
| | | | | | | | | Host ATM Research Platform (HARP), Network Computing Services, Inc. This software was developed with the support of the Defense Advanced Research Projects Agency (DARPA). Notes: svn path=/head/; revision=39232
* Device statistics library. Used by iostat, vmstat, and systat toJustin T. Gibbs1998-09-154-0/+1755
| | | | | | | | | format and analyze the output of the new device statistics sysctls. Submitted by: "Kenneth D. Merry" <ken@FreeBSD.org> Notes: svn path=/head/; revision=39211
* I hate late night commits. These should be nuked from the atticy byJustin T. Gibbs1998-09-154-0/+0
| | | | | | | the CVS meister. Notes: svn path=/head/; revision=39210
* CAM userland utility library, a replacement for libscsi.Justin T. Gibbs1998-09-158-0/+1774
| | | | | | | Submitted by: "Kenneth D. Merry" <ken@FreeBSD.org> Notes: svn path=/head/; revision=39209
* Remove (wrong) OBJFORMAT setting.Mike Smith1998-09-151-6/+1
| | | | Notes: svn path=/head/; revision=39203
* Replace accidentally-deleted `x' which caused warnx() to misbehave.Garrett Wollman1998-09-151-2/+2
| | | | Notes: svn path=/head/; revision=39202
* Correct a typo that I noticed.Joseph Koshy1998-09-151-1/+1
| | | | Notes: svn path=/head/; revision=39201
* o use strncpy safelyWarner Losh1998-09-141-3/+8
| | | | | | | | | | o Only allow options and domain name to be set when we aren't running setuid. Obtained from: OpenBSD Notes: svn path=/head/; revision=39194
* Add reallocf to the library. This function is simliar to realloc, butWarner Losh1998-09-143-13/+42
| | | | | | | | | | | | | | | | when it returns NULL to indicate failure, it will also free the memory that was passed to it, if that was non-null. This does not change the semantics of realloc. A second commit will be done to commit the conversion of those places in the code that can safely use this to avoid memory leaks when confronted with low memory situations. Beaten-to-death-but-finally-approved-in: -current Notes: svn path=/head/; revision=39191
* Fix a cut 'n paste mistake.Luoqi Chen1998-09-132-8/+8
| | | | Notes: svn path=/head/; revision=39140
* Don't clobber errno if we are not going to fail.Dmitrij Tejblum1998-09-131-1/+4
| | | | Notes: svn path=/head/; revision=39127
* Don't lock newfd if it is not opened.Dmitrij Tejblum1998-09-131-3/+14
| | | | | | | PR: 5961 Notes: svn path=/head/; revision=39124
* In libc_r, rename vfork syscall to _thread_sys_vfork and make vfork an aliasDmitrij Tejblum1998-09-129-9/+47
| | | | | | | | | | to fork. It is difficult to do real vfork in libc_r, since almost every operation with file descriptsor changes _thread_fd_table and friends. popen(3) works much better with this change. Notes: svn path=/head/; revision=39118
* Document the fact that shutdown(2) is expected to comply with Posix.1g,Garrett Wollman1998-09-121-3/+20
| | | | | | | when it happens. Notes: svn path=/head/; revision=39117