summaryrefslogtreecommitdiff
path: root/lib/libutil
AgeCommit message (Collapse)Author
2001-12-28* Add user-controlled mk.conf variableslukem
- SHLIBDIR Location to install shared libraries if ${USE_SHLIBDIR} is "yes". Defaults to "/usr/lib". - USE_SHLIBDIR If "yes", install shared libraries in ${SHLIBDIR} instead of ${LIBDIR}. Defaults to "no". Sets ${_LIBSODIR} to the appropriate value. This may be set by individual Makefiles as well. - SHLINKDIR Location of shared linker. Defaults to "/usr/libexec". If != "/usr/libexec", change the dynamic-linker encoded in shared programs * Set USE_SHLIBDIR for libraries used by /bin and /sbin: libc libcrypt libcrypto libedit libipsec libkvm libm libmi387 libtermcap libutil libz * If ${_LIBSODIR} != ${LIBDIR}, add symlinks from ${LIBDIR}/${LIB}.so* to ${_LIBSODIR}/${LIB}.so* for compatibility. * Always install /sbin/init statically (for now) The net effect of these changes depends on how the variables are set: 1.) If nothing is set or changed, there is no change from the current behaviour: - Static /bin, /sbin, and bits of /usr/* - Dynamic rest - Shared linker is /usr/libexec/ld*so 2.) If the following make variables are set: LDSTATIC= SHLINKDIR=/lib SHLIBDIR=/lib Then the behaviour becomes: - Dynamic tools - .so libraries used by /bin and /sbin are installed to /lib, with symlinks from /usr/lib/lib*so to -> /lib/lib*so where appropriate - Shared linker is /lib/ld*so 3.) As per 2.), but add the following variable: USE_SHLIBDIR=yes This forces all .so's to be instaleld in /lib (with compat symlinks), not just those tagged by their Makefiles to be. Again, compat symlinks are installed
2001-12-10remove referenced to raw (block) and cooked (character) devices, sincelukem
opendisk(3) doesn't care. the iscooked parameter just changes which paths in /dev are tried if the supplied one doesn't work.
2001-12-10revert previous.lukem
it appears that i misread the intent of the iscooked parameter when originally designing this feature with jason, and changing it broke some programs.
2001-12-07Fix pasto in last.wiz
2001-12-07Fix pastos.gmcgarry
2001-11-23Slight markup improvement.wiz
2001-11-23Add a catch-all man page for libutil.gmcgarry
2001-11-05WARNS=2 fixlukem
2001-11-01Enforce is iscooked arg;lukem
if zero, a matching path must be of type S_IFCHR, and if non-zero, a matching path must be of type S_IFBLK.
2001-10-23- add _PATH_USERMGMT_CONF. resolves [bin/14305]lukem
- add _PATH_PASSWD_CONF to be consistent with almost all other _PATH_xxx_CONF defines, and change from using _PATH_PASSWDCONF to the former. keep the latter for compatibility, although arguably it could be removed because it was never in a release and was only used in one file in the tree.
2001-10-20Remove an extra character in a comment block.taca
2001-10-19- Don't delete the pidfile if the process executing the cleanup handlertron
isn't the process who created it. - If a new basename is supplied remove the an old pidfile if it was created by this process and create a new one as suggested by Jason Thorpe. This fixes PR lib/13357 by Greg A. Woods.
2001-09-26path variations don't occur if there's a / in the pathlukem
2001-08-20Rename secure_path(3) source file from securepath.c to secure_path.c.wiz
2001-08-20Improve formatting, noted by Simon Burge.wiz
2001-08-20precede, not preceed.wiz
2001-08-18Bump libutil major for pw_mkdb() change.ad
2001-08-18Add two arguments to pw_mkdb(), a la OpenBSD. This is to allow us to passad
the -u and -s options to pwd_mkdb.
2001-08-15Fix typomjl
2001-07-22seperate -> separatewiz
2001-05-10revert over-zealous pcvt cull; we still need to skip ttyv* whilst pccons useslukem
ttyv0 on some ports (currently; arm32, bebox, i386, prep). should fix PR 12862.
2001-04-12Fix typo.sommerfeld
2001-04-09Fix date, whitespace and punctuation.wiz
2001-04-09Add a note this appeared in NetBSD 1.6. Pointed out on current-users@jdolecek
by Geoff Wing.
2001-04-06Add getbootfile(3) to libutil, and a man page.wiz
Bump libutil version to 5.5.
2001-02-19convert to use getprogname()cgd
2001-01-03sprinkle in _DIAGASSERT() as appropriatelukem
2000-12-19__CONCAT does token pasting, not string concatnation. if something like:cgd
__CONCAT("PATH=",_PATH_STDPATH); actually works to concantate strings, it's because the preprocessor expands it into "PATH=""whatever _PATH_STDPATH is" as separate strings, and then ANSI string concatenation is performed on that. It's more straightforward to just use ANSI string concatenation directly, and newer GCCs complain (rightly) about mis-use of token pasting.
2000-12-08Fix oversight in last commit.tron
2000-12-06Add two new passwd file update functions:tron
- The pw_setprefix() function defines the root directory used for passwd file updates. If the prefix is set to /newroot pw_lock() will operate on /newroot/etc/ptmp afterwards. The default prefix is an empty string. - The pw_getprefix() function returns the root directory which is currently used for passwd file updates.
2000-11-07fix up various .Nm abuses:lukem
- keep the case consistent between the actual name and what's referenced. e.g, if it's `foo', don't use '.Nm Foo' at the start of a sentence. - remove unnecessary `.Nm foo' after the first occurrence (except for using `.Nm ""' if there's stuff following, or for the 2nd and so on occurrences in a SYNOPSIS - use Sx, Ic, Li, Em, Sq, and Xr as appropriate
2000-10-12/etc/login.conf is optional, so don't return NULL even ifitojun
there's none found. addresses part of PR 11150. sync with openbsd.
2000-10-12cosmetic; indentationitojun
2000-10-10login_cap.h requires sys/types.h (or should it pull sys/types.h in?)itojun
2000-10-04honor behavior of warn(NULL).itojun
2000-10-03Close possible format string attack.sommerfeld
2000-09-21Use .{B,Bs,F,N,O}x and fix miscellaneous errors.ad
2000-09-21- Pull in <util.h> to get secure_path() declared.ad
- Resolve preprocessor symbol clash.
2000-09-19Document secure_path() better; in particular, note that it will writead
to the system log.
2000-09-18- Simplify code path.ad
- Make the first argument to secure_path() constant. - KNF.
2000-09-18Add a LIBRARY section.ad
2000-07-11PCVT hack is gone.ad
2000-07-11Correct ctype(3) usage.itohy
Passing "char" value is wrong. Use "unsigned char" instead.
2000-07-10- More fixes.ad
- Document the built-in defaults.
2000-07-10`.Fn foo' -> `.Fn foo "void"' in SYNOPSIS.ad
2000-07-10Remove PCVT hack.ad
2000-07-07rename securepath.3 into secure_path.3, as the function is named secure_path().itojun
it is too hard to guess...
2000-07-07Couple of nits.ad
2000-07-07Fix typo. This probably would have stopped passwd(1) working ifad
/etc/passwd.conf didn't exist.
2000-07-06Oops - declare static functions.ad