summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Apply patch to properly sscanf(3) when there is whitespace in the formatobrien1998-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
* Use unsigned chars instead of signed chars when extracting bits of thedfr1998-09-231-1/+1
| | | | inet address.
* Use 8k pagesize on alpha, not 4k.dfr1998-09-231-1/+5
|
* Include "stand.h", not <stand.h>.jkh1998-09-211-1/+1
|
* Allocate disk buffers using a custom allocator. The standard allocator ↵dfr1998-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 :-(.
* Use a simple version of inet_ntoa(). The libc one uses inet_ntop which is toodfr1998-09-201-0/+65
| | | | complicated.
* Back out part of previous commit (even though it's technically correct).alex1998-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.
* Change the devstat generation number from an int to a long. The int-sizedken1998-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>
* Correctly back out of free if a recursive call into malloc.c is detected.alex1998-09-191-8/+7
| | | | | | Set malloc_func *after* grabbing the thread lock. Noticed by: Simon Coggins <simon@oz.org>
* Nuke prototype for strerror, consumers get it from <string.h>msmith1998-09-182-4/+2
| | | | Fix overlooked nullopen() implementation.
* Path arguments to *_open functions should be const, but we were manglingmsmith1998-09-189-74/+54
| | | | | | them. Submitted by: write-protected text segment in BTX
* Remove scsi_da.c from the list of things compiled into the CAM library.ken1998-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
* Simplify implementation and eliminate a register preservation problem.luoqi1998-09-182-48/+20
| | | | Reviewed by: Bruce Evans <bde@zeta.org.au>
* Fix some error message format problems in checkversion() and getversion().ken1998-09-181-8/+35
| | | | Reported By: bde
* s/yellow pages/NIS/phk1998-09-171-3/+2
| | | | | | PR: 7949 Reviewed by: phk Submitted by: Norihiro Kumagai <kuma@jp.freebsd.org>
* libscsi is obsoleted by CAM.gibbs1998-09-175-1652/+2
|
* Fix some Alpha portability problems, and add some belt-and-suspendersken1998-09-161-9/+44
| | | | | | | checking in some functions. Submitted by: dfr Modified by: ken
* Adjust the declarations of kvm_read and kvm_write to match reality a littledfr1998-09-161-2/+2
| | | | closer.
* Change to a code sequence which is more likely to work on SMP systems.dfr1998-09-162-40/+16
| | | | Now all I need is an alpha SMP box to port FreeBSD to :-)
* Sort table and descriptions.jkoshy1998-09-161-7/+7
| | | | Pointed out by: bde
* Replace memory leaking instances of realloc with non-leaking reallocf.imp1998-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...
* o Don't reference non-existant function freealloc.imp1998-09-161-4/+4
| | | | | | o Properly order things Pointed out by: bde
* Fix style problems noted by Bruce:imp1998-09-162-8/+35
| | | | | | o No copyright on reallocf. o Order makefile list correctly. o indent reallocf properly.
* Bump minor version number and add version.c to update to version 0.4fenner1998-09-151-3/+7
| | | | PR: bin/7877
* Don't initialize NIS until it is really necessary. Now, in case of networkdt1998-09-151-55/+71
| | | | | | or NIS server problems, local user can login without a pause. Also, -Wsomething cleanup.
* (this is an extract from src/share/examples/atm/README)phk1998-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.
* Turn off replies to ICMP echo requests for broadcast and multicastjkoshy1998-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>
* Remove references to the "od" device.gibbs1998-09-152-5/+3
|
* Hook up libcam and libdevstat.gibbs1998-09-151-4/+4
|
* Add new files for HARP3phk1998-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).
* Device statistics library. Used by iostat, vmstat, and systat togibbs1998-09-154-0/+1755
| | | | | | format and analyze the output of the new device statistics sysctls. Submitted by: "Kenneth D. Merry" <ken@FreeBSD.org>
* I hate late night commits. These should be nuked from the atticy bygibbs1998-09-154-0/+0
| | | | the CVS meister.
* CAM userland utility library, a replacement for libscsi.gibbs1998-09-158-0/+1774
| | | | Submitted by: "Kenneth D. Merry" <ken@FreeBSD.org>
* Remove (wrong) OBJFORMAT setting.msmith1998-09-151-6/+1
|
* Replace accidentally-deleted `x' which caused warnx() to misbehave.wollman1998-09-151-2/+2
|
* Correct a typo that I noticed.jkoshy1998-09-151-1/+1
|
* o use strncpy safelyimp1998-09-141-3/+8
| | | | | | | o Only allow options and domain name to be set when we aren't running setuid. Obtained from: OpenBSD
* Add reallocf to the library. This function is simliar to realloc, butimp1998-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
* Fix a cut 'n paste mistake.luoqi1998-09-132-8/+8
|
* Don't clobber errno if we are not going to fail.dt1998-09-131-1/+4
|
* Don't lock newfd if it is not opened.dt1998-09-131-3/+14
| | | | PR: 5961
* In libc_r, rename vfork syscall to _thread_sys_vfork and make vfork an aliasdt1998-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.
* Document the fact that shutdown(2) is expected to comply with Posix.1g,wollman1998-09-121-3/+20
| | | | when it happens.
* Change return type of strptime from const char* to char*.dt1998-09-122-5/+5
| | | | const char* was wrong and nonstandard.
* A small last-minute iitem for 3.0:wollman1998-09-122-84/+124
| | | | | | | | | - Fix some style errors I made back in 1995. - Add a new flavor of the err(3) family, which takes an explicit errno argument rather than implicitly examining errno. This will make it easier to use these functions in conjunction with modern library interfaces that return an errno value explicitly.
* Use ellipsis in synopsis.jkoshy1998-09-121-2/+6
| | | | Requested by: bde
* Define PBUFSIZ in terms of MAXPATHLEN rather than hard coding it toimp1998-09-111-4/+5
| | | | | | 512. Obtained, I think, from: OpenBSD
* $@ -> ${.TARGET}imp1998-09-112-35/+35
|
* $* -> ${.PREFIX}imp1998-09-111-1/+1
|
* Remove definition of malloc and realloc. Instead include stdlib.h.imp1998-09-111-5/+4
|
OpenPOWER on IntegriCloud