gmcgarry
3e5aabbe90
Clarify what functionality _is_ included and _should be_ included in libutil.
2002-08-12 20:03:05 +00:00
martin
ab77398ff9
Do not assume int64_t is printable with %qd - on 64 bit ports it isn't.
...
Use %lld instead and cast the args to (long long) explicitly.
I'm not sure about our policy vs. the C99 format string macros in
basesrc - should we use those here?
2002-08-12 09:06:59 +00:00
itojun
53ca62040c
calloc() arg mistake. it's (nelem, size). from openbsd
...
sync w/tcpdump.org
2002-08-12 02:39:22 +00:00
yamt
d536e5ccae
add RETURN VALUES section.
...
from OpenBSD.
2002-08-11 14:44:33 +00:00
yamt
e8cb4f166c
bump .Dd .
2002-08-11 14:43:52 +00:00
yamt
03664cd132
- detail protections.
...
- add RETURN VALUES section.
from OpenBSD.
2002-08-11 14:36:33 +00:00
yamt
1c708a4b08
bring in RETURN VALUES from openbsd.
2002-08-11 13:17:35 +00:00
yamt
e52744d883
- document generic ioctls.
...
- mention EFAULT.
from OpenBSD.
2002-08-11 12:40:46 +00:00
yamt
a63161243b
more description from openbsd.
2002-08-11 12:22:48 +00:00
yamt
eaf49dbcad
backout previous partly:
...
we don't check if processes are in the same session or not.
2002-08-11 12:12:54 +00:00
yamt
74b1a91d8e
bring in ERRORS from openbsd.
2002-08-11 12:09:11 +00:00
yamt
906f41fac5
- include typical uses.
...
from openbsd.
2002-08-11 12:04:25 +00:00
blymn
67d86161c7
Added MLINK entries to link all function names to their respective
...
man page.
2002-08-11 11:57:44 +00:00
yamt
731cbc6eb3
bring in warnings from freebsd via openbsd.
2002-08-11 11:46:21 +00:00
yamt
a86e2e3273
note that child should use _exit instead of exit.
...
from OpenBSD.
2002-08-11 10:35:48 +00:00
yamt
b09419c060
bump .Dd .
2002-08-11 10:28:23 +00:00
yamt
740bfa56b7
document a hack about setuid programs and fd 0, 1 and 2.
...
from OpenBSD.
2002-08-11 10:27:49 +00:00
yamt
0997545d18
bring in EXAMPLES from openbsd.
2002-08-11 09:39:10 +00:00
yamt
0da40e1ed0
- correct how to check empty field.
...
- improve examples.
from OpenBSD.
2002-08-11 09:36:15 +00:00
yamt
10a7dd0256
bring in EXAMPLES from openbsd.
2002-08-11 08:22:30 +00:00
yamt
cdac947b04
bring in EXAMPLES and ERRORS from openbsd.
2002-08-11 07:53:06 +00:00
yamt
049fa38b0c
bring in EXAMPLES from openbsd.
2002-08-11 07:50:04 +00:00
yamt
fd80262662
improve EXAMPLES.
...
from openbsd.
2002-08-11 07:46:56 +00:00
yamt
517ec26f7b
bring in EXAMPLES from OpenBSD.
2002-08-11 07:36:19 +00:00
yamt
4e0ec2a042
bump .Dd .
2002-08-11 07:31:56 +00:00
yamt
0243d99724
bring in EXAMPLES from openbsd.
2002-08-11 07:31:18 +00:00
yamt
c5caadcfd8
bring in EXAMPLES and a note.
...
from openbsd.
2002-08-11 07:05:41 +00:00
yamt
6410ff3c05
bring in EXAMPLES from OpenBSD.
2002-08-11 06:53:39 +00:00
yamt
8acd3a715f
- more description about realloc.
...
- mention errno.
- add FILES section for malloc.conf.
from openbsd.
2002-08-11 06:12:45 +00:00
yamt
145cf30b9f
fix sample code. from openbsd.
2002-08-10 17:25:01 +00:00
yamt
1060c75faa
result of getenv should be treated as read-only.
...
from OpenBSD.
2002-08-10 17:14:50 +00:00
yamt
0010f8875d
bump .Dd .
2002-08-10 17:10:11 +00:00
yamt
9d36ca1fbf
note only 8 bits of exit-status is passed.
...
from OpenBSD.
2002-08-10 17:09:27 +00:00
yamt
120c9b3256
note that alloca can't report error.
...
from OpenBSD.
2002-08-10 16:55:18 +00:00
yamt
14e693f16b
bump .Dd for my previous commit.
2002-08-10 16:51:26 +00:00
yamt
cd575f9fb2
note that abort(3) causes streams flushed and closed.
...
from OpenBSD.
2002-08-10 16:47:54 +00:00
yamt
e7d9fe95ae
- add description of the race.
...
- fix typo.
from OpenBSD.
2002-08-10 16:34:29 +00:00
yamt
dccfe06f50
use more Xs for filename templates.
...
from OpenBSD.
2002-08-10 16:28:51 +00:00
yamt
04adc81fbf
if the path is directory, remove(3) behaves as rmdir instead of unlink.
...
from OpenBSD.
2002-08-10 09:42:23 +00:00
yamt
5d8e52e7ab
bring in EXAMPLES and BUGS from openbsd.
2002-08-10 09:32:19 +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
wiz
e8e0360410
Sort sections. Update Dd for EXAMPLES addition.
2002-08-10 09:07:15 +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
yamt
0c2c7b9a5e
bring in EXAMPLES sections from openbsd.
2002-08-10 02:41:21 +00:00
thorpej
214fe87eb9
Actually bump the shlib version to 6.2 as abs intended to.
2002-08-10 01:51:43 +00:00
wiz
707834f3b2
Remove an unnecessary .Ns.
2002-08-10 01:18:18 +00:00
itojun
583dd2affa
bring in openbsd BUGS section (modulo some strong wording). nroff nits
2002-08-10 01:04:19 +00:00
itojun
6043eb4818
regen manpages
2002-08-09 16:15:36 +00:00
blymn
c4f23a93e4
Added extension to interface, set_field_printf which allows a printf
...
style setting of field buffers.
2002-08-09 14:15:12 +00:00
wiz
f1559d336d
ispell.
2002-08-09 10:13:07 +00:00
soren
642c31b4a3
Remove extraneous \n's in {err,warn}{,x}.
2002-08-09 10:01:53 +00:00
thorpej
aeba09a9f6
Reflect TYPE -> CLASS change made in <machine/pmc.h>
2002-08-09 05:29:36 +00:00
itojun
0cb9a97393
lint clean
2002-08-09 04:29:29 +00:00
itojun
cb4277ff85
unifdef for auditability.
2002-08-09 04:26:07 +00:00
briggs
85a594afcd
Add a missing register prefix, noted by Makoto Fujiwara on the port-macppc
...
mailing list.
2002-08-09 02:46:56 +00:00
thorpej
035cf21112
Build libpmc.
2002-08-09 00:16:38 +00:00
thorpej
982451d606
Add a user interface library to the PMC-related system calls. This
...
provides a mapping between an event name and the selector, and provides
a more convenient API For manipulating the PMCs.
2002-08-09 00:03:15 +00:00
itojun
182c0b6e08
sync with 0.9.6f. prevents DoS attack and regen of manpages.
2002-08-08 23:47:34 +00:00
wiz
91223bd061
Actually, the page was last modified today.
2002-08-08 17:04:32 +00:00
wiz
8afa8486fc
Minor cleanup, correct HISTORY.
2002-08-08 17:03:46 +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
soren
01bfb60de4
Refer to rcmd(3) instead of the non-existing krcmd(3).
...
PR lib/12562 by Klaus Klein.
2002-08-08 01:41:17 +00:00
soren
bdb11c55b6
Don't omit third argument to open(2).
...
PR lib/15752 from Stephen Ma.
2002-08-08 01:30:09 +00:00
blymn
d0dbcd8f3c
Fix null dereference in set_field_type.
2002-08-07 13:57:03 +00:00
blymn
d87fd85949
Prevent field scrolling when REQ_RIGHT_CHAR hits the RHS of the field.
2002-08-07 11:05:10 +00:00
briggs
6f6fd08e8a
Add stubs to new system calls for performance monitoring interface.
2002-08-07 04:51:12 +00:00
enami
8be6c4876d
Rearrange code to avoid core dump and just return an error instead
...
when parsing a locale string previously returned by setlocale.
2002-08-07 04:42:42 +00:00
soren
69e08c5b46
Make SYNOPSIS accurate about required headers.
...
Fixes PR lib/11021 from wiz.
2002-08-06 16:08:47 +00:00
wiz
4068c80842
Fix Fn argument.
2002-08-06 12:58:45 +00:00
wiz
0161d54450
Fix Fn (separate arguments).
2002-08-06 12:54:18 +00:00
wiz
6bce40bcab
The argument of .Fn should look like this:
...
.Fn function_name "int first" "char *second"
not like this:
.Fn function_name "int first, char *second".
2002-08-06 12:44:34 +00:00
wiz
af9ce6b208
Fix mdoc. Closes lib/17855.
2002-08-06 12:35:39 +00:00
blymn
ad3d412058
set_field_opts and field_opts_on were both using the wrong pointer
...
resulting in libform crashing if O_STATIC was set on the default field.
2002-08-05 12:43:44 +00:00
jdc
de90ffb896
Sort attr* functions/macros.
2002-08-04 17:08:16 +00:00
jdc
4eb3ef3dac
Set the curses default colours to white on black when using colour.
...
See the Single UNIX Specification, Version 2 :
http://www.opengroup.org/onlinepubs/007908799/xcurses/can_change_color.html
Also, add the functions :
use_default_colors();
assume_default_colors(fore, back);
(from ncurses) that allow the terminal default colours or user-specified
default colours to be used.
2002-08-04 16:43:04 +00:00
jdc
c06c3c0403
Make sure we always update curx, cury and __ISPASTEOL.
...
From Onno van der Linden in PR lib/16532.
2002-08-04 14:13:49 +00:00
jdc
7aea6936d1
Reset cursor visibility after restarting the screen, as the cursor visibility
...
setting can be changed when the screen is restarted.
2002-08-04 14:11:59 +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
blymn
8d09f0f70d
Redraw field when the flags for the field change iff the field is
...
attached to a form and the form is posted.
2002-08-03 14:34:22 +00:00
yamt
e499009646
remove _StreamStateTable.
2002-08-03 11:10:51 +00:00
yamt
88a7c37398
remove a global variable "saved_categories" as it isn't necessary anymore.
2002-08-03 06:12:30 +00:00
blymn
93ae143731
Do not free the first element of the fields array. This fixes pr 17754.
2002-08-02 14:10:25 +00:00
tshiozak
0b03f5f98b
remove an obstructive ?: operator of the check added in the last commit by
...
itojun-san.
2002-08-02 12:27:32 +00:00
blymn
4e295cd045
Allow REQ_RIGHT_CHAR to get to the end of the line.
2002-08-02 11:49:18 +00:00
blymn
a5ab810726
Refresh window after a driver command.
2002-08-02 11:48:02 +00:00
soren
819df08c48
stat(2) can return ENXIO.
2002-08-02 08:08:26 +00:00
itojun
73811081f9
correct use of strlcpy (really need to enforce length, so use memcpy)
2002-08-02 08:02:36 +00:00
itojun
463bfdcd98
use strlcpy where appropriate
2002-08-02 07:50:35 +00:00
tshiozak
19debadf5c
fix a bug of setlocale when changing locales with LC_ALL for the first
...
argunemt and with a string containing many slashes for the second argument.
This bug may cause setlocale() to destroy static datas.
If a setuid program calls this function as 'setlocale(LC_ALL, "");',
this might be vulnerable, although there are few programs having such
vulnerability. This bug probably affects every versions of NetBSD,
including 1.4, 1.5 and 1.6.
XXX: This part of setlocale is unseemly, thus we had better rewrite it in
the future.
2002-08-02 07:12:51 +00:00
nathanw
b18986f532
#include <string.h> for prototypes of strlen and strcpy.
2002-08-01 23:46:37 +00:00
itojun
cf0cafaa38
correct range check. from openbsd
2002-08-01 05:22:43 +00:00
jdolecek
06a4a82134
restore the previous form of the condition checking malloc() return value, which
...
was changed in previous revision
2002-07-31 12:57:36 +00:00
itojun
891518d386
allow calloc(0, x) and calloc(x, 0). sync w/openbsd
2002-07-31 09:26:49 +00:00
itojun
2cd481ef73
plug memory leak. from ebisawa@iij, sync w/kame
2002-07-31 07:00:22 +00:00