itojun
233424cdc2
make sure to bound string operation by strlcpy
...
(there are bunch of "strcpy is safe" comments, i think we should change them
to strlcpy as much as possible)
2002-11-17 20:49:33 +00:00
itojun
9134efabd0
use strlcpy where it is more appropriate.
2002-11-17 01:51:24 +00:00
kleink
792483ae22
Review oversight: ENOSR: resource -> resources, which is what the
...
standard says, and which fits the resource allocation failure better.
2002-11-12 10:28:27 +00:00
skrll
b207990164
Add the missing errno symbols that are defined in IEEE Std 1003.1-2001.
...
The language message files need updating.
Change reviewed and OK'd by Klaus Klein.
2002-11-12 08:20:02 +00:00
thorpej
4747ad6ea7
Fix signed/unsigned comparison warnings.
2002-11-11 19:25:38 +00:00
thorpej
1289029f10
Fix signed/unsigned comparison warnings.
2002-11-11 17:56:11 +00:00
thorpej
045cceecae
Fix signed/unsigned comparison warnings.
2002-11-11 17:13:59 +00:00
thorpej
fd128e9fb6
Fix signed/unsigned comparison warnings.
2002-11-11 16:50:34 +00:00
thorpej
37dfab8a5b
Fix signed/unsigned comparison warnings.
2002-11-11 06:24:08 +00:00
thorpej
20b98814a9
Fix signed/unsigned comparison warnings.
2002-11-11 01:12:04 +00:00
enami
b7ac697dae
s/than than/than/.
2002-11-08 02:05:16 +00:00
wiz
8074ecd2c3
New sentence, new line (hi manu!). Drop trailing whitespace.
2002-11-07 12:11:00 +00:00
manu
9a4dfe85fa
Added two sysctl-able flags: proc.curproc.stopfork and proc.curproc.stopexec
...
that can be used to block a process after fork(2) or exec(2) calls. The
new process is created in the SSTOP state and is never scheduled for running.
This feature is designed so that it is esay to attach the process using gdb
before it has done anything.
It works also with sproc, kthread_create, clone...
2002-11-07 00:22:28 +00:00
wiz
68ab92d7a4
Add some _DIAGASSERTS(). Ok'd by christos.
2002-10-25 20:42:02 +00:00
provos
6875b78ca7
readlink(2) does not NUL-terminate, use with sizeof (buf-1).
...
from deraadt@openbsd.org ; approved thorpej.
2002-10-19 18:58:32 +00:00
tron
12b88f0269
Fix lint error.
2002-10-17 11:36:39 +00:00
wiz
7b3758d0d4
Use .Dq and .Sq. Fix some typos.
2002-10-17 08:41:48 +00:00
wiz
26f2e93a91
Use .Dq and .Sq.
2002-10-17 08:41:38 +00:00
thorpej
c10a556f9b
Change basename(3) and dirname(3) to return a pointer to static
...
storage, rather than modifying their input arguments. While not
reentrant, this is explcitly allowed by IEEE Std 1003.1-2001 (which
allows either behavior, stating that it is implementation-dependent).
The new semantics are considered less hostile/more useful by most programs
which use basename(3) and/or dirname(3) (several programs in the NetBSD
tree reimplement basename()/dirname() themselves to avoid modification
of the input argument).
This new implementation truncates results to PATH_MAX. The Std does
not address this in the static storage case. However since PATH_MAX
is the maximum pathname length in the Std, this should not be a problem
in practice. Nontheless, it is noted in the BUGS section.
See the basename(3)/dirname(3) regression tests in src/regress/lib/libc.
Inspired by discussion with Niels Provos, related to PR 18647.
2002-10-17 02:06:04 +00:00
wiz
24d7aadd13
Mdoc nits, and bump date for FNM_LEADING_DIR addition.
2002-10-07 00:03:14 +00:00
provos
b899aa2abc
implement FNM_LEADING_DIR; matches Linux and other *BSDs; approved thorpej
2002-10-06 03:15:45 +00:00
wiz
4141062f44
process only has one c.
2002-10-02 10:44:27 +00:00
wiz
081a23ac04
Remove mdoc macro from weird place.
2002-10-01 19:47:40 +00:00
wiz
ead46331d9
\-1 and .Dv NULL.
2002-10-01 16:59:46 +00:00
wiz
b214676aec
New sentence, new line. From Robert Elz.
2002-10-01 16:48:34 +00:00
wiz
ef7dc6cc33
New sentence, new line; -1 -> \-1; simplify mdoc in one place.
2002-10-01 16:07:01 +00:00
christos
fb0b215b6c
fix typo
2002-09-28 01:43:24 +00:00
christos
c73d854002
check for write and close errors, from wiz
2002-09-28 01:34:36 +00:00
drochner
20d06f6b17
SI prefixes apply to decimal multiplies only. For binary (2^n) multiplies
...
the most "officially looking" is IEC 60027-2, ie "Ki", "Mi", ...,
which is not too popular, and which would require more code changes.
So stick with the traditional capital "K" for (divisor==1024), and use
the SI "k" otherwise (ie (divisor==1000)).
2002-09-27 18:37:43 +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
wiz
8e14b98adf
Move comment that says 'the following are extensions' to the right place.
...
Approved by christos.
2002-09-26 17:08:42 +00:00
wiz
079c182094
Kilo abbreviation is a small k (PR 18408).
2002-09-26 15:06:47 +00:00
briggs
a94d82e6f9
Always use NetBSD's fts(3) in compat builds. Some systems (notably
...
Red Hat 7.3, at least) do not have fts(3) implementations that work
correctly with -D_FILE_OFFSET_BITS=64.
2002-09-16 04:10:36 +00:00
wiz
aae8095f40
completion, not completition; mark up errno; use \- instead of -.
2002-09-04 01:03:58 +00:00
wiz
c4beccd3bf
completion, not completition; use \- instead of -.
2002-09-04 01:03:24 +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
wiz
158398c921
Fix Ns abuse.
2002-08-20 15:32:12 +00:00
wiz
75c7529338
Update Dd for recent changes.
2002-08-10 09:17:49 +00:00
wiz
6fb8244813
Fix formatting glitch, end sentence with a dot, and use Nm instead of
...
a self-Xr. Update Dd for recent changes.
2002-08-10 09:14:59 +00:00
wiz
1598a31de5
Update Dd for recent changes.
2002-08-10 09:13:47 +00:00
yamt
3bb8b93140
more about sigsetjmp/siglongjmp.
...
from openbsd.
2002-08-10 05:05:24 +00:00
yamt
de3baf756c
note about "too many groups" case.
...
from openbsd.
2002-08-10 04:50:39 +00:00
yamt
9ec2d4f3ab
default path doesn't contain current directory anymore.
...
from openbsd.
2002-08-10 03:08:15 +00:00
yamt
a5c077a75d
reflect change of default path.
...
from openbsd.
2002-08-10 03:06:15 +00:00
yamt
cd9128e6e2
- move a example into EXAMPLES section.
...
- check a return value of opendir.
from openbsd.
2002-08-10 02:55:20 +00:00
tron
2f9d1834f5
Include "sys/param.h" and use "MATHPATHLEN" instead of "_POSIX_PATH_MAX"
...
to fix build problem.
2002-08-04 11:55:51 +00:00
nathanw
b18986f532
#include <string.h> for prototypes of strlen and strcpy.
2002-08-01 23:46:37 +00:00
christos
f04f8bc949
add utmpname()
2002-07-28 21:45:39 +00:00
christos
f084e3ca9b
make this behave like utmp, ie. return all entries and setutent() rewinds.
2002-07-28 20:46:43 +00:00
christos
a2e4cf52ec
use the fname we passed in.
2002-07-28 00:45:11 +00:00