Commit Graph

7244 Commits

Author SHA1 Message Date
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
soren a6eb4c51f7 Make pmap_set(3) prototype match reality.
Fixes PR lib/6064.
2002-07-31 01:46:02 +00:00
itojun 151d7bb9f3 regen openssl manpage from 0.9.6e source. 2002-07-31 01:45:20 +00:00
blymn fa8f5d02f8 Reposition form cursor after field redrawn when setting a field value,
since the field set may not be the current one.  This fixes PR 17533.
2002-07-31 01:28:32 +00:00
darrenr 5d8479d5bd patch from openbsd to fix bounds checking, eliminating an overflow condition. 2002-07-30 14:57:31 +00:00