summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | rfork/minherit glue in libcpeter1996-02-234-7/+237
| | | | | | | | man pages adapted from OpenBSD's versions.
* | If a .db file is 0 length, initialize it as if it did not exist.pst1996-02-231-1/+2
| | | | | | | | Reviewed by: wollman
* | Add a dire warning about misusing the setlogin() system call. Be verypeter1996-02-231-1/+46
| | | | | | | | | | | | | | explicit that it is global to the entire "session", and that setsid() or daemon() are need to have been called at some point. The most notable offender of setlogin() misuse is XFree86's xdm.
* | Changed the dimensions of __CTOR_LIST__ and __DTOR_LIST__ from 0jdp1996-02-201-14/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | to 2. This makes them agree with the declarations in libgcc, and clears the way once again for linking c++rt0.o into all libraries, and eliminating CPLUSPLUSLIB from <bsd.lib.mk>. (I have not made that change yet, because there is still a bootstrapping problem for "make world".) Also, removed a check which ensured that the constructor count in the first word of __CTOR_LIST__ was greater than zero before traversing the list. I had added that check earlier, but it is no longer necessary, now that there is guaranteed to be at least 2 words in __CTOR_LIST__.
* | man page linkswosch1996-02-181-1/+3
| | | | | | | | | | | | | | fts_open.3 -> fts.3 fts_read.3 -> fts.3 fts_children.3 -> fts.3 fts_close.3 -> fts.3
* | Fix inet_network to not dump core if passed in an addressmpp1996-02-171-3/+1
| | | | | | | | | | | | with more than 4 octets (e.g. 1.2.3.4.5). Submitted by: Amy Baron <amee@beer.org> via NetBSD-bugs
* | Put in missing '_' in call to wrapper _thread_sys_sigsetmask() function.peter1996-02-172-6/+6
| |
* | Added a new module "uthread_autoinit.cc". This is a small C++ module.jdp1996-02-177-3/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It uses a static constructor to call _thread_init() at program start-up time. That eliminates the need for any initialization hooks in crt0.o. Added a symbol reference in "uthread_init.c", to ensure that the new module will always be pulled in when the archive version of the library is used. In "Makefile.inc", defined CPLUSPLUSLIB, so that the constructor will be properly invoked in the shared library. Suggested by: Christopher Provenzano, Peter Wemm, and others.
* | Removed "iso_addr.c" from the Makefile. Support for it has been removedjdp1996-02-171-1/+1
| | | | | | | | from the system, and a required include file no longer exists.
* | Corrected a couple of errors in the fts(3) manual page. The prototypejdp1996-02-151-2/+2
| | | | | | | | | | | | for "fts_open" was wrong. Also, the "fts_info" field of the FTSENT structure was misleadingly described as containing "flags". Actually, it contains a single integer value.
* | Fixed a bunch of man page cross references that werempp1996-02-1514-44/+45
| | | | | | | | | | | | | | | | in the main text of various man pages. Thanks to Warner Losh for adding an option to manck to allow it to scan the entire man page looking for bogus xrefs, instead of just checking the SEE ALSO section.
OpenPOWER on IntegriCloud