itojun
28f506f3a2
strlcpy
2003-07-12 13:57:49 +00:00
itojun
c0970755a6
pedantic check around unsafe strncpy.
...
XXX this code needs a serious rewrite
2003-07-12 13:53:08 +00:00
itojun
ef4b3d620c
copyright missing in files, copy them from README
2003-07-12 13:47:42 +00:00
itojun
417386ecc9
strlcpy
2003-07-12 13:38:10 +00:00
itojun
07b330cc97
strlcpy, some KNF
2003-07-12 13:37:15 +00:00
itojun
032ed69f9a
strlcpy
2003-07-12 13:23:55 +00:00
manu
e9383d7e5d
Use the same code to display hexdump of GIO and MMSG (Mach Messages).
...
While we are there, display offsets in the hexdump, it can be useful.
Remove size display in Mach Messages as user processes don't always
fill it correctly.
2003-07-12 10:07:08 +00:00
wiz
b712736290
Add -x to usage output.
2003-07-11 13:06:11 +00:00
wiz
79093334ef
Bump date for -x addition.
2003-07-11 13:05:26 +00:00
dsl
6ea05bcbfe
Add a '-x' option to display GIO data blocks in hex and ascii (instead of
...
vis(3) format).
Maybe there could be a heuristic to decide whether the data is printable...
2003-07-11 10:59:28 +00:00
bjh21
7971e90f7e
Remove the NAME_MAX check. While well-intentioned (and required by POSIX),
...
the implementation was horribly broken when <name> contained slashes, and
a correct one will probably be quite different.
2003-07-10 21:30:16 +00:00
bjh21
b768f7ad6a
Remove the hack that varied the first character of the output filename if
...
a base name wasn't specified. It's not really necessary now that we've
got -a, it's ugly, and POSIX doesn't permit it.
Suggested on tech-userlevel a couple of weeks ago to a deafening silence.
2003-07-10 20:43:40 +00:00
lukem
29a6151db1
NOxxx= variables should appear first
2003-07-10 11:21:51 +00:00
lukem
42b4b5e4a4
<bsd.own.mk> needed before NETBSDSRCDIR is used
2003-07-10 11:21:03 +00:00
lukem
001c68bd94
Rename a large chunk of the make(1) variables which refer to a
...
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC
For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo
Document all of these in bsd.README.
This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00
dsl
9778762a60
Keep unstripped binary in $OBJ, use are timestamp instead of prog.stripped.
...
Patentially useful as a source of symbol information for debugging.
2003-07-09 19:51:07 +00:00
wiz
f61187c074
Remove superfluous ] in last.
2003-07-09 14:47:33 +00:00
lukem
7d830fa777
tweak previous; no need to have .Sm on and then just .Sm off
2003-07-09 08:09:04 +00:00
jschauma
dff18e6662
Add missing closing ']' for character class examples.
2003-07-08 22:15:04 +00:00
kristerw
3e51d2b759
Const poisoning.
2003-07-08 01:55:35 +00:00
dsl
f2c019d534
Change 'Magic number' of menu text files.
...
Correct calculation of window width in msg_prompt_win().
2003-07-07 12:22:35 +00:00
dsl
f19029a851
Add OPT_IGNORE flag which makes menu item inactive.
...
Add menu-dependant function to draw menu lines (when opt_name NULL).
2003-07-07 12:20:56 +00:00
jmmv
e4b15274f9
Add missing section header EXIT STATUS.
2003-07-07 12:20:04 +00:00
wiz
31b27aaae4
Fix typo in error message.
2003-07-07 11:42:13 +00:00
dsl
aaba6e7d29
No need to resizeterm() if size not changed.
...
On 'fg' just restore old screen contents.
2003-07-05 08:05:51 +00:00
dsl
5ae48961f9
Redraw addresses after screen refresh
2003-07-05 06:48:52 +00:00
agc
2698214c76
Use the proper type for the return value from getopt(3). Allows this
...
program to be compiled on machines with unsigned chars.
2003-07-04 12:33:08 +00:00
wiz
44b0609fe6
Bump date for last.
2003-07-04 12:13:29 +00:00
wiz
21a565e27c
Remove trailing whitespace.
2003-07-04 08:15:00 +00:00
wiz
a681ded17a
Use Aq or Ao/Ac instead of \*[Lt]/\*[Gt].
2003-07-04 08:13:59 +00:00
wiz
ab7901a8b6
Grammar and mdoc improvements. Sort sections. Only mention iconv(3)
...
in SEE ALSO, since iconv_open(3) and iconv_close(3) are the same.
2003-07-04 07:58:10 +00:00
wiz
ee762782f9
Sort sections, fix typo, add some articles,
...
and lots of other cleanup.
2003-07-04 07:28:14 +00:00
tshiozak
6a491b80a2
add manpage for iconv(1).
2003-07-04 06:59:52 +00:00
tshiozak
fab9a2fdc1
add locale(1) utility.
...
Originally written by Alexey Zelkin <phantom@FreeBSD.org>.
So, obtained from FreeBSD with gratitude. (suggested by wiz.)
2003-07-04 05:41:49 +00:00
itojun
076786421e
another fix against unreadable indentation
2003-07-04 04:26:47 +00:00
itojun
2b3103a077
fix unreadable indentation
2003-07-04 04:20:05 +00:00
simonb
c595e9c78e
No need to cast the third argument of ioctl() to "char *".
2003-07-02 12:47:00 +00:00
wiz
e07b8295fc
Cm So . Sc -> Sq Cm \&. (and similar for :).
2003-07-01 10:26:27 +00:00
wiz
72c59e3ee3
Quote question mark, to get it marked up. Whitespace nit.
2003-06-30 19:17:01 +00:00
wiz
b93a29cdaa
Fixes to make these man page look nice with groff-1.19.
2003-06-30 19:12:31 +00:00
wiz
5a9293abc1
Adapt to new naming conventions for tmac files.
2003-06-30 19:08:37 +00:00
bjh21
548e2c20bb
Clean up the mechanism used for opening output files. Rather than freopening
...
stdout onto each file in turn, then writing through fileno(stdout), use
open() and close() like any sensible program. This saves a lot of system
calls, removes a dependency on the particular behaviour of BSD freopen(),
and allows us to detect and report errors from close().
2003-06-29 22:57:23 +00:00
fvdl
4fdb86c883
Back out previous.
2003-06-29 22:35:35 +00:00
martin
40ee31ef5e
Since a caddr_t is (mis-)used as the lwp-id, cast it to intptr_t and use
...
apropriate format string.
2003-06-29 18:05:06 +00:00
darrenr
d0ad455673
add appropriate hack to display ktr_buf as the lwpid if -L is supplied on
...
the command line.
2003-06-28 17:15:07 +00:00
wiz
8da6fdd09d
Restrict ".Sm off" to the parts where it is wanted.
2003-06-27 22:25:08 +00:00
dsl
e2724ab4be
Add support for reading messages from a text file - msg_file() and msg_string().
...
Use subwin() in msg_prompt_win() now libcurses is fixed.
Some KNF changes I seem to have forgotten to commit on their own :-(
2003-06-27 22:11:59 +00:00
dsl
e28e42e092
Improve diagnostic message
2003-06-27 22:06:14 +00:00
wiz
4e996c3a33
End sentence with a dot. From jmc@openbsd.
2003-06-27 21:57:43 +00:00
bjh21
4f65cbad31
Cleanup:
...
Correct synopsis to show that -l and -b are mutually exclusive.
Put [k|m] in the right typefaces.
Use .Ql for 'k' and 'm' in text.
Refer to the option-argument of -l as <line_length> consistently.
2003-06-27 17:19:54 +00:00
tshiozak
f0108a1301
correct how to show size_t. %d -> %lu and cast to unsigned long.
...
reported by Rob Quinn.
2003-06-27 15:42:12 +00:00
wiz
d1084fd16c
Quote question mark.
2003-06-27 09:42:24 +00:00
wiz
621498f8a8
Remove superfluous "".
2003-06-27 09:40:17 +00:00
wiz
ba22178ad0
Quote question mark. Change width argument in a table to line up
2003-06-27 09:38:58 +00:00
wiz
9e48dea8c5
Pa Ar -> Ar.
2003-06-27 09:15:55 +00:00
wiz
2acfaaf7f5
Quote bang.
2003-06-27 09:06:23 +00:00
wiz
1316e82e58
Undo last two, I will handle this differently.
2003-06-27 08:50:50 +00:00
tshiozak
ff5c3e6895
Citrus iconv support(4)
...
add iconv external I/F (iconv.h - iconv_open()/iconv()/iconv_close()) and
iconv(1) utility.
TODO:
- bump libc minor.
- add iconv data files.
- create manpages: iconv_open(3)/iconv(3)/iconv_close(3)/iconv(1)/
mkesdb(1)/mkcsmapper(1).
2003-06-27 05:21:49 +00:00
bjh21
4fca23a8b3
Simplify the handling of ifd by initialising it to the default
...
(STDIN_FILENO), and only overriding that if the user specifies a different
input file.
2003-06-26 23:19:15 +00:00
bjh21
946564c3f6
Remove support for treating "-" as an option rather than an operand. The
...
practical consequence of this is that "-" is treated the same as a file name,
and can't have options specified after it. This is consistent with other
utilities and with POSIX.
2003-06-26 23:06:52 +00:00
bjh21
c3c8be9c37
WARNS=3 seems to work here, so use it.
2003-06-26 23:00:07 +00:00
bjh21
5b24c0821c
Delint. This largely involves using size_t and off_t appropriately rather
...
that throwing around unsigned long long. There are a few LINTED comments
where I'm sure overflow can never occur, and with these lint gives this
a clean bill of health.
2003-06-26 22:49:53 +00:00
wiz
664b3c96d5
Misc mdoc fixes (mostly quoting).
2003-06-26 18:21:45 +00:00
wiz
aa313073c8
Add Ns where needed.
2003-06-26 18:14:41 +00:00
wiz
1a75c7b75b
Replace Ql by Sq and Dq where appropriate.
2003-06-26 18:14:21 +00:00
wiz
e1360c896f
No mdoc macros in a man-type man page.
...
XXX: should be converted to mdoc.
2003-06-26 18:02:38 +00:00
wiz
cf60347dc3
No mdoc macros in a man-type man page.
2003-06-26 17:58:50 +00:00
wiz
63a56a56a0
Switch two macros so that both work as intended.
2003-06-26 17:53:33 +00:00
wiz
80cc7b7a7b
Quote punctuation so macro works on it (another one).
2003-06-26 17:48:37 +00:00
wiz
e6ebf10cb2
Quote punctuation so macro works on it.
2003-06-26 17:47:59 +00:00
wiz
fb538fbb96
Change macro usage so it works correctly with 1.19.
2003-06-26 17:46:36 +00:00
wiz
8ea3e956e8
Add another Ns to avoid a space.
2003-06-26 17:14:13 +00:00
wiz
8128a46b63
Add Ns to avoid a space.
2003-06-26 17:13:44 +00:00
wiz
7533801933
End sentence with a dot.
2003-06-26 17:00:55 +00:00
wiz
323aeda0d6
Fix quoting.
2003-06-26 16:48:20 +00:00
tshiozak
e376aa8308
Citrus iconv support(3)
...
add host tools : mkcsmapper and mkesdb
mkcsmapper - coded character set mapping table compiler
mkesdb - encoding scheme database compiler
2003-06-26 06:30:07 +00:00
christos
88fd58993a
In no-main mode [rpcgen -C -m], don't declare _rpcfoo variables static.
...
Let the main program declare them extern if it wants, otherwise we get
link failures for variables not defined.
2003-06-25 19:31:08 +00:00
dsl
630ca1a3e3
Revert previous. 'None' means that the "Utility Syntax Guidlines" apply.
2003-06-25 12:56:59 +00:00
dsl
0ac8c637fd
Remove getopt() loop, IEEE 1003.1 doesn't say that printf(1) should conform
...
to the "Utility Syntax Guidlines".
Fixes PR 21970.
2003-06-25 09:54:15 +00:00
bjh21
0de24d10b1
Light KNF and comment tidying.
2003-06-24 18:45:08 +00:00
mjl
91085f010d
Add sys/sockio.h to needed includes for SIOCGIFASYNCMAP.
2003-06-24 11:27:50 +00:00
bjh21
c8e096241e
Use pathconf() to get the value of {NAME_MAX} for the current directory,
...
rather than relying on the #defined one (which is wrong on NetBSD).
Dynamically allocate the filename buffer to fit.
2003-06-24 00:09:26 +00:00
aymeric
9bdcb47acd
add missing #ifdef __RCSID
...
(these files are compiled as host tools)
from Nicolas Ollinger, fixes PR#21892
2003-06-23 20:02:53 +00:00
agc
a8d6388e6f
Add NetBSD RCS Ids.
2003-06-23 13:05:47 +00:00
agc
c0db2196e7
Add NetBSD RCS Ids.
2003-06-23 12:15:00 +00:00
christos
fc24d74cc3
PR/21645: Mishka: Localized comments don't work with indent.
2003-06-19 15:45:22 +00:00
christos
1f975a33c3
fix fallout from previous ansification (thanks to Juergen Hannken-Illjes)
2003-06-19 11:16:13 +00:00
jrf
285b019fd8
This addresses PR21693. Under certain conditions, su -m will fail because
...
the pointer to /etc/shells is pointing to the second entry. This change
resets the pointer before looping through the file again. FreeBSD does
this as well. Commit approved by christos and thanks to Geoff Adams for
catching and reporting it.
2003-06-18 21:02:03 +00:00
christos
2658386875
Ansify.
2003-06-18 20:51:00 +00:00
dsl
18439070c7
Do not let the cursor sit on menu lines that do nothing.
...
(Maybe page up/down should behave similarly - but that one is harder)
2003-06-16 20:57:43 +00:00
lukem
9f376c42d4
Don't coredump when printing '%n' in the prompt if there's no username yet.
...
Fix from Maxim Konovalov <maxim at freebsd dot org>.
2003-06-15 13:49:46 +00:00
joff
2c4a7474a0
use TCP_NODELAY
2003-06-14 22:43:31 +00:00
drochner
96b62d8a69
no need to #include <sys/dkstat.h>
2003-06-11 17:26:31 +00:00
tron
e290120150
Remove old, unused and unsafe shell scripts as suggested by Jeremy C. Reed
...
on "current-users".
2003-06-11 16:22:10 +00:00
briggs
4441128638
Support negotiation and use of TFTP Option Extension (rfc 2347) for the
...
'blksize' option (rfc 2348) and the 'timeout' and 'tsize' options (rfc 2349).
Contributed by Wasabi Systems, Inc.
2003-06-11 01:43:52 +00:00
hubertf
ccaf934316
Escape backslashes properly. Fixes PR 6679.
2003-06-10 21:27:16 +00:00
dsl
62a063f96b
Change msg_window() to return old window (temp buffer size isn't too important)
...
Change msg_promt_win() to create the window.
Number MSG_xxx from 1 (because 0 is NULL)
2003-06-10 17:24:17 +00:00
dsl
19605a628c
Add extra command 'allow dynamic messages' which will push all texts through
...
the msgc translation service.
Allow for texts being NULL as well as "", don't use strlen() to test for "".
2003-06-10 17:19:04 +00:00
bjh21
0b52d9cd7b
From FreeBSD:
...
Allow "-" to be specified as an operand as well as an option.
SUSV3 requires something like "split -- -" to work. Document the "-" operand.
2003-06-10 16:57:05 +00:00
bjh21
2ef4680e17
Add support for the -a option, which should fix standards/11226.
...
Code from <hiramatu@boreas.dti.ne.jp>, with improvements from me.
Manual page updates from FreeBSD.
2003-06-10 16:32:54 +00:00
dsl
3c95a92e07
More changes to improve sysinst:
...
- pass 'menudesc' and 'arg' values to post_act() and exit_act()
- add set_menu_numopt() for variable length menus
- fix (badly broken) allocation/free of dynamic menus
- option to allow default selection to be the exit line
2003-06-09 18:48:40 +00:00
aymeric
36f363a1cc
bump to nb9 after fixing PR#21797.
...
"flooding nvi['s insert mode] leads it to dump core"
2003-06-06 08:09:38 +00:00
aymeric
baffc152bc
When an error occurs in v_txt(), leave input mode too.
...
Otherwise, (among other things) db_get() thinks it can re-use the TEXT buffers
when it's not true, leading to a crash because that TEXT buffer will be
released just before it is actually used to create a new one.
This fixes PR#21797.
2003-06-06 08:06:47 +00:00
atatat
85cee2b43a
Add -h to cal, which makes it highlight the current date, if it's
...
present in the displayed calender. It uses libtermcap to discover the
proper sequences to turn on bold, or uses overstriking if output is
not to a terminal. If you use two -h options with terminal output,
the date is presented in reverse video instead of bold.
Next we'll have to make the Gregorian gap vary with TZ settings, since
the current method (do it only for September 1752) is decidely
Anglo-centric. ;-P
2003-06-05 00:21:20 +00:00
dsl
3f8c566477
Add 'exit' (for exit text) parameter to new_menu() for dynamic menus.
...
Correct calculation of menu height and whether scrolling needs (was wrong
if a height was specified that was smaller that the number of lines needed).
Move keypad(m->mw, TRUE) to stop core dump when newwin() fails.
Allow for calling code hacking m->h (to reduce number of lines displayed).
Add a MC_NOCLEAR option to leave menu text showing when doing action.
2003-06-04 19:07:39 +00:00
dsl
15cd94ddd8
Add msg_prompt_win() that will prompt in the specified window (instead of
...
the default one), and with a box around the window if >= 3 lines.
Stop the char delete from killingthe RHS of any box.
Make msg_string a noop for invalid strings (might be quoted text).
2003-06-04 19:00:26 +00:00
dsl
6af8425f81
Add a 'void *' argument to process_menu() so that some more global variables
...
can be killed.
2003-06-03 11:51:56 +00:00
dsl
76c4788c16
More trivial changes...
...
Exclude '<: page up, >: page down' line from m->h count to simplify code.
2003-06-03 08:49:53 +00:00
matt
78735dbbe5
For a library, only check in cmtime (children's modification) if there are
...
children. This prevents spurious out-of-date failures when you have a
rules checking for a library's existance (and no children).
2003-06-02 21:49:00 +00:00
dsl
99778eca69
Whitespace and other layout stuff.
...
Change an elsif sequence to switch()
2003-06-02 21:19:35 +00:00
kristerw
158e4448b0
Shorten long lines.
...
Some whitespace changes to get closer to KNF.
2003-06-01 22:04:29 +00:00
thorpej
d6c02b1523
"objcopy --redefine-syms-file" is now "objcopy --redefine-syms".
2003-06-01 02:03:22 +00:00
kristerw
f4b0e187e9
Fix some lint warnings.
2003-05-30 23:08:12 +00:00
kristerw
7e5434fe39
Remove stuff that are not needed any longer.
2003-05-30 22:33:58 +00:00
kristerw
b86c323d39
Simplify handling of memory allocation, and make sure all return values
...
from malloc etc. are handled.
This removes the old behavior to retry the operation with a less memory-
consuming method in case malloc failed (this mechanism has never really
worked, and is hard to test. Besides, it is less useful now than it was
20 years ago when the code was written...)
2003-05-30 18:14:13 +00:00
christos
fb6b32b11b
Back out debugging Makefile.
2003-05-30 13:38:09 +00:00
christos
e3071c679b
PR/21706: Krister Walfridsson: CVT nodes not handled in ?: expressions.
2003-05-30 13:37:49 +00:00
minoura
9e27136527
Correct some Japanese entries.
...
- Add New Year's Day
- Adults Day -> Coming-of-Age day
- Girl's Day is not a holiday
- Constitution Day is 5/3
- There's no Boy's Day on 5/1; maybe 5/5? (which is now Children's Day)
- Add Ocean Day (7/20)
Need sort?
2003-05-30 05:11:25 +00:00
simonb
ae46649fa5
Pass a NULL to getbsize() for any arguments that aren't needed, and
...
remove the otherwise unused variables.
2003-05-30 00:17:25 +00:00
christos
7d2c2eeaea
- make all targparam.h files consistent with the arch includes
...
- add a new INTPTR_IS_LONG define and use it.
- XXX: the PTRDIFF, SIZEOF, INTPTR defines really make lint more relaxed
in some platforms than others. We should really be looking for the
particular tokens to enable this kind of checking. I.e.
now:
char *p;
int foo = (int)p;
does not produce a warning on INTPTR_IS_LONG == 0 platformas.
In reality it should only elide the warning if:
char *p;
int foo = (intptr_t)p;
but it is not that smart (yet).
2003-05-29 18:12:13 +00:00
kristerw
2a9882e7e9
Be consistent with use of types (e.g. do not use LINENUM for quantities
...
that are not line numbers).
2003-05-29 00:59:23 +00:00
kristerw
a5348cc746
Remove a duplicated entry.
2003-05-28 23:14:03 +00:00
dsl
b5a44ece1f
Look at mode of program being run, not of ldd when deciding whether to
...
use LD_LIBRARY_PATH.
2003-05-28 20:45:39 +00:00
dsl
31cb6aba03
Reinstate our STOP handler before curses installs its one.
...
Ensures that both handlers are executed on subsequent stops.
2003-05-28 20:17:14 +00:00
pooka
241a9c6d03
Adapt to new magic compilation behaviour: copy magic.mime to objdir
...
before compiling it so that we get the output also in the objdir instead
of the distdir
2003-05-26 13:42:33 +00:00
lukem
9014bdbce6
* Document $RCMD_CMD in environ(7).
...
* Cross-reference rcmd(1), rcmd(3), and environ(7) as appropriate.
Should fix [bin/21670] from Geoff Wing.
2003-05-26 10:18:39 +00:00
wiz
54fa9685f1
End sentence with a dot.
2003-05-24 23:37:00 +00:00
bjh21
62cb0dbbca
Add reference to uname(1). Don't claim that machine(1) is under development,
...
since it isn't, and suggest that it might have originated in 4.3reno.
2003-05-24 22:54:43 +00:00
christos
0fe2b9e22b
handle void ({ })
2003-05-24 22:17:46 +00:00
jmmv
5fa5de38b4
Use ; instead of , in a sentence (and fix case of next word).
2003-05-24 18:24:28 +00:00
wiz
7fbb5054ee
New sentence, new line; bump date for last.
2003-05-23 18:15:17 +00:00
christos
7ce8fa7806
PR/10917: John Hawkinson: Document $MAKE and say which one we want to be using.
2003-05-23 17:25:10 +00:00
christos
11dc6dfd26
PR/19781: Thomas Klausner: make error message not helpful on unclosed ${var:foo
2003-05-22 18:20:10 +00:00
yamt
0c0dee33b1
protect from signals properly.
...
(fix crashes when get SIGINFO.)
2003-05-22 15:48:44 +00:00
yamt
9847a81452
rename a global variable, 'entry', to 'g_entry'.
...
it was confusing because we have many local 'entry' variable.
2003-05-22 15:47:25 +00:00
hubertf
34f17e9696
set s_proto properly
...
XXX this doesn't help with rsh insisting on a reserved port, which of course
fails for non root users. and which only seems to happen when given
ports >1023, funny enough. anyone? :/
2003-05-22 02:14:03 +00:00
simonb
f7ed8a7482
Move one group of #define's so this looks more like ilp32.h.
2003-05-21 12:09:39 +00:00
christos
1a57478e96
Better implementation of ({}) gcc extension.
2003-05-20 13:59:32 +00:00
wiz
3443db5bce
Sync usage with man page; break to 80 chars/line.
2003-05-20 08:34:52 +00:00
wiz
5a5ddfd30b
More option sorting; sync -f argument name with db.c.
2003-05-20 08:32:42 +00:00
wiz
3b86e27c3d
Sort options. New sentence, new line.
2003-05-20 08:27:39 +00:00
seb
8875d36598
Bump date for last change.
2003-05-19 00:28:37 +00:00
seb
c4cd748ebd
Add option -S to specify strvis(3) encoding of keys and/or values
...
when reading a database. Add options -T and -X to tweak encoding.
Add option -U to specify strunvis(3) decoding of keys and/or values
when writing a database or deleting entries from a database.
Kill TODO item 'add option to strunvis(3) key (& value) from infile
?': unvis(1) can be used to achieve that.
Approved by lukem@. And thanks to him for suggestions.
2003-05-19 00:27:06 +00:00
kristerw
8e46e7bae0
Prevent use of stale pointer for determining return type of ({ })
...
expressions.
Details:
lint did fail on constructs like
struct foo *x;
x = ({ struct foo *y; /* do stuff */; y;});
since it gave the whole ({ }) the same structure representing the
type as y, but that structure is reclaimed when y goes out of scope.
2003-05-18 23:30:00 +00:00
lukem
91618e1c90
-N also prevents NUL termination of value
2003-05-18 12:26:18 +00:00
lukem
f5dd9322ee
Set CAP_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
...
overriding TARGET_ENDIANNESS.
2003-05-18 08:20:34 +00:00
lukem
826a14607a
Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op),
...
there's no need to special-case .include-ing it.
2003-05-18 07:57:31 +00:00
itojun
4005e1b9e9
use strl*
2003-05-17 21:05:10 +00:00
itojun
0e1bb4cd82
use strlcat/strlcpy
2003-05-17 21:03:21 +00:00
itojun
7b631c16fa
scanf overrun
2003-05-17 14:58:53 +00:00
itojun
9e248e087b
sscanf overrun
2003-05-17 14:58:19 +00:00
itojun
aa5672d8c5
sscanf overrun
2003-05-17 01:02:01 +00:00
dsl
826d79a6f7
Re-instate last change, the sysinst I've just commited doesn't stand
...
a chance unless those fields are const char *.
2003-05-16 19:57:22 +00:00
dsl
cd7432d0cb
Add an extra target to the xxx.mk file that is equivalent to 'all', but which
...
doesn't pick up baggage from bsd.own.mk and bsd.prog.mk.
This stops parallel makes exploding because they try to build ${PROG} to soon.
Fixes toolchain/21563 (with change to src/distrib/common/Makefile.crunch).
Upped version of crunchgen to 0.3
2003-05-15 17:49:46 +00:00
dsl
d9380c052a
Print rval[1] if non-zero and present in the trace entry.
...
To get both fd numbers for pipe().
2003-05-15 12:57:54 +00:00
itojun
5bce78caa7
use strlcpy
2003-05-15 01:00:07 +00:00
itojun
01b2c2d070
simplify by asprintf/strdup
2003-05-15 00:52:53 +00:00
itojun
d83368eddb
use strlcpy
2003-05-15 00:47:48 +00:00
itojun
47d22404d4
use proper #ifdef to determine behavior (__KAME__)
2003-05-14 23:36:32 +00:00
itojun
56d0ea03cf
>implement kerberos over ssh2 ("kerberos-2@ssh.com"); tested with jakob@
...
>server interops with commercial client; ok jakob@ djm@
markus@openbsd
2003-05-14 18:22:07 +00:00
wiz
d75f1336b3
Uppercase URL.
2003-05-14 14:30:59 +00:00
wiz
de87ca793d
constant usually has two n.
2003-05-14 12:45:06 +00:00
wiz
ae83539ff6
setup -> set up.
2003-05-14 12:22:56 +00:00
dsl
606b795c6a
Add a .WAIT to ensure that all the program objects are built before
...
trying to build the crunched binary.
Might fix toolchain/21563
2003-05-14 11:20:01 +00:00
dbj
f1e0ecadf7
remove dependencies on ${LIBC} ${LIBM} and ${LIBTERMCAP} static libraries
...
from host tool targets. Commits fix from PR toolchain/21495
2003-05-14 00:24:06 +00:00
christos
2d67d54fef
PR/21568: Martin Husemann: Shutdown gets permission denied error from wall
2003-05-13 23:05:34 +00:00
tshiozak
f664dc53f3
zero-clear the file structures, to fixate paddings.
...
this change solves the illness pointed out by Nino Dehne in tech-userlevel
list.
2003-05-12 06:05:52 +00:00
jmmv
afa06162bc
Remove extra space in usage message.
2003-05-10 19:21:40 +00:00
jmmv
e4fa47aa78
Use `-ne' to compare numbers instead of `!=' in the example.
2003-05-10 17:02:04 +00:00
simonb
729eb06bdf
If no files are specified on the command line, put { ".", NULL } in
...
it's own little array instead of writing over argv. Fixes problems
where du shows up in ps as ". fts_open `%s'" (and shorter or longer
combinations of that depending in what argc was).
2003-05-10 02:09:39 +00:00
dsl
13d371ab4c
Make the prog.mk makefile run make in each of the target directories and
...
then build the program itself.
This means that changes to any of the program source files cause the
crunched binary to be rebuilt.
Seems to work ok with the sysinst ramdisks.
2003-05-09 12:10:15 +00:00
lukem
b86763939b
Revert part of previous, and remove "const" from "char *opt_name" and
...
"char *title", since it causes compile problems for the only program
that uses menuc (sysinst).
2003-05-09 12:07:53 +00:00
dsl
66fb8e715d
Need 'const' on local variable - since I added const to the structure field.
2003-05-09 10:24:50 +00:00
dsl
13d47d34ac
Finger trouble in previous commit.
2003-05-09 10:21:43 +00:00
wiz
de2f2d8752
Only fclose file if it is open. From Tim Robbins (tjr@freebsd).
2003-05-09 08:44:57 +00:00
wiz
846b4ae5e2
Join some lines; mdoc improvements; use more macros.
2003-05-09 08:20:27 +00:00
dsl
7eb71f323d
Update man page for recent changes, update code to match man page...
2003-05-09 07:30:50 +00:00
phil
706027816a
Remove extra characters in example strings.
2003-05-09 05:28:30 +00:00
dsl
b143b30e1c
Accept variable names for menu titles and options to allow internationalisation.
...
Allow user code to define a hook to lookup message texts before any get used.
It is now possible to have a langauge independant menu file.
2003-05-08 16:20:56 +00:00
wiz
9029b1ef5d
Bump date for last.
2003-05-08 13:07:10 +00:00
atatat
ee00aa727c
Add %B to print the st_birthtime of an inode (adjusting the "raw"
...
format and "shell" format appropriately), and rename the st_*timespec
fields in the shell-style output to be st_*time, since that's what
they really are.
2003-05-08 13:05:38 +00:00
dsl
f579b0bca7
Let page up/down go to first/last menu item when it is already showing.
2003-05-07 16:54:39 +00:00
dsl
13bfd47102
Add left and right arrows to list of keys that page menes up/down.
...
Make 'page down' go to 'exit' extry on menu (not stop one short).
Make 'exitstring' imply 'exit'.
2003-05-07 16:39:45 +00:00
dsl
8e5fd09823
Actually update man page for change to not show unused pools.
2003-05-06 10:17:02 +00:00
dsl
615387287b
Make vmstat -m skip memory pools that have never been used - unless -v given.
...
Update man page to match.
2003-05-06 10:10:11 +00:00
wiz
36e4d83a5e
Grammar and mdoc fixes. Bump date for last two.
2003-05-06 08:22:08 +00:00
atatat
535d709586
Build main.c with LOCKDEBUG defined so that it gets the larger kbit
...
definition. Since we're now passing it into pmap.c which is already
compiled that way, it would be nice if it was the right size.
Also, fix a memset bug that caused a segmentation fault when printing
the kernel's vm_map.
2003-05-04 15:09:45 +00:00
christos
b0eade51fd
improve error handling and knf.
2003-05-03 15:57:11 +00:00
gmcgarry
2b0514ca6b
Xref nls(7). Addresses PR#14576.
2003-05-02 08:35:42 +00:00
gmcgarry
e00d2f72dc
Some more ktruss documentation from Christian Biere <christianbiere@gmx.de>
...
in PR#17111.
2003-05-02 07:52:23 +00:00
gmcgarry
9256662c6b
Explain what ktruss does. Document -l, -R and -T options.
...
Addresses PR#10458.
2003-05-02 07:40:20 +00:00
wiz
a63657f6f4
Comment out another euc(4) reference.
...
Prefer mdoc to man plain roff.
Use \*[Lt] and \*[Gt] instead of < and > for HTML output, but prefer
.Aq if possible.
"a, b, and c" instead of "a, b and c".
2003-05-01 09:45:03 +00:00
gmcgarry
57e1c07c62
Remove references to non-existent pages. Addresses PR#12544.
2003-05-01 08:09:57 +00:00
agc
44481e1ab2
Pull in <sys/param.h> explicitly.
2003-04-29 17:55:00 +00:00
wiz
abe0b8ad64
Use .Aq instead of \*[Lt]...\*[Gt]; sort SEE ALSO; add some more commas;
...
new sentence, new line; fix some mdoc nits.
2003-04-28 09:38:19 +00:00
augustss
86be450da2
Add missing comma.
2003-04-28 09:26:34 +00:00
jdolecek
f906986ad4
one <sys/cdefs.h> include is enough
...
fixes PR misc/21340 by Igor Sobrado
2003-04-27 11:09:57 +00:00
wiz
aa64771356
Drop trailing space.
2003-04-27 11:09:29 +00:00
jdolecek
e13853c3cc
one <unistd.h> is enough
...
fixes PR misc/21339 by Igor Sobrado
2003-04-27 10:38:42 +00:00
jmmv
ab753cc4ce
Implement the `-d' option, which behaves as `-l' but does not change the
...
current directory. Idea suggested by dsl@ in source-changes.
2003-04-27 08:46:25 +00:00
mycroft
3ba2d8197a
Only unset ENV if -f was used, AS THE CHANGE WAS DOCUMENTED.
...
I'm not convinced this is a good idea at all, but at least this fixed my usage.
2003-04-25 08:04:14 +00:00
mjl
f694ad9267
On second thought, move BSD to calendar.computer.
...
While there, spell Dijkstra correctly.
2003-04-24 13:36:19 +00:00
mjl
5082020546
Correct dates for Talbot and Zuse. Aristotle surely died only
...
once (though I have not been able to confirm the exact date).
Add NetBSD/FreeBSD birthday too for good measure.
Most of the changes from FreeBSD with corrections.
2003-04-24 13:29:23 +00:00
wiz
287057db85
Bump date for last.
2003-04-24 12:19:06 +00:00
wiz
70f9b8f89a
Sort sections.
2003-04-24 12:11:17 +00:00
wiz
64ef7a20ff
Sort sections, sort SEE ALSO, bump date for last.
2003-04-24 12:06:56 +00:00
wiz
4880d466e5
Remove duplicate unistd.h inclusion. Igor Sobrado, PR 21300.
2003-04-24 08:22:05 +00:00
mycroft
e7a1f4e518
Catch up with ld.elf_so.
2003-04-23 21:39:08 +00:00
bjh21
76a26cefcd
This is a host tool, so check if __RCSID is defined before using it.
2003-04-21 08:41:28 +00:00
christos
34ffdb33ed
enable RCSID..
2003-04-21 02:03:41 +00:00
christos
45aed1fbde
PR/7713: David Holland: warn if we have mesg n.
2003-04-21 00:05:30 +00:00
christos
73b3e2ae58
separate the term check stuff.
2003-04-20 23:53:04 +00:00
christos
c71d457343
PR/5803: Gregg A. Woods: su doesn't support it's "-f" option for sh and/or ksh
...
fixed by unsetenv("ENV") when -f is set and the shell is not csh.
2003-04-20 20:13:20 +00:00
christos
5ca06f36e7
PR/5123: Ignatios Souvatzis: make patch exit gracefully on malformed input.
2003-04-20 19:37:08 +00:00
christos
c6f13c73f2
Mention that -t is harmful.
2003-04-20 03:55:38 +00:00
christos
3a1e3ae4c9
Add flags to look in Apparently-To: or Delivered-To: fields. Inspired by jhawk.
2003-04-20 03:32:50 +00:00
christos
3de451fe1e
PR/5039: Greg A. Woods: vacation should look at Apparently-To: and
...
Delivered-To: headers.
2003-04-20 01:58:00 +00:00
christos
ec5141c96b
PR/3046: Chris G. Demetriou: ldd actually runs target programs.
...
This is the case only with a.out programs, and the manual page has been
changed to reflect that in the BUGS section. Since most our architectures
have been converted to elf, this is not an issue anymore.
2003-04-19 23:45:44 +00:00
christos
b2ee3e403d
improve on previous. only adjust the length when it exceed the string length.
2003-04-18 18:46:26 +00:00
christos
c0b1f367f4
Recovery of vi files has been broken for a long while. This patch is a
...
stopgap measure to make vi recovery mostly functional on non-binary files.
The problem is that the db holding the recovery file can become corrupted,
in which case the data size of the line becomes huge. We use heuristics to
correct the size when we load a db in recovery mode. We could use a slightly
better heuristic (looking for ascii chars before correcting the length),
but it is not worth it. Another way would have been to trap the SEGV and
access data[len] and see if that worked, but that seemed exceedingly ugly.
2003-04-18 18:33:41 +00:00
christos
b8dae40722
Don't invoke the grep for cleandir and obj targets. Suggested by
...
Juergen Hannken-Illjes
2003-04-18 14:43:49 +00:00
grant
7cc8271010
add -g for output in gigabytes.
2003-04-18 13:16:50 +00:00
grant
1c5efa0509
humanize_number() actually prints 'K' as the suffix for 1024 ('k' is
...
used for 1000).
minor whitespace fix.
2003-04-18 13:09:22 +00:00
lukem
ef83aa34d9
clear errno before strto(u)l() if we're going to test it for ERANGE afterwards
2003-04-18 03:21:00 +00:00
sjg
414c86b6d1
math.h is not needed and including it introduces uncessary dependencies
...
on some systems.
PR: 21204
2003-04-17 15:57:52 +00:00
wiz
472351e13d
Use
...
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
wiz
817f471b97
Sort options in usage.
2003-04-16 12:15:07 +00:00
wiz
64a9f92514
Sort options in SYNOPSIS, grammar fix.
2003-04-16 12:12:08 +00:00
salo
fd97a8372a
add pathchk(1) (hi jdolecek!)
2003-04-16 11:35:10 +00:00
wiz
7b31891279
Bump date for last.
2003-04-16 09:44:07 +00:00
wiz
571cc9f1c1
Dd month argument should not be abbreviated.
2003-04-15 20:40:28 +00:00
jdolecek
6080567943
bump date, and fix typo in macro name (.Nx, not .Nm)
2003-04-15 19:49:30 +00:00
jdolecek
938f344d52
add POSIX.2 patchchk(1) utility - check pathnames
...
from FreeBSD via Jonathan Perkin
fixes PR standards/11198 by Ben Harris
2003-04-15 19:46:38 +00:00
itojun
01757d86d6
make char array bigger where it seems too small and may overrun.
2003-04-15 08:07:10 +00:00
itojun
faef962caf
need 12 chars for %d; deraadt
2003-04-15 08:02:58 +00:00
mrg
0634cd7fff
fix build errors
2003-04-14 03:02:28 +00:00
mrg
1492c6b657
merge less 381
2003-04-14 02:56:45 +00:00
mrg
e0555382b4
import less 381. changes:
...
v375 4/7/02 Fix searching for SGR sequences; fix SECURE build;
add SGR support to DJGPP version (thanks to Eli Zaretskii).
v376 6/10/02 Fix bug in overstriking mulitbyte UTF-8 characters
(thanks to Jungshik Shin).
Posted to Web page.
-----------------------------------------------------------------
v377 9/10/02 Fix bug in Windows version when file contains CR;
fix bug in search highlights with -R;
make initial buffer limit really be 64K not unlimited.
v378 9/30/02 Misc bug fixes and compiler warning cleanup.
Posted to Web page.
-----------------------------------------------------------------
v379 11/23/02 Add -L option; fix bug with ctrl-K in lesskey files;
improve UTF-8 overstriking and underscore overstriking;
fix minor man page problems; change to autoconf 2.54.
v380 11/24/02 Make LINENUM same as POSITION.
v381 11/28/02 Make -N use 7 columns for line number if possible.
2003-04-14 02:09:56 +00:00
christos
aa5b09ddbf
PR/21117: Robert Elz: Makefile-ioctl.c mishandles dependencies
2003-04-13 05:04:00 +00:00
christos
efc2b2a122
PR/9513: Graywolf: ypmatch fails on mail.aliases, mail.byaddr from Solaris
2003-04-12 09:13:28 +00:00
tsutsui
04568b646b
Link libz after libmagic otherwise it fails on NOPIC ports.
2003-04-12 02:15:22 +00:00
thorpej
744fb366d9
Update for cached physical addresses in the pool caches.
2003-04-09 19:02:29 +00:00
aymeric
a069ac021f
Fix a bug where window(1) would (appear to) miss a character when two
...
characters are typed fast one after the other (<10 ms).
The visual effect under vi(1) was even more impressive. ;-)
This bug was actually introduced inadvertantly in 1995 in rev 1.4.
2003-04-09 16:25:10 +00:00
jdolecek
f0f862a9f6
rename local macro blancmange() to SKIP_BLANKS(), to clarify what
...
it does and to better signal it might modify it's arguments
fixes PR bin/20546 by Peter Seebach
2003-04-09 09:30:40 +00:00
wiz
0aa9f9348a
Fix part of last.
2003-04-08 21:09:40 +00:00
christos
9d921a9a8d
PR/1523: Chris Demetriou: don't count a library as built, if there is no way
...
to build it.
2003-04-08 17:46:59 +00:00
jmmv
d20b88e377
Homogenize paragraphs to begin with capital letter. Fixes my own PR misc/18773.
2003-04-08 17:25:15 +00:00
wiz
a659d8b26d
Bump date for last.
2003-04-08 11:56:07 +00:00
dsl
d20417ef01
Add -t tabstop to synopsis for unexpand
2003-04-08 10:50:30 +00:00
dsl
f15823e97e
Add -t tabsize to fix bin/21058
2003-04-08 10:47:03 +00:00