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.
25 years ago
millert
54a539ff4c
crank minor
25 years ago
millert
192f7d89fb
Add OPENDEV_BLCK
25 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.
25 years ago
bjc
8c24d2dab9
#ifdef vax -> #ifdef __vax__
25 years ago
deraadt
ac4b5078d3
flesh
25 years ago
deraadt
944121c7c5
improve the english
25 years ago
deraadt
259d162278
type decl error
25 years ago
deraadt
3369ca98b5
correct example
25 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)).
25 years ago
aaron
ef06e8e8a1
Check return value of strdup(3) for NULL in example code (duh).
25 years ago
aaron
b419710bcf
Flesh out libc string function man pages.
25 years ago
aaron
e985eebf26
Flesh out stdlib function man pages.
25 years ago
aaron
41c60d7ad7
- Formatting repairs and standardizations.
- s/MESSAGES/DIAGNOSTICS/, and put message descriptions in a nice list.
- Talk more about how using malloc() in signal handlers is bad.
25 years ago
aaron
0b659e53e3
Repairs, mostly removing hard sentence breaks.
25 years ago
aaron
36ceaa2f58
Repairs.
25 years ago
aaron
44a11ff941
Mostly punctuation fixes.
25 years ago
aaron
faab0df881
Trailing whitespace begone!
25 years ago
deraadt
0f5d44fb3b
missing THREAD_UNLOCK; netch@segfault.kiev.ua
25 years ago
millert
c83abe7a82
Fix the leak for real (that's what I get for hacking when i can't sleep).
25 years ago
millert
540eda599c
Fix an fd leak if the read from /dev/arandom fails. Pointed out by
Markus Friedl.
25 years ago
millert
6dc6d47610
MLINK srandomdev
25 years ago
millert
258337bfb7
Add srandomdev() from FreeBSD for use by sendmail and others.
25 years ago
millert
a61f3f83b9
First appeared in OpenBSD 2.1
25 years ago
deraadt
961bcc762e
no need to spec the link path
25 years ago
aaron
b13b9f5520
Suffix "i.e." and "e.g." with a comma. Just another really picky man page
commit, as we want our documentation to be as consistently formatted as
possible (it's getting there :-)).
25 years ago
aaron
33d9936e34
Do not leave `(' characters dangling at the end of lines; instead, use the
appropriate mdoc macros to handle these cases.
25 years ago
aaron
d4dc0165bd
In Unix land we prefer "whitespace" to "white space" or "white-space". At
least, this is the impression I get from looking at a lot of Perl docs.
25 years ago
deraadt
96494ea71f
typo fix; halogen@nol.net
25 years ago
aaron
a74b2e14eb
Use Dq/Sq and friends.
25 years ago
deraadt
c2fc570e13
repair prototypes; cky@pobox.com
25 years ago
deraadt
08f28aa616
repair
25 years ago
aaron
7f1ab2f579
Use .Er macro when referring to errno error names.
25 years ago
aaron
9da79ea1ef
ie. -> i.e.,
25 years ago
pjanzen
9bbca5e9e2
Clarify and mention that errno is set to ENOMEM on failure of malloc(),
calloc(), and realloc(). Idea from NetBSD.
25 years ago
pjanzen
f33db6dba0
Max value returned is 2^31 - 1, regardless of the arch-dependent LONG_MAX.
25 years ago
d
16dcd011b5
include thread_private.h
25 years ago