summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* `it's'' -> `its'' where appropriate and typo fixes in time2posix.3.eivind1997-05-192-3/+3
| | | | | | Closes PR docs/3612. Submitted by: Josh Gilliam <soil@quick.net>
* Now I really understand the reason for the style.9 rule about not havingpeter1997-05-191-14/+14
| | | | | | | visible type names in prototypes in user space headers. libutil.h generates warnings with -Wall over the use of "const char *ttyname". It's lucky it wasn't a #define conflict. Is a single '_' prefix acceptable? or does it need to be two?
* Update the nanosleep versions to set a SIGALRM handler while sleeping.peter1997-05-182-3/+18
| | | | | This appears to appease Apache, although depending on having sleep(3) changing the SIGALRM handler is a bit bogus.
* MF2.2: update login_cap api docs.davidn1997-05-181-9/+23
| | | | | | | PR: Reviewed by: Submitted by: Obtained from:
* if nanosleep returns too early, loop. usleep() does not have a returnpeter1997-05-171-2/+7
| | | | | | value, it appears as though the semantics of usleep are that it doesn't return early. (only in the nanosleep code - the setitimer code does this already)
* round-up non-zero nanoseconds in #ifdef'ed code.peter1997-05-171-0/+2
|
* Allow conditional use (add -DUSE_NANOSLEEP) to CFLAGS of nanosleep() forpeter1997-05-172-34/+33
| | | | | the backend of sleep(3) and usleep(3). It's off by default until the problem is fixed.
* Temporarily restore old (itimer) sleep variant because new oneache1997-05-171-9/+70
| | | | | | | | | | | | | | | (nanosleep) breaks Apache httpd badly: his childs died quickly after number of requests (SIGPIPE). To reproduce this bug start gdb /usr/local/sbin/httpd run -X and make some bunch of concurent requests (load the server pages from 3 different places f.e.) After short time httpd dies via SIGPIPE. It never dies with old sleep.c In real life it looks like lots of broken images on the pages or missing pages. Lynx says about Network read error, etc. It seems something wrong in nanosleep signal handling.
* For non-root uids, consider root-owned files also 'secure' unless otherwisedavidn1997-05-152-4/+4
| | | | disqualified.
* Completely remove #ifdefed out 8859-1 extension, I found it breakache1997-05-141-39/+1
| | | | POSIX, C locale definition, see LC_CTYPE pre-defined table there
* Fixed overallocation of _thread_fd_table.alex1997-05-133-3/+3
| | | | | PR: 3494 Submitted by: Steve Bauer <sbauer@rock.sdsmt.edu>
* #ifdef out C locale extension to 8859-1 encoding, it now stays to ASCIIache1997-05-131-1/+4
| | | | | | | | | | | | | | | back as designed in *BSD Also it not violates current standards but 1) No other Unixes have this feature 2) It broke Kerberos5 (isprint) and God knows what else (not all vendors will agree to treat FreeBSD as special case for support since (1)) 2) Give false localization sense (programs mimic to be 8859-1 localized) which prevents true localization.
* Back out previous revision. Shlib version numbers are supposed to beasami1997-05-131-1/+1
| | | | | | | | bumped only 0.1 or 1.0 between releases. (See handbook.) Note that if you have built world in -current in the last 48 hours or so, you should manually remove /usr/lib/libutil.so.2.3 before rebuilding world to cleanse your system.
* Add clock_* and nanosleep manpages and links.peter1997-05-121-2/+5
|
* manpage for nanosleep(2)peter1997-05-121-0/+96
| | | | Obtained from: NetBSD (I think jtc@netbsd.org wrote it)
* Man pages for clock_{get/set}time() and clock_getres().peter1997-05-121-0/+124
| | | | Obtained from: kstailey@openbsd.org via OpenBSD sources
* Make uu_* const correct.brian1997-05-123-12/+12
| | | | Suggested by: joerg
* Use nanosleep() in all cases, not just in the reentrant libc (_THREAD_SAFE)peter1997-05-121-70/+9
| | | | version.
* Add const in the thread version of nanosleep()'s argspeter1997-05-123-3/+6
|
* remove prototype for nanosleep(), it's visible in unistd.h now.peter1997-05-123-3/+0
|
* Create the clock_settime(), clock_gettime(), clock_getres() and nanosleep()peter1997-05-121-3/+7
| | | | syscall functions.
* Add #include <sys/types.h> in synopsis, now required for libutil.h.davidn1997-05-115-5/+10
|
* Bump shared lib version to 2.3.davidn1997-05-111-1/+1
| | | | Suggested by: bde
* MF2.2: bugfix in arrayize().davidn1997-05-111-2/+2
|
* Summary of login.conf support changes:davidn1997-05-1010-1034/+1700
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Incorporated BSDI code and enhancements, better logging for error checking (which has been shown to be a problem, and is therefore justified, imho); also some minor things we were missing, including better quad_t math, which checks for under/overflows. o setusercontext() now allows user resource limit overrides, but does this AFTER dropping root privs, to restrict the user to droping hard limits and set soft limits within the kernel's allowed user limits. o umask() only set once, and only if requested. o add _secure_path(), and use in login.conf to guard against symlinks etc. and non-root owned or non-user owned files being used. Derived from BSDI contributed code. o revamped authentication code to BSDI's latest api, which includes deleting authenticate() and adding auth_check() and a few other functions. This is still marked as depecated in BSDI, but is included for completeness. No other source in the tree uses this anyway, so it is now bracketed with #ifdef LOGIN_CAP_AUTH which is by default not defined. Only auth_checknologin() and auth_cat() are actually used in module login_auth.c. o AUTH_NONE definition removed (collided with other includes in the tree). [bde] o BSDI's login_getclass() now accepts a char *classname parameter rather than struct passwd *pwd. We now do likewise, but added login_getpwclass() for (sort of) backwards compatiblity, namely because we handle root as a special case for the default class. This will require quite a few changes elsewhere in the source tree. o We no longer pretend to support rlim_t as a long type. o Revised code formatting to be more bsd-ish style.
* Move login_cap.h from src/include for easier maintenance withdavidn1997-05-102-0/+143
| | | | related files.
* Plug even more failure memory leaksache1997-05-101-6/+32
|
* Cleanupache1997-05-101-21/+26
| | | | | | Plug failure memory leaks Use issetugid now PR: 3492
* Back out all of yesterdays include file changes.eivind1997-05-071-3/+0
|
* Add syscalls for kernel linker.dfr1997-05-071-2/+4
|
* Make a lot of include-files self-contained. I excluded the patches changingeivind1997-05-071-0/+3
| | | | | | | | int's to gid_t and uid_t - should I commit these, too? Closes PR misc/2625. Submitted by: Julian Assange <proff@iq.org>
* Bye bye CPLUSPLUSLIB hack! It's not needed any more.jdp1997-05-063-9/+3
| | | | | Don't merge this into -2.2 unless you understand the dependencies on c++rt0, bsd.lib.mk, and gcc -shared. I.e., let me do it.
* Make this C++ safe.jkh1997-05-051-1/+5
| | | | Submitted by: Nadav Eiron <nadav@barcode.co.il>
* Nuke makefiles that duplicate those in libc now that libc is libc_rjb1997-05-0326-320/+0
| | | | aware. This simplifies things for libc_r.
* Use libc makefiles from now on instead of duplicating them in libc_r.jb1997-05-039-450/+27
| | | | Added Id strings too. It's useful to know who last made a change.
* Changed all paths to be relative to src/lib instead of src/lib/libcjb1997-05-0327-98/+203
| | | | | | | | | | so that all these makefiles can be used to build libc_r too. Added .if ${LIB} == "c" tests to restrict man page builds to libc to avoid needlessly building them with libc_r too. Split libc Makefile into Makefile and Makefile.inc to allow the libc_r Makefile to include Makefile.inc too.
* Change default build to include libc_r, but allow disadvantaged soulsjb1997-05-031-1/+1
| | | | to turn off the build.
* This stub has not been required by libc for a long time. Nuke it.jb1997-05-032-39/+2
|
* Fixed wrong mnemonic `setnel' that gas happened to generate correct objectbde1997-04-301-2/+2
| | | | | | code for. Obtained from: a slightly different fix in NetBSD
* Use our copy of dlfcn.h, not the version in /usr/include, which may notmsmith1997-04-301-2/+2
| | | | | be up-to-date when we are building. Submitted by: Terry Lambert <terry@lambert.org>
* Fix a bug that caused some false mismatches when both FNM_PATHNAMEjdp1997-04-291-1/+2
| | | | | | and FNM_LEADING_DIR were specified and the pattern ended with "*". Example: pattern="src/usr.sbin/w*", string="src/usr.sbin/watch/watch.8,v". This should match, but did not.
* Typo.max1997-04-251-1/+1
| | | | | PR: #3178 Submitted by: Josh Gilliam <soil@quick.net>
* Add vfork(2) to SEE ALSOache1997-04-251-0/+1
|
* Add a -I switch to CFLAGS to use the f2c.h header file in the usr.bin/f2cjmz1997-04-241-1/+1
| | | | | directory. Reviewed by: bde
* Generate .S files for syscalls. This has many advantages:bde1997-04-231-34/+9
| | | | | | | | | | | | | | | - dependencies actually work (I need this to propagate some fixes in <machine/asm.h>) - the cpp pipeline goes away, so errors can't leak out of it and an ANSI cpp is automatically used. - it's simpler - standard rules get used instead of repetitive special rules. (This showed bugs in the strip steps in the standard rules. The wrong strip flag was also used for *.po here.) Removed some ${ECHO}s and `@'s. Normal make echoing of what is being done is now not much more verbose than the echo messages were, and is more useful.
* FIxed the cleanup. I forgot to leave stdin alone in the usual (!twoway)bde1997-04-221-1/+2
| | | | case.
* Clean-up my modification of popen.c for vfork. Bruce's (this) is better.dyson1997-04-201-10/+12
| | | | Submitted by: Bruce Evans <bde@freebsd.org>
* Use separate routines for memmove() and memcpy(). This lets me dropbde1997-04-201-0/+2
| | | | | | | the (buggy) support for alternative entry points. ALTENTRY() was only used for memmove(). Optimizing for space was particularly silly because memcpy() is rarely used (gcc normally inlines it). Obtained from: NetBSD
* Use separate routines for memmove() and memcpy(). This lets me dropbde1997-04-202-94/+4
| | | | | | | | the (buggy) support for alternative entry points. ALTENTRY() was only used for memmove(). Optimizing for space was particularly silly because memcpy() is rarely used (gcc normally inlines it). Obtained from: NetBSD
* Merged with the 1996/11/12 NetBSD version:bde1997-04-201-10/+24
| | | | | | | | | | | | | | | - use a slightly less bogus copyright. This file was never contributed to Berkeley. It still claims to be copright by the Regents. - use <machine/asm.h> instead of "DEFS.h". - use RCSID($Id$) instead of explicit assembly code and messy ifdefs. The rcsid won't be put into the object file until we make RCSID() non-null. NetBSD uses a LIBC_SCCS ifdef here. We used a LIBC_RCS instead, but I want RCSID() to be controlled directly by LIBC_RCS (actually by LIB_RCS). This is the only difference with the NetBSD version. - added ifdefs to support generation of memcpy() and memmove(). The other changes are "while I'm here" to get this. - improved style of the copy backwards case.
OpenPOWER on IntegriCloud