summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Xref clocks(7).joerg1996-04-057-6/+13
|
* Added a note about the return value. Its been so long I can'tjmacd1996-04-051-0/+19
| | | | remember who suggested the 'caveat' section. Sorry.
* Remove outdated (and never quite correct anyway) reference to thepeter1996-04-031-4/+0
| | | | "fact" that pipes were implemented as calls to socketpair().
* Xref sysexits(3).joerg1996-03-311-1/+7
|
* stat() before open() because opening of special files may be harmful.bde1996-03-291-0/+10
|
* Back out one of my previous changes: don't clear PARODD,ache1996-03-281-1/+1
| | | | so return to absolute minimum of changed flags now
* cfmakeraw:ache1996-03-271-2/+2
| | | | | | clear PARODD bit too, help user program to set its own parity via | Set CREAD bit, it is 99% case
* Added missing section numbers to a bunch of .Xr macros, ormpp1996-03-2732-64/+69
| | | | | converted them into .Fn macros where appropriate. Also fixed up some minor formatting problems.
* Removed now-bogus casts that were to hide the inconsistency between thebde1996-03-271-4/+4
| | | | | | | nonstandard normal version and the standard threaded version. Removed a bogus L in a constant. fpos_t's aren't longs, and casting to fpos_t would be verbose.
* Fixed bogus cross references.bde1996-03-272-5/+5
| | | | Reviewed by: mpp
* Say what happens to the buffer when fgets() returns NULL.bde1996-03-271-6/+11
| | | | Fixed bogus cross references and a misordered line.
* 8bit clean fixesache1996-03-251-3/+5
|
* Convert int to uchar range for ctypeache1996-03-251-0/+1
|
* Remove half-dancing solution for signed chars to help findingache1996-03-252-20/+6
| | | | POSIXly-incorrect programs.
* Remove half-dancing solution for signed chars to help findingache1996-03-251-10/+2
| | | | POSIXly-incorrect programs.
* Since n is int now, sanity check must be n <= 0, not simple n == 0ache1996-03-251-1/+1
|
* Make libdisk C++ aware:joerg1996-03-246-137/+147
| | | | | | | - add __BEGIN_DECLS and __END_DECLS, - add a bunch of ``const'' qualifiers all over the place, - rename the `private' struct member into `private_data' to avoid the clash with the C++ keyword.
* Fix incorrect parameter types.paul1996-03-242-2/+2
|
* Don't bother trying to flock() /var/run/ypbind.lock; this breaks whenwpaul1996-03-231-21/+14
| | | | | | | | | | | | | | | | | | /var/run resides on an NFS filesystem (flock() always returns 0 in this case, so we falsely assume that ypbind is dead and bail out). Settle instead for better failure checking when using clnttcp_create() and clnt_call() to interact with ypbind. We still try to flock() /var/yp/binding/$DOMAINNAME.2, but if this doesn't work, we drop into the code that retrieves the binding information from ypbind directly. If that also fails, then we're toast. On NFS filesystems, this means we'll be ignoring the binding file for no reason and always talking to ypbind even though we don't have to, but at least things will work. (I could just replace the flock(/var/run/ypbind.lock) check with an RPC call to ypbind's NULLPROC procedure, but if the flock() of the binding file doesn't pan out we're going to try to talk to ypbind later anyway. *sigh* Is NFS file locking ever going to work?)
* Fix other half of problem reported in PR #1079: _getnetbynisaddr() iswpaul1996-03-231-12/+41
| | | | | | | | | | | | | | | | | broken. The translation from network number to ASCII string was not working correctly (you would sometimes get things like 0.244.0.0 instead of 244.0.0). Also copied results of yp_match() to a static buffer for consistency with gethostbynis.c. Note: _getnetbynisaddr() chops off trailing .0's, i.e. 244.0.0 is truncated to 244. By contrast, getnetbyht.c code (for local /etc/networks lookups) leaves the traling .0's in place. This means that the NIS and local file lookups will match different things when looking up the same network number. I'm not sure which is the correct behavior. (I think the DNS lookup code tries all combinations -- should the NIS and local host lookup routines do that too?)
* The 4.4-lite vfprintf counted the %# hex prefix and the sign infenner1996-03-201-8/+6
| | | | | | | | the precision; ANSI X3J11 is not crystal clear but certainly says that the precision specifies the number of /digits/, and signs and "0x" aren't really digits. NetBSD already has a similar patch.
* keep the libc_r makefiles in step with those from libcjulian1996-03-202-6/+8
| | | | | | There needs to be a better way of doing this.. preferably we could add another pass to the normal libc makefiles to do _r versions as well as _p versions
* Fix yp_all() so that it doesn't bogusly return YP_NOMORE at the endwpaul1996-03-191-4/+5
| | | | | | | | | | | | | | | | of a successful map retrieval. (This has to do with a previous change to xdr_ypresp_all_seq() and ypxfr_get_map(); originally, yp_all() would look for a return value of YP_FALSE to signal success, but now it should be looking for YP_NOMORE. It should not be passing YP_NOMORE back up to the caller though.) Noticed by: <aagero@aage.priv.no> There is also another small bug here, which is that the call to xdr_free() that happens immediately after the clnt_call() in yp_all() clobbers the return status value. I've worked around this for now, but I think the xdr_free() is actually bogus and should be removed. I want to check some more before I do that though.
* alarm -> ualarm.bde1996-03-191-2/+3
|
* Updated a type to match Lite2's fixed-width type changes.bde1996-03-191-2/+6
| | | | | | Added $Id$. Obtained from: 4.4BSD-Lite2
* Add libdisk.joerg1996-03-181-1/+2
|
* Fix bogus MLINKS line. When is the old libdisk going to go away, BTW?jkh1996-03-181-2/+1
|
* libdisk is now `adult':joerg1996-03-172-1/+353
| | | | | | . install libdisk.h into /usr/include . add a (preliminary) manpage, mostly featured after phk's comments in libdisk.h
* Work around a bug in the Sun rpc code. This fixes a problem whereguido1996-03-171-4/+12
| | | | | | | a machine with aliase ip addresses on the same subnet of an interfaces' `real' ip addresses would generate <n> duplicate broadcasts in clnt_broadcast(). Basically, this fix does a purge on the list of bradcast addresses.
* Repository copy src/release/libdisk to src/lib/libdisk as per recentpeter1996-03-171-0/+1
| | | | | | | | | | discussion on -core about disk partitioning tools etc. Add NOPIC=yes to Makefile to prevent any possibility of version mismatch because of the potential grave consequences. (as suggested by phk) Note that this is also on RELENG_2_1_0, since the sysinstall stuff is hopefully going to remain in sync.
* gethostbynis.c:wpaul1996-03-162-8/+19
| | | | | | | | | | | | | | | | | | - Fix problem described in PR #1079: _gethostbynisaddr() doesn't work. Make it accept the same arguments as all the other gethostby*addr() functions and properly convert the supplied IP address into a text string so that yp_match() can find it in the hosts.byaddr map. - Also fix potential memory leak: copy the results of yp_match() to a static buffer and free the result (yp_match() returns dynamically allocated memory). ether_addr.c: - Since I was in the neighborhood, fix ether_ntohost() and ether_hostton() so that they don't bogusly for a free(result) when yp_match() fails.
* From Lite2: proc and file LIST changeshsu1996-03-112-8/+10
|
* From Lite2: rename fs to vfs.hsu1996-03-111-1/+1
|
* From Lite2: rename fs to vfs.hsu1996-03-112-2/+2
|
* Implemented negative caching on uid/gid lookup failures. This won'tdg1996-03-051-14/+20
| | | | | | matter much on some systems, but on ftp servers (like wcarchive) where you run with special stripped group and pwd.db files in the anonymous ftp /etc, this can be a major speedup for ls(1).
* Update the current sigaction(2) man page to current reality..peter1996-03-031-5/+19
| | | | | | * sigstack(2) -> sigaltstack(2). * Document the SA_NODEFER flag * Document the SA_RESETHAND flag
* Close PR#218. Don't reference non-existant dbm(3) and ndbm(3) manualjkh1996-03-031-4/+4
| | | | pages.
* Update the docs after the rename of SA_DISABLE and SA_ONSTACK when used forpeter1996-03-021-3/+3
| | | | | | ss_flags to SS_DISABLE and SS_ONSTACK. SA_ONSTACK is still used in struct sigaction. Nowhere in our entire source tree could I find a single place these were used.
* If the send() to the AF_UNIX socket to the syslogd fails, attempt topeter1996-03-021-18/+56
| | | | | | | | reconnect once using the saved openlog() parameters. This helps one of the system startup race conditions. If syslogd takes too long to get going, some daemons can fail the connection and forever log to the console even though the syslogd is running. That is ..unfortunate..
* Document the int -> size_t change to the m* syscallspeter1996-03-024-4/+4
|
* Convert "time zone" to "timezone" in section NAMEwosch1996-02-281-1/+1
| | | | Submitted by: brien@cs.ucdavis.edu (David E. O'Brien)
* Fix conflicts and merge into mainlinepst1996-02-2716-25286/+724
|
* This commit was generated by cvs2svn to compensate for changes in r14272,pst1996-02-2735-1081/+26814
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import updated Berkeley DB into CSRG branchpst1996-02-2746-1680/+27446
| |
| * recording cvs-1.6 file deathpeter1995-12-30233-49856/+0
| |
| * This commit was manufactured by cvs2svn to create branch 'CSRG'.cvs2svn1995-06-2723-0/+1448
| |
* | Don't trash %ebp.bde1996-02-251-2/+2
| | | | | | | | Obtained from: NetBSD
* | move stat behind open to cover corner casepst1996-02-251-2/+8
| |
* | Add minherit.2 to Makefile.. (oops, forgot it before)peter1996-02-241-1/+2
| |
* | If the two recently added sysctl variables exist, use those rather thanpeter1996-02-243-22/+51
| | | | | | | | | | | | | | the statically compiled PS_STRINGS and USRSTACK variables. This prevents programs using setproctitle from coredumping if the kernel VM is increased, and stops libkvm users (w, ps, etc) from needing to be recompiled if only the VM layout changes.
OpenPOWER on IntegriCloud