aaron
763678bdf1
Various man page fixes and improvements from gluk@
23 years ago
deraadt
8123ad9438
document that exit() -> wait() only returns low bits
24 years ago
deraadt
8b515bb629
please alpha
24 years ago
deraadt
71a95aef09
move utmp to large format, usernames to 32 chars; downsj
24 years ago
millert
db5f19efcb
Sync function comment with man page; fanf@covalent.net
24 years ago
millert
1742681900
Reverse the order of two loop invariant to make 'strlcat(0, "foo", 0)'
not get a SEGV; Richard Kettlewell <rjk@greenend.org.uk>
24 years ago
naddy
500b3c6b5d
libutil.h -> util.h
24 years ago
todd
83df067d68
grammer/spelling
24 years ago
millert
e6c1e8b9f9
Fix a problem introduced by the printf format sweep. Passing a NULL
pw_error() is prefectly legal but now we have to check for it explicity
(it was handled implicitly before since warn(name) would become warn(NULL)).
24 years ago
aaron
3d200f23d8
Various repairs, mostly to get rid of short lines.
24 years ago
aaron
a23c3559c4
mdoc prefers `\e' as an escape character.
24 years ago
aaron
c56f4d6b0e
typo; ciper -> cipher
24 years ago
aaron
0993603ee0
.Sh EXAMPLE -> .Sh EXAMPLES. Even if there's only one example, at least
this is consistent.
24 years ago
aaron
01bdb7e580
.Sh EXAMPLE -> .Sh EXAMPLES. Move this section before SEE ALSO where it
belongs. Closes PR/1554 from bk@rt.fm .
24 years ago
millert
fee765fb4f
MLINK check_expire.3 -> login_check_expire.3
24 years ago
millert
747d061e52
first cut at a man page for login_check_expire()
24 years ago
millert
3baeeab4e7
login_check_expire(3), a helper function for use with BSD authentication.
This lives in libutil because it uses pw_lock(3) and friends. Needs
a man page (soon!).
24 years ago
millert
2a2d694747
Add a username argument to pw_mkdb to match 'pwd_mkdb -u username'.
Crank the shlib major number due to the interface change.
24 years ago
itojun
b01d6ab5d6
comment fix; strlcat returns strlen(initial dst) + strlen(src).
24 years ago
angelos
a8575fe917
"of", not "on" (from Henric Jungheim)
24 years ago
deraadt
e0df9d23fb
shorten, now it fits in -Tps
24 years ago
aaron
e93bcc1d43
The constant's name is MAXPATHLEN, not MAXPATHNAMELEN; closes PR/1491.
From ianm@kashmir.cit.nepean.uws.edu.au .
24 years ago
aaron
d71fc636ce
Clarify; gluk@ptci.ru
24 years ago
aaron
8a0faa7911
Document that the string returned by strerror(3) contains a maximum of
NL_TEXTMAX characters.
24 years ago
aaron
22e70c114c
Another round of man page cleanup, this time to remove more hard sentence
breaks and getting rid of short lines, making these files easier to work with.
24 years ago
aaron
c23a686afb
Add a CAVEATS section to warn programmers that shell meta-characters will
be passed to the command interpreter.
24 years ago
aaron
4ad61ad9cf
Arguments to .Dt macros should be all-caps.
24 years ago
aaron
c10d94986f
Fix typo in NAME section; loict@bougon.net. While I'm here, capitalify the
argument to .Dt, and move the BUGS section to the end like most man pages.
This is my 1000th commit since joining the OpenBSD dev team.
24 years ago
aaron
368621cd11
More of the same.
24 years ago
aaron
12e75aa1a7
For man pages that describe multiple functions, split the .Nm arguments
onto separate lines in the NAME section.
24 years ago
aaron
52ecc95202
Remove trailing blank lines.
24 years ago
aaron
bfdce62dd9
typo
24 years ago
provos
5722ba1903
return error if salt is too small; pr 1336
24 years ago
provos
45cd33a8a6
close fd for pw_lck on exec, okay deraadt@
24 years ago
mickey
3b4062f622
knf; ouch, that hurts
24 years ago
mickey
3c9d5e13a7
new version of ffs from drahn@
combines binary search and table lookup.
tested on i386, sparc, ppc, hppa
24 years ago
millert
8859c18d03
warnx?/errx? paranoia (use "%s" not a bare string unless it is a
constant). These are not security holes but it is worth fixing
them anyway both for robustness and so folks looking for examples
in the tree are not misled into doing something potentially dangerous.
Furthermore, it is a bad idea to assume that pathnames will not
include '%' in them and that error routines don't return strings
with '%' in them (especially in light of the possibility of locales).
24 years ago
millert
c59961eebe
State explicitly that strlc{py,at} only work on real C strings.
Clarify point about always NUL-terminating.
24 years ago
hugh
646a4ed2b2
Document device lookup semantics.
24 years ago
millert
54a539ff4c
crank minor
24 years ago
millert
192f7d89fb
Add OPENDEV_BLCK
24 years ago
millert
c67af3de41
Add OPENDEV_BLCK flag for opening the block devices (the character
device is opened by default).
Don't open the file w/o adding a /dev/ prefix unless the file has
a '/' in it. This prevents problems where someone says "disklabel
sd0" with a file called "sd0" in the cwd.
The OPENDEV_DRCT flag has been deprecated as it is the the default
behavior and always has been.
Add checks for >= MAXPATHLEN and return ENAMETOOLONG in that case.
24 years ago
bjc
8c24d2dab9
#ifdef vax -> #ifdef __vax__
24 years ago
deraadt
ac4b5078d3
flesh
24 years ago
deraadt
944121c7c5
improve the english
24 years ago
deraadt
259d162278
type decl error
24 years ago
deraadt
3369ca98b5
correct example
24 years ago
aaron
a1359f55ef
Add ERRORS section (the strdup(3) function may fail and set errno to any of the
errors specified by the library routine malloc(3)).
24 years ago
aaron
ef06e8e8a1
Check return value of strdup(3) for NULL in example code (duh).
24 years ago
aaron
b419710bcf
Flesh out libc string function man pages.
24 years ago