Commit Graph

49 Commits

Author SHA1 Message Date
elad 44b5bc7c94 Add pw_policy.3.
From Hisashi T Fujinaka, thanks!
2005-09-14 18:45:40 +00:00
elad 8d6270e665 Introduce pw_policy(3), an easily extendable way of defining password
policies and enforcing them in programs.

Man-page written with much help and tips from David Maxwell, Hubert
Feyrer, and Thomas Klausner.

This bumps libutil minor to 7.

XXX: Need default policy to go in /etc/passwd.conf, and integration
     into local/yp/PAM password changing code.

PR/10206.
2005-09-14 11:36:52 +00:00
christos a5c1a01ed9 WARNS=3; fix cast-qual issues. 2004-12-11 06:41:15 +00:00
christos 1fe49f768f Add a manual page. 2004-11-20 03:06:09 +00:00
christos eb6484700a Add sockaddr_snprintf; XXX: Needs a man page. 2004-11-19 21:37:19 +00:00
dsl ece723d1ec Add if_media.c, functions for converting media to/from strings.
(from ifconfig.c)
2004-11-11 20:36:28 +00:00
jdolecek 1edd42a9d2 move getmntopts(3) to libutil, build and install also it's manpage
bump libutil minor
adjust individual mount_*/Makefile to use libutil getmntopts(3)
2003-03-22 12:43:57 +00:00
scw 0c83fd4944 Add getlabelsector() and getlabeloffset() as wrappers around the
KERN_LABELSECTOR and KERN_LABELOFFSET sysctls.
2002-12-12 09:45:32 +00:00
lukem b1e79510cf - Migrate fparseln(3) from libutil to libc, where it should have been in
the first place...
- Bump libutil major (to 7.0) and libc minor (to 12.91).
2002-11-30 03:04:44 +00:00
elric 448f621758 Added two functions disklabel_dkcksum() and disklabel_scan() to libutil
so that they can be shared by disklabel(8) and cgdconfig(8).
2002-10-12 20:53:15 +00:00
jdolecek 961e3a840f put utmpx/wtmpx routines to separate files, so that programs overriding the
utmp/wtmp routines could still be linked static
fixes e.g. static build of ftpd
2002-09-27 20:42:46 +00:00
wiz 4a47c952db Add documentation for utmpx and some related functions.
Thanks for some explanations to christos, and for some STANDARDS hints
to Klaus Klein.
2002-09-27 15:02:24 +00:00
christos 4ac3045a5a Add snprintb(3) inspired from bitmask_snprintf(9), but made to look like
more like snprintf(3). Discussed with thorpej.
2002-09-20 21:10:10 +00:00
abs a086fb2909 Move humanize_number(3) from libutil to libc as per discussion on tech-misc
Revert minor number bump on libutil (with note to skip it next update), and
bump libc.
2002-08-22 17:24:08 +00:00
lukem ec5dbc56b8 Explicitly move setting of NOxxx and USE_SHLIBDIR to the top of the
Makefile (before including <bsd.own.mk>)
2002-08-19 14:55:14 +00:00
lukem ebb6fc9eb8 Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc).
(Reduces make output by ~ 20%)
2002-08-19 09:41:27 +00:00
abs 35a808e4e8 Add humanize_number.3 from Tomas Svensson in PR lib/15508.
Bump version of libutil
2002-08-08 16:50:35 +00:00
lukem efcc9a4c9d * Add user-controlled mk.conf variables
- 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-28 01:32:37 +00:00
gmcgarry f830776687 Add a catch-all man page for libutil. 2001-11-23 06:20:37 +00:00
wiz f19d54840a Rename secure_path(3) source file from securepath.c to secure_path.c. 2001-08-20 14:47:49 +00:00
wiz b1593d9814 Add getbootfile(3) to libutil, and a man page.
Bump libutil version to 5.5.
2001-04-06 14:31:14 +00:00
tron a3a468eeaf Add two new passwd file update functions:
- 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-12-06 13:37:53 +00:00
itojun b596a9b104 rename securepath.3 into secure_path.3, as the function is named secure_path().
it is too hard to guess...
2000-07-07 11:05:06 +00:00
ad 7b3efebed5 Documentation for pw_getconf(). From OpenBSD. 2000-07-06 11:08:19 +00:00
mjl 4d8aac4dbb Correct typos which prevent man pages from being installed.
Fixes PR/10104 by Greg Woods.
2000-05-12 18:31:55 +00:00
mjl 142f369443 Add necessary support routines for login.conf. 2000-01-12 05:02:10 +00:00
simonb 6bf3aa19f9 More trailing white space. 1999-07-02 15:46:05 +00:00
thorpej fb695fdcb9 Add pidfile(3), which write a pid file in /var/run, and arranges for it
to be removed on normal exit.
1999-06-06 01:50:00 +00:00
bouyer dc306354b0 Move the bswap functions from libutil to libc (this bups the
minor of libc and the major of libutil). For little-endian architectures
merge the bnswap() assembly versions with nto* and hton* using symbols
aliasing. Use symbol renaming for the bswap function in this case to avoid
namespace pollution.
Declare bswap* in machine/bswap.h, not machine/endian.h. For little-endian
machines, common code for inline macros go in machine/byte_swap.h
Sync libkern with libc.
Adjust #include in kernel sources for machine/bswap.h.
1999-01-15 13:31:15 +00:00
kleink 0453a51caa Kill __LIBUTIL_BUILD in favor of the newly added _LIBC indicator completely;
suggested by Jason Thorpe.
1998-10-14 21:13:04 +00:00
thorpej 5b08d89dbe Put pw_scan() back into libutil and pretent that libutil.so.5.0 never
existed.
1998-06-27 05:08:56 +00:00
bouyer 50660fb787 Add bswap{16,32,64} functions to libutil. Because of this, bump minor. 1998-03-18 16:40:45 +00:00
christos d0d7e22dc8 PR/4475: Jason R. Thorpe: there is no common function to parse a continued
line.
1997-11-16 22:15:54 +00:00
lukem b10e61b102 use CPPFLAGS instead of CFLAGS, remove -Wall et al (WARNS=1 already does this) 1997-10-23 03:29:09 +00:00
cjs 09ced7933a Add pidlock, ttylock, ttyunlock functions. 1997-10-11 02:56:22 +00:00
lukem 5542a7ca43 - define WARNS?=1 in the top-level Makefile.inc, and don't define
anywhere else.
- for now, override WARNS=0 in librpcsvc and libwrap, until they're
  cleaned up
- rcsid police

lib is now clean (except for librpcsvc and libwrap) on the i386, and
this should motivate the other ports to fix any other minor problems
that their compilers pick up that the i386 version doesn't.
1997-10-09 14:36:17 +00:00
lukem ae6b9c674a WARNSify 1997-10-09 11:58:15 +00:00
lukem 1e372f6cf9 implement opendisk(3), as discussed with Jason Thorpe 1997-09-25 04:53:30 +00:00
christos 023f063691 Add ttymsg.3 to the man pages. 1997-06-29 18:45:24 +00:00
christos f5646a08d4 - RCSID police
- Add ttymsg.3
1997-06-29 18:44:03 +00:00
gwr 6ab34f5889 Add ttyaction.3 and ttyaction.c 1996-11-14 17:53:07 +00:00
thorpej 7795b4110f Add two functions to libutil:
- getmaxpartitions: get the value of MAXPARTITIONS for the
	  currently running system

	- getrawpartition: get the value of RAW_PART for the
	  currently running system

These functions are necessary since the value of MAXPARTITIONS might
be different across platforms which are binary compatible (e.g. amiga
and sun3).
1996-05-16 07:03:28 +00:00
jtc e42a94845a Minor reorganization of libutil, including the addition of passward
locking and editing functions.
From Greg Hudson <ghudson@MIT.EDU>
1996-05-15 21:42:23 +00:00
cgd 3a724adbf7 minor cleanup; kill unnecessary casts 1994-05-04 10:55:57 +00:00
cgd 7999e08c50 get rid of stuff that doesn't belong here 1994-01-27 23:31:19 +00:00
mycroft 9417ee8681 Add getbsize() from Berkeley, somewhat modified. 1993-08-06 17:03:54 +00:00
mycroft cda4f8f6ee Add RCS identifiers. 1993-08-01 05:37:30 +00:00
mycroft 8ffedb1335 Don't need -I/sys any more. 1993-06-17 13:11:39 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00