itojun
c66d2bd6ee
Don't age non-gateway host routes. PR bin/22568 from Andrew White
2003-08-22 08:24:26 +00:00
martti
27017e5a9a
Added a note about pwd_mkdb when using the -d switch.
2003-08-22 07:04:39 +00:00
tsutsui
3422a6eafe
Fix Typo.
2003-08-20 13:07:41 +00:00
itojun
7fb76a1cf3
no longer in use
2003-08-20 01:31:12 +00:00
itojun
7f5c6fbfb1
use strlcpy
2003-08-19 22:22:27 +00:00
yyamano
9d1bacfdb9
fix typo.
2003-08-18 16:12:58 +00:00
itojun
757e458559
SIOCGIFCONF -> getifaddrs conversion
2003-08-18 05:39:52 +00:00
itojun
916585ff14
SIOCGIFCONF->getifaddrs conversion
2003-08-17 22:34:17 +00:00
itojun
cdf8146ccf
SIOCGIFCONF->getifaddrs conversion
2003-08-17 22:12:43 +00:00
itojun
f4c0491af5
one more SIOCGIFCONF->getifaddrs conversion
2003-08-17 21:43:29 +00:00
itojun
0f6ff2de74
rewrite SIOCGIFCONF into getifaddrs(3)
2003-08-17 21:36:56 +00:00
martin
b1fbf8b8ca
Add an example for creating a bootable i386 floppy.
2003-08-16 18:42:53 +00:00
itojun
c4191f3816
plug memory leak. PR misc/22479
2003-08-14 10:06:36 +00:00
atatat
4e34961a55
Jobs specified for @reboot are only popped into the job queue at cron
...
startup time ("reboot" of cron, not the system), so okay_to_go() must
always say they are good to go. Otherwise they never will. All other
meta-timetags pertain to regular times, so they are (or were)
unaffected.
Problem noted by tron and successfully assigned to me by perry.
2003-08-13 03:51:15 +00:00
dsl
66673ac6a2
Fix display of fslevel (was almost always 0)
2003-08-12 13:15:35 +00:00
itojun
9088831850
tabify
2003-08-11 16:20:11 +00:00
grant
3319bc243a
we already print "creating package ..." in pkg_perform(), no need to
...
say it twice :)
2003-08-10 12:27:08 +00:00
agc
326b2259b7
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22366, verified by myself.
2003-08-07 11:25:11 +00:00
jmmv
18ccc9b90c
Add and use the log_err, log_errx, log_warn and log_warnx functions that act as
...
wrappers for err, errx, warn and warnx respectively when running in foreground
and call syslog functions when running in daemon mode.
Also add and use an extra log_info function for other types of information.
2003-08-06 23:58:40 +00:00
jmmv
a79323123c
Add the `action' mode, which can be used to associate commands with mouse
...
button events. This mode needs to be explicitly enabled at runtime, and
does nothing if not configured.
As there are now two different modes available, adjust the manpages
accordingly, describing what they do and how they work separatedly.
While here, remove a bunch of unused stuff (event syntax) from config file
parsing. This was initially added with this new mode in mind, but it has
not been used to make it a lot simpler.
2003-08-06 22:11:48 +00:00
jmmv
15ba121760
- Let the main program handle multiple run modes easily. Each one is
...
described by a structure with pointers to functions.
- Clearly separate the "selection" mode (which provides copy and paste support
in console) from wsmoused's main program.
- Added the "modes" property to the configuration file and the "-m" command
line option to specify which modes should be activated. (this is mostly
useless for now, as only the "selection" mode exists; a new mode will
be added soon, hopefully).
- While here, several style fixes according to share/misc/style.
2003-08-06 18:07:53 +00:00
mrg
134561f7df
- convert header() away from a signal function (it does all sorts of stdio
...
and more) and use a little sig_header() helper.
- in selectdrives() make sure we don't overwrite some arrays. this makes
"iostat 1" work again on my really wide screens where defdrives (number that
can fit) was > ndrives (number of drives), rather than dump core trying to
print (char *)1...
2003-08-04 01:05:44 +00:00
lukem
a93ea220fc
Rework how dependency generation is performed:
...
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
This is a change of behaviour. If a Makefile wants the clean semantics
it must specifically append to CLEANFILES.
Resolves PR toolchain/5204.
* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
that have a suffix of: .c .m .s .S .C .cc .cpp .cxx
* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES
* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS}
* Deprecate the (short lived) DEPENDSRCS
Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.
Tested with "make -j 8 distribution" and "make distribution".
2003-08-01 17:03:41 +00:00
lukem
87b1d00a0c
remove unnecessary dependency now that bsd.rpc.mk adds to DPSRCS
2003-07-29 02:48:47 +00:00
itojun
de3e7a8bf6
debian bug id "sup 1.8-8, bug #175327" - temporary file symlink race
2003-07-28 23:13:17 +00:00
lukem
eb51573bd7
Use ${DEPENDSRCS} as a target instead of .depend, now that
...
<bsd.dep.mk> builds .depend from .dep files.
2003-07-28 15:25:02 +00:00
lukem
0283225f29
Explicitly pull in <sys/endian.h> #if !defined(HAVE_CONFIG_H).
...
(I prefer to be explicit about this, since installboot uses the endian
macros a lot)
2003-07-27 07:53:26 +00:00
lukem
4e59fb5bab
rcsid
2003-07-27 07:51:40 +00:00
salo
d6a8052848
netbsd.org->NetBSD.org
2003-07-25 12:14:10 +00:00
itojun
c7d6ddcd4d
racoon sha2.c is not compatible with openssl 0.9.7, drop support
2003-07-24 14:22:01 +00:00
itojun
adeab29eca
include des.h, not kerberosIV/des.h
2003-07-23 20:31:18 +00:00
itojun
e63468d8cc
split MKKERBEROS4 from MKKERBEROS. based on work by lha at stacken.kth.se
...
(build confirmed with both MKKERBEROS4=yes and MKKERBEROS4=no)
2003-07-23 08:01:24 +00:00
lukem
c0a8541252
oops, typo in previous. should have been COPTS.sha.c. (this was not being compiled anyway, but...)
2003-07-22 12:50:46 +00:00
lukem
77c4c3827a
use COPTS.sha1.c=-O0 to turn off optimization for sha1.c
2003-07-22 12:39:24 +00:00
lukem
0b856bc2de
use CPPFLAGS.filename=... to add file-specific overrides
2003-07-22 11:29:53 +00:00
itojun
18a884bc94
oops, forgot to bump version string
2003-07-22 08:46:03 +00:00
itojun
5d573dd9ce
use bounded string op
2003-07-16 08:22:01 +00:00
itojun
d79a960daf
strlcpy
2003-07-16 06:57:39 +00:00
itojun
6ba71df691
use bounded string op
2003-07-16 06:40:47 +00:00
itojun
16fd25dc05
snprintf
2003-07-16 06:33:11 +00:00
itojun
bd719499fb
use bounded string op
2003-07-15 12:33:17 +00:00
itojun
af8ebb34e7
use snprintf
2003-07-15 12:32:07 +00:00
lukem
a329d6f3f8
add MTREE=mtree back, for systems with some .mk version skew...
2003-07-14 23:16:19 +00:00
itojun
99f12cfafe
use bounded string op
2003-07-14 09:07:22 +00:00
itojun
2372fad140
use bounded string op as much as possible
2003-07-14 08:43:19 +00:00
itojun
47a6a58fe5
use bounded string op
2003-07-14 08:36:34 +00:00
itojun
49a751869e
use bounded string op as much as possible
2003-07-14 06:17:54 +00:00
itojun
5402d14cf4
use boundedd string ops
2003-07-14 06:08:04 +00:00
itojun
041bd7648a
use bounded string op as much as possible
2003-07-14 06:00:44 +00:00
itojun
97a29a12a2
use bounded string ops (one strcpy remaining)
2003-07-14 05:55:38 +00:00
itojun
2a470e2847
use bounded string op
2003-07-13 14:06:06 +00:00
itojun
63b4a66b0f
strlcpy is prototyped in string.h
2003-07-13 14:02:23 +00:00
itojun
1d06004879
use strlcpy
2003-07-13 13:54:02 +00:00
itojun
b98c10dfbb
strdup is simpler
2003-07-13 12:40:17 +00:00
itojun
9e765fb451
use bounded string op
2003-07-13 12:39:08 +00:00
itojun
e8f0e61fd7
use bounded string op
2003-07-13 12:29:20 +00:00
itojun
d0a2aaaa79
use bounded string ops
2003-07-13 12:27:14 +00:00
itojun
7bb0ef551c
use bounded string op
2003-07-13 12:18:55 +00:00
itojun
d9f2774c1e
use bounded string op
2003-07-13 12:08:28 +00:00
itojun
c2e037e2df
use bounded string op as much as possible
2003-07-13 12:07:16 +00:00
itojun
03eefe2ecf
sync w/ latest racoon
2003-07-12 09:02:24 +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
uwe
99b1f08d32
#include <string.h> for memset and memcpy.
...
Caught by gcc 3.3.
2003-07-08 23:33:50 +00:00
uwe
e8eb650251
"extra tokens at end of #endif directive".
...
Caught by gcc 3.3.
2003-07-08 23:26:55 +00:00
abs
e364b78d41
Fix typo in last change (misplaced ');')
2003-07-04 14:11:36 +00:00
wiz
1c59e224c1
Remove superfluous Ns.
2003-07-04 12:56:58 +00:00
wiz
988b927344
New sentence, new line; limit to 80 chars lines.
2003-07-04 12:48:30 +00:00
wiz
1dbe2d9b38
Sync usage with man page.
2003-07-04 12:45:05 +00:00
wiz
67a1a16995
Sort sections, options, grammar fix.
2003-07-04 12:44:12 +00:00
wiz
f9cc3a858b
Bump date for recent changes.
2003-07-04 12:33:11 +00:00
wiz
88c9d9d14b
Fix typo.
2003-07-04 12:17:32 +00:00
itojun
380bdb8dbb
avoid mandoc warning
2003-07-04 07:54:47 +00:00
dsl
d2b9d2f94a
Add some htole32() for host endianness independance
2003-07-04 07:45:06 +00:00
itojun
e1425434e7
no need for __ss_len define any longer
2003-07-04 05:21:26 +00:00
itojun
9f803f2b20
evp.h better fit under cert support
2003-07-04 05:20:45 +00:00
itojun
8172c901e4
support idea/rc5 if they are available. add missing #define.
...
VS: ----------------------------------------------------------------------
2003-07-04 05:17:25 +00:00
jrf
d9791f82a0
This addresses PR 19797, a small patch made by Tor Stormwall to add
...
a simple print statement showing the build directory location after
running config and creating a usage() function instead of using the
goto usage statement. Approved by christos@ and thanks to Tor for
the suggestions and patch.
2003-07-02 16:47:53 +00:00
simonb
c71be29ffd
Use the terminal width to choose the default number of drives listed.
...
Suggested by matt green and (indirectly) enami tsugutomo.
2003-07-02 13:47:57 +00:00
simonb
329fb18071
Pinch code from vmstat to get the number of lines of the terminal, and
...
show the header once per screen instead of fixed at every 22 lines.
2003-07-02 13:20:14 +00:00
simonb
2f35689ef7
Bump the width of the MB/s and t/s fields and show only 3 drives by
...
default. The default display now fits in 80 columns, and looks much
better on modern systems.
2003-07-02 08:35:48 +00:00
wiz
422ac6bdd7
Match example code with example comment; multiple selectors should be
...
separated by semicolons (in BUGS section); from jmc@openbsd.
While here, use more macros.
2003-07-02 08:33:22 +00:00
wiz
e38cc56dbd
Ic Ar -> Ar.
2003-07-01 10:27:47 +00:00
dogcow
62509eec36
make the given example actually work.
2003-07-01 00:08:52 +00:00
wiz
40bce18021
Simplify macro usage.
2003-06-30 11:55:11 +00:00
wiz
96be368bd4
Be more careful about .Sm on/off usage.
2003-06-30 10:49:28 +00:00
wiz
5eaf7230fd
Quote some punctuation (XXX: take care on next import...).
2003-06-30 10:39:28 +00:00
wiz
085295fd9c
Quote some characters.
2003-06-27 23:21:50 +00:00
wiz
f9502382bc
No longer i386-only.
2003-06-27 22:58:30 +00:00
wiz
7fa3ef5ac1
Quote question mark.
2003-06-27 22:56:37 +00:00
wiz
c1be448d85
Quote exclamation mark.
2003-06-27 22:53:52 +00:00
wiz
ff81956eb8
New sentence, new line.
2003-06-27 19:09:02 +00:00
wiz
625d4420e8
Sm off -> Sm on (Sm off...Sm off is not too smart).
2003-06-27 18:58:47 +00:00
heas
566bb2555a
Deref the nv_list pointer and take it's address; cleaner and more clear.
...
as suggested by enami.
2003-06-27 18:42:11 +00:00
itojun
da2e0c851d
err() cleanup, from openbsd-current via kame
2003-06-27 07:49:40 +00:00
wiz
9d3470de48
Remove superfluous .Ek.
2003-06-26 10:10:11 +00:00
wiz
16562717af
Quote % characters in macro lines.
2003-06-26 10:09:05 +00:00
itojun
e195d590d8
make it possible to obtain default router address from any interface (-i).
...
-r might be sufficient.
http://pc.2ch.net/test/read.cgi/unix/1050823044/377
2003-06-26 05:38:45 +00:00
hubertf
33ec91dbc6
deleting as non-root works fine, so don't insist on running as root
2003-06-25 23:12:42 +00:00
heas
3ff52bc3f5
Correct comment string "mkoptions" -> "makeoptions"
2003-06-25 07:02:04 +00:00
heas
626ce79cef
When removing a nvlist entry (describing an option, makeoption, etc) in
...
undo_config, if that entry is the tail of the LL, also update the appropriate
tail point (nextopt, etc).
2003-06-25 06:42:40 +00:00
itojun
daf8a4ad8e
"addrs" is not needed any more
2003-06-25 03:45:02 +00:00
martin
86af37d360
Make child processes log failure to exec scripts.
2003-06-24 09:41:34 +00:00
martin
c7eb05dd91
Clarify description of -v, following a hint from felix zaslavski.
2003-06-24 09:31:17 +00:00
hubertf
e7469f38ad
In "crontab -l", suppress the header lines, just as "crontab -e" does.
...
OK'd by Christos Zoulas and Paul Vixie.
Fixes PR 21705.
2003-06-23 22:36:02 +00:00
martin
3088b1239b
Improve diagnostics a bit, log to syslog.
2003-06-23 21:50:12 +00:00
tacha
7a3ec6c576
Call tgetent only when TERM environment is set.
2003-06-23 16:46:57 +00:00
bouyer
d6242d4312
We can't keep a reference to the value returned by svc_getrpccaller().
...
Instead malloc() some memory and copy the sockaddr returned there.
Fix a bug where after a blocked lock gets granted, the grant message would
be sent to the wrong machine (or possibly to a completely bogus address).
While there, add a NULL check for the return value of another malloc().
2003-06-19 11:13:06 +00:00
agc
7b2c1a6c22
Firstly, let's give credit where credit is due - the idea came from uwe.
...
Add the ability to pkg_info(1) and pkg_delete(1) to take a directory
name for the name of the package, so that shell-completion can help
when finding out information or deleting packages.
2003-06-19 08:54:29 +00:00
itojun
c0ee9a3789
need "a". from jmc@openbsd
2003-06-18 05:06:15 +00:00
atatat
d2f781064e
If the file being stuffed into the config file string for inclusion in
...
the kernel is missing the newline at the end of the file, the string
doesn't get closed properly, resulting in a message from the compiler
about a missing #endif. It's somewhat misleading, so config will now
point it out and compensate for the missing newline.
Addresses PR kern/21920: including kernel config fails in some cases.
2003-06-18 04:19:49 +00:00
itojun
81e3f9cb3f
sync manpage with previous change (addrs# deprecdated)
2003-06-18 02:08:10 +00:00
itojun
8412a300dc
relax addrs#x config parameter. should address PR 21872
2003-06-17 08:08:48 +00:00
tsutsui
af66232520
Fix function declaration mismatch with src/sys/ufs/ffs/ffs_extern.h which
...
causes makefs(8) failure on big endian machines. Pointed out by tsubai.
XXX The real problem is that some sources include {.CURDIR}/ffs/ffs_extern.h
XXX but others include /usr/include/ufs/ffs/ffs_extern.h .
2003-06-15 18:10:56 +00:00
itojun
7087f39f8d
use strlcpy/cat
2003-06-13 07:26:41 +00:00
agc
65feb98718
Some patches from Todd C. Miller:
...
1. Use REG_NEWLINE, rather than matching "\n".
2. Fix a bug where rm_user_from_groups would mangle group entries in
/etc/group when the user to be removed is the only member of the group,
by using substring matches.
2003-06-12 17:00:53 +00:00
agc
706a03ef9c
Make the "-f" switch to pkg_delete(1) into a counter. Require two "-f"
...
switches to delete a package that has been preserved. Document this
change.
2003-06-12 13:50:38 +00:00
agc
bc4c2ec6be
Avoid one more annoying duplicated slash when prefix is "/" in pkg_create(1),
...
and one in the db cache file, which was causing pkg_info -F to produce the
wrong results with a prefix of "/".
2003-06-12 13:29:32 +00:00
drochner
96b62d8a69
no need to #include <sys/dkstat.h>
2003-06-11 17:26:31 +00:00
christos
b4f029d21d
revert to revision 1.41, since 1.42 did not fix the problem and made the
...
code more complicated. Fix the real issue which was setting the dst addr
incorrectly.
2003-06-09 13:35:10 +00:00
itojun
7a5741651c
- sync up MLD declaration with RFC3542 (s/MLD6/MLD/)
...
- routing header declaration with RFC3542
(note: sizeof(ip6_rthdr0) has changed!)
also, sync up with RFC2460 routing header definition (no "strict" source
routing mode any more)
part of advanced API update (RFC2292 -> 3542).
2003-06-06 08:13:43 +00:00
christos
7eec87e751
previous fix had trouble deleting routes; try to delete a more generic
...
default route.
2003-06-05 19:48:49 +00:00
agc
2efa359891
When displaying full pathnames of the package contents (pkg_info -L pkg),
...
don't add a '/' between the prefix and the name if the prefix is "/".
This avoids annoying annoying double slash filenames when the prefix is "/".
2003-06-05 17:58:05 +00:00
agc
582cc64a31
Set the program name via setprogname(3).
2003-06-05 13:15:43 +00:00
dsl
eb9a70f8fb
Another mistake in the ufs2 code - a missing else.
2003-05-30 09:22:50 +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
a23e290bac
Specify the interface where to place the default route, otherwise we sometimes
...
can put it in the wrong place.
2003-05-28 13:43:26 +00:00
yamt
cc3f08f723
define HAVE_XDR_MOUNTRES3 in pre-generated config.h as we have mountres3 now.
...
this makes amd buildable for archs without shlibs support like hpcsh.
(i've tested i386->hpcsh cross-compile)
pointed by Torsten Harenberg on tech-hpcsh
and analyzed by Valeriy E. Ushakov.
2003-05-18 09:44:28 +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
ef713a2fe9
use strlcat
2003-05-17 21:00:57 +00:00
itojun
89bf339ad7
use strlcpy/strlcat
2003-05-17 20:58:39 +00:00
itojun
c428db5b2f
use strlcpy
2003-05-17 20:55:44 +00:00
itojun
9e390651ee
remove local copy of strl{cat,cpy}
2003-05-17 20:49:28 +00:00
itojun
85da88227f
use strlcpy/strlcat.
...
[fix off-by-one in displayq.c]
2003-05-17 20:46:42 +00:00
itojun
b37b18f113
remove obsolete comment
2003-05-17 19:19:50 +00:00
itojun
d0f8b66023
strncpy -> strlcpy
2003-05-17 19:18:59 +00:00
itojun
84e2880efb
KNF
2003-05-17 19:14:25 +00:00
itojun
d0512514bd
use strlcpy. don't hardcode sizes, use sizeof.
2003-05-17 19:09:08 +00:00
itojun
4a1c105c26
ensure string termination
2003-05-17 19:00:22 +00:00
itojun
f35cce81c8
strncpy -> strlcpy
2003-05-17 18:51:13 +00:00
itojun
3d2b0dbc0e
strncpy -> strlcpy
2003-05-17 18:13:55 +00:00
itojun
658519705e
sscanf possible overrun
2003-05-17 14:56:40 +00:00
itojun
682aab7791
sscanf overrun
2003-05-17 14:54:53 +00:00
itojun
405a7327c7
fix strncat too. from wiz
2003-05-17 13:56:41 +00:00
dsl
35605a88c0
A slightly better inet_parse(), tested in isolation.
2003-05-17 09:39:04 +00:00
itojun
aa5672d8c5
sscanf overrun
2003-05-17 01:02:01 +00:00
itojun
5be6cd5c8d
prevent sscanf overrun
2003-05-17 00:50:36 +00:00
itojun
4fb82a79ed
strlcpy
2003-05-17 00:46:04 +00:00
itojun
7bd6640a6d
strlcat
2003-05-17 00:44:49 +00:00
dsl
da0369cc40
Match latest mrouted source.
2003-05-16 23:24:38 +00:00
dsl
1f67e2a5fa
Match latest mouted code
2003-05-16 23:10:15 +00:00
dsl
d26eb4f4c2
Make this comple with modified mrouted sources.
2003-05-16 23:00:29 +00:00
dsl
ee70b5d6af
Revert previous change. Remove s parameter from teh function and rotate
...
the result through a fixed set of strings instead.
There never was a possibility of a buffer overrun in inet_fmt{s}().
Fix an actual buffer overrun in a scanf() call.
2003-05-16 22:59:50 +00:00
itojun
bd26fba38c
avoid possible buffer overrun
2003-05-16 18:28:18 +00:00
itojun
272c80e349
avoid possible buffer overrun
2003-05-16 18:15:34 +00:00
itojun
761f7bebc3
avoid possible buffer overruns - strlcpy, snprintf
2003-05-16 18:10:37 +00:00
itojun
646e6960b2
blank line
2003-05-16 14:53:55 +00:00
christos
03db714fce
- zero out the sockaddr before passing it to the kernel.
...
- print the reason of the export failure.
2003-05-16 14:03:31 +00:00
abs
81ab107137
maybe -> may be
2003-05-16 08:37:09 +00:00
itojun
d25769c013
assume presense of getifaddrs(3).
2003-05-15 14:50:02 +00:00
itojun
5818b97495
assume getifaddrs(3)
2003-05-15 14:47:49 +00:00
itojun
68452c0c92
assume presense of getifaddrs(3).
2003-05-15 14:44:57 +00:00
itojun
e24f1908e1
byebye savestr. with savestr() we can't free().
2003-05-15 14:34:39 +00:00
itojun
0f0398257d
simplify by strdup. expilcitly specify IPPROTO_TCP (to cope with sctp-ready
...
getaddrinfo).
2003-05-15 00:23:54 +00:00
itojun
6cad7b99db
simplify by using strdup. from kame
2003-05-15 00:19:30 +00:00
itojun
723a0d30ad
just for safety
2003-05-15 00:08:10 +00:00
itojun
f2bfdc2f65
traceroute.c doesn't use savestr()
2003-05-15 00:04:16 +00:00
itojun
a37f9a315d
strcpy audit (command line argument was used as src, subject to overrun)
2003-05-15 00:02:25 +00:00
itojun
b2189acdb8
whitespace fix
2003-05-14 23:58:23 +00:00
itojun
4b641df88a
strlcpy audit
2003-05-14 23:53:09 +00:00
wiz
d75f1336b3
Uppercase URL.
2003-05-14 14:30:59 +00:00
wiz
d43e332f1e
setup -> set up.
2003-05-14 12:11:03 +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
martin
6d77f1d081
Add some error handling for an ioctl - the old code could loop tightly if
...
the peer closed a socket unexpectedly.
This addresses one of the issues Frank Kardel patched (differently) in
PR kern/21448, after clarification from Frank via private mail.
2003-05-13 07:07:37 +00:00
ragge
855df1740e
Don't build kvm_mkdb anymore.
2003-05-11 18:19:09 +00:00
itojun
2ab2b66ee8
just for safety - use sizeof
2003-05-09 00:48:59 +00:00
itojun
5397d22f9f
KNF
2003-05-09 00:47:46 +00:00
itojun
830e70f6d0
readlink(3) does not terminate string by \0.
2003-05-09 00:43:46 +00:00
petrov
674b7e97b8
Format fixes.
2003-05-08 20:33:44 +00:00
petrov
209bf42bf9
Add CPPFLAGS.
2003-05-08 20:24:10 +00:00
yamt
c18e1d32a6
make amd compile again.
...
pointed by Geoff Wing.
2003-05-08 13:34:04 +00:00
martin
59b588f4a2
The FIONREAD ioctl() expects an int parameter.
...
Noticed by Frank Kardel in PR 21448.
2003-05-08 08:35:40 +00:00
martin
a9c8af8af0
Passing the address of a timeval.tv_sec to localtime() is wrong on ports
...
where time_t != long.
From Frank Kardel in PR 21448.
2003-05-08 08:32:39 +00:00
wiz
38ae31a7c0
Fix device names, from Sergey Svishchev in PR 21485.
2003-05-07 08:01:08 +00:00
wiz
8dc7b32a42
Bump date for last.
2003-05-06 08:43:45 +00:00
wiz
64c914b286
Bump date for last.
2003-05-06 08:37:34 +00:00
wiz
fade7b55f5
New sentence, new line.
2003-05-06 08:28:38 +00:00
gmcgarry
662e57683f
Document how to change the console font to one of crazier fonts
...
available.
2003-05-04 00:52:39 +00:00
wiz
1ffa7b76c4
DMA, not dma nor Dma.
2003-05-03 18:10:37 +00:00
ragge
64d8c965d1
Note change to use /dev/ksyms. Add BUGS section.
2003-05-03 10:03:55 +00:00
ragge
40c743b278
Remove some unneccessary kmem open/close code.
2003-05-02 16:28:34 +00:00
ragge
ead8c24788
Teach kvm_mkdb to use /dev/ksyms if possible.
2003-05-02 16:25:22 +00:00
martin
562ced8429
Don't cast (dubious) values to pointers, only to memcpy from them to
...
a properly aligned structure. Memcpy from the original data instead.
This fixes PR port-sparc64/21425.
2003-05-02 15:15:52 +00:00
gmcgarry
733d836b9b
Add an explanation of the log format. From PR#14290.
2003-05-02 08:31:51 +00:00
thorpej
b393c94e79
Shuffle a bit to allow some compilers to optimize symbol references
...
more effectively.
From Ian Lance Taylor.
2003-05-02 04:29:03 +00:00
wiz
1f2ca5e686
Increase width now we mention flag arguments.
2003-05-01 15:29:24 +00:00
jmmv
bee0be0e17
In the options list, show which ones require an argument.
...
New sentence, new line.
2003-05-01 15:10:58 +00:00
dsl
c4582ac81d
Change 'ulong' to 'unsigned long' so it compiles as a host tool on freebsd.
2003-04-29 09:39:23 +00:00
jmmv
42c016f444
Note when the -x option appeared; this was in the original patch...
2003-04-26 18:12:00 +00:00
jmmv
f37b7f38ab
Let config extract embedded configuration data from kernels that were built
...
with either "options INCLUDE_CONFIG_FILE" or "options INCLUDE_JUST_CONFIG".
The program can now be invoked like:
- config -b objdir -s srcdir /netbsd
This will use configuration data from /netbsd to automatically create the
build directory of the new kernel.
- config -x /netbsd > CONFFILE
This will store configuration data from /netbsd in the CONFFILE file for
further editing.
2003-04-26 12:53:43 +00:00
jmmv
595e7da8dc
New sentence, new line.
2003-04-24 13:23:55 +00:00
seb
2eb61ac136
pkg_add fix:
...
When doing quick pre-check if any conflicting dependencies are installed
and a dependency is not found installed do not try to search for a wildcarded
(-[0-9]* suffix) package if the dependency was already wildcarded.
This prevent something like 'p5-Net-DNS-0.33' reported as an already
installed version of 'p5-Net-[0-9]*' as a dependency.
Before this fix 'p5-Net-[0-[0-9]*' would have been incorrectly searched for.
Reviewed by hubertf@.
Bump PKGTOOLS_VERSION to 20030423.
2003-04-23 10:02:23 +00:00
wiz
b461e245c1
Bump date for last; sort sections; comment out sysmon(4) xref for now.
2003-04-23 05:46:21 +00:00
augustss
7064ed78f9
Note that scripts are run synchronously.
2003-04-22 22:45:48 +00:00
itojun
47c9fbf29d
port numbers are unsigned. use %u. from kame
2003-04-22 09:56:30 +00:00
itojun
a6a7baa235
"user:group=foo.bar" is weird. use colon on both sides
2003-04-22 07:46:46 +00:00
itojun
906a2ba4ed
always configure IPV6_FAITH explicitly to avoid misconfiguring it on SIGHUP.
...
sync w/kame
2003-04-22 07:45:27 +00:00
hubertf
4af963d89d
Rename "upgrade" variable to "Replace" (etc.) as that is what it's really
...
for. Assorted text updates.
2003-04-22 01:17:03 +00:00
thorpej
e6227d3c54
Document the reset_button script.
2003-04-21 00:55:17 +00:00
christos
644c9834e5
PR/5999: Todd Vierling: minor nits about Makefile.yp
...
Provide MINUID and MINGID variables to specify the minimum uid and gid to
be included in the password and group maps.
2003-04-20 20:53:45 +00:00
thorpej
b9ea11721d
Support the reset button type.
2003-04-20 20:53:04 +00:00
christos
c7e6b87cad
PR/3713: Aaron Brown: crontab fails with signals.
...
While I am here eliminate forking a shell for the editor.
2003-04-20 01:24:05 +00:00
lukem
2a820a18cf
Add explicit descriptions of the `filesystem', `primary', and `secondary'
...
arguments, including a clarification that `secondary' is relative to the root
of the filesystem, not a path name to that file if `filesystem' is mounted.
Resolves PR 20977 from Jim Bernard.
2003-04-20 00:38:31 +00:00
christos
552cc1f0ea
interactive errors.
2003-04-20 00:19:56 +00:00
christos
96efc68fce
Interactive logs
2003-04-20 00:19:05 +00:00
christos
676485e564
interactive error output.
2003-04-20 00:18:33 +00:00
christos
26ae50113f
new logging files.
2003-04-20 00:17:42 +00:00
christos
10dd0ebe00
PR/3343: Jonathan Stone: Errors and warnings to stderr if interactive
2003-04-20 00:17:22 +00:00
thorpej
8a1fcff86a
MKSHARE -> MKDOC
2003-04-18 18:33:22 +00:00
wiz
170f2084f5
New sentence, new line. Use \*[Lt],\*[Gt] for easier HTML conversion.
2003-04-18 15:15:12 +00:00
bjh21
360968bcd9
Use <md5.h> rather than <sys/md5.h>. This is what the man page tells us to
...
do, and is required for cross-compiling since libnbcompat doesn't provide
<sys/md5.h>.
2003-04-18 14:16:42 +00:00
gmcgarry
25ab7bf52b
Build manpage.
2003-04-18 05:32:37 +00:00
thorpej
77923a9ba6
Build powerd.
2003-04-18 04:55:54 +00:00
thorpej
539625c024
Power management daemon for sysmon. Currently supports acting on
...
power switch state change events.
2003-04-18 04:54:49 +00:00
grant
6bc4824cf3
crank PKGTOOLS_VERSION for pkg_admin getcwd() fix.
2003-04-17 13:38:02 +00:00
grant
5cea86225d
don't pass NULL as the 2nd arg to getcwd(), ala lib/path.c.
...
fixes 'pkg_admin lsall' and 'pkg_admin lsbest' on Solaris and probably
other platforms where getcwd() doesn't allocate a buffer when the 2nd
arg is NULL.
ok'd by simonb@
2003-04-17 13:32:21 +00:00
fvdl
4589db98fb
Skip over inodes <= ROOTINO for getnextinode(). PR 21208 by Geoff Wing.
2003-04-17 09:21:01 +00:00
lukem
e7fa9814b3
clear errno before strtol() if we're going to test it for ERANGE afterwards
2003-04-17 02:41:21 +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
80d074c338
Bump date for last; sort authors; add comma after e.g.
2003-04-16 13:02:45 +00:00
wiz
1b8a3850d5
A-Law -> A-law.
2003-04-16 12:53:08 +00:00
wiz
4e9fe74ce2
Bump date for last, and add commas after i.e. and e.g.
2003-04-16 12:43:43 +00:00
wiz
d0e6ae84ee
p before q in options/usage.
2003-04-16 11:56:11 +00:00
wiz
b190a86ddc
Sort options; fix typo; new sentence, new line.
2003-04-16 11:48:11 +00:00
wiz
c1dcf625b3
Sync usage with man page.
2003-04-16 10:29:05 +00:00
wiz
61860e9d83
Sort options in SYNOPSIS and description.
2003-04-16 10:28:55 +00:00
wiz
ab9a7c3733
dumplfs needs one argument -- remove .Op.
2003-04-16 10:21:57 +00:00
wiz
a0d5a7bba1
Sync usage with man page.
2003-04-16 09:25:04 +00:00
wiz
064e896cda
Sync usage with man page.
2003-04-16 09:09:52 +00:00
wiz
e0513f4ff2
pppoe(4), not (8). Uppercase PCMCIA.
2003-04-16 09:06:55 +00:00
wiz
0384eb0efb
Increase width in a tagged list for nicer display.
2003-04-16 08:42:16 +00:00
briggs
755a56f62f
Protect use of __RCSID() with a check to ensure that it's defined.
...
Suggested by Ian Lance Taylor on tech-userlevel@ to help cross-compilation
on Red Hat 7.3.
2003-04-16 01:32:07 +00:00
dsl
8c4da2e486
Use htole32 so host endianness independant
2003-04-15 14:35:57 +00:00
dsl
ed45ba76c7
Change the way -o options are parsed, now done in MI code with a check after
...
all the options have been processed that they are supported my the
specific system.
Add i386 MD options (console, password, speed and timeout)
(Approved by christos and lukem)
2003-04-15 14:22:13 +00:00
itojun
c2a20cc150
%d is not 10 chars, but 12 chars. uwse NI_MAXSERV. sync w/ kame. from openbsd
2003-04-15 07:23:19 +00:00
grant
6dbbe09cdf
in delete_package(), always warn if there is a checksum mismatch,
...
improve text.
2003-04-14 23:42:21 +00:00
agc
9878b0d124
The "default" case usually occurs at the end of all other options, so change
...
it to follow convention.
Add /* NOTREACHED */ comments, per share/misc/style.
2003-04-14 17:40:07 +00:00
dsl
238b338f74
Report usage() if getopt() returns '?'
...
Partial fix for bin/21146
2003-04-14 09:49:15 +00:00
thorpej
590fe82698
Use MKPICLIB to determine if we should have a dependency on the .a or
...
_pic.a version of the library.
2003-04-11 22:46:02 +00:00
grant
680230355c
improve a message
2003-04-11 19:57:06 +00:00
drochner
5f4d60be7c
Add an interface to the "force" option, and fix a bug where the
...
"readonly" flag cleared "hasgeom".
2003-04-11 16:15:28 +00:00