Commit Graph

8983 Commits

Author SHA1 Message Date
plunky fe9facd3bf use some size_t instead of int 2009-02-04 19:24:18 +00:00
uebayasi 9281ce080c Make nbpwd_mkdb always generate version 1 by deciding version depending on
sizeof(pw_change).  No objection on tech-userlevel.
2009-02-02 04:24:18 +00:00
wiz 7eff20f8db New sentence, new line. 2009-02-02 03:27:37 +00:00
hubertf 47da095c98 -c: make it clear where the file hierarchy starts
-I, -E: they also work with -C, not just with -D
2009-02-01 22:37:22 +00:00
hubertf dde9e1886b When {MD5,RMD160,SHA1,SHA256_,SHA384_,SHA512_}File fail, use errno
to print what's actually wrong
2009-02-01 22:36:24 +00:00
wiz e0de6d25c7 Bump date for previous. 2009-02-01 12:59:05 +00:00
yamt 168debd7ec note some options' optarg in DESCRIPTION as well. 2009-02-01 08:12:25 +00:00
yamt ca6221a5b3 make -o option consistent with others. 2009-02-01 07:55:42 +00:00
plunky 8f0a91453b Fix a problem which prevents remote parties connecting to our NAP service,
we got the services mixed up.
2009-01-31 07:21:15 +00:00
ad 47afbfb94e cpuctl list: map hardware id after getting state. avoids screwed up display
when ci_cpuid != cpu_index()
2009-01-28 22:37:09 +00:00
jklos c259dad90f Added MAKEDEV.local to postinstall's makedev check. Upgraded systems were
not getting an updated MAKEDEV.local file.
2009-01-26 07:40:01 +00:00
yamt efeccfb5bc fix an error message. 2009-01-26 05:53:10 +00:00
plunky 8d16a25319 The "Service Availability" value in the SDP record should be a number
from 0-255 indicating how much availability the service has, rather
than the "Load Factor (0-7)" as used in the "Class of Device" setting.
2009-01-24 17:29:28 +00:00
mschuett c998ee30ad PR/40438: Takahiro Hayashi: syslogd(8) refers freed area 2009-01-22 21:10:52 +00:00
lukem 64d3f79556 sign-compare fixes for amd64 2009-01-22 10:45:35 +00:00
bjh21 9d5675794b Bump date for last change. 2009-01-20 20:47:25 +00:00
christos 962e67cdc0 fix version ioctl 2009-01-19 00:53:15 +00:00
he fddc3457b2 Change the use of formally undocumented features, which have now been
made to fail.  Specifically, change
.ifdef(SYMBOL) -> .ifdef SYMBOL or .if defined(SYMBOL),
and corresponding for .ifndef.

Also correct one error in lib/libm/Makefile (.ifdef (${MKCOMPLEX} != "no")?!?).
2009-01-18 20:42:11 +00:00
lukem c5eb4ab601 fix -Wsign-compare issues 2009-01-18 11:56:51 +00:00
lukem b118202501 fix -Wsign-compare issues 2009-01-18 10:39:17 +00:00
lukem 7e0b2295e7 fix -Wsign-compare issues 2009-01-18 10:35:26 +00:00
lukem 3cafe960ea fix -Wsign-compare issues 2009-01-18 10:10:47 +00:00
lukem 29f2e1ce01 fix -Wsign-compare issues 2009-01-18 10:01:34 +00:00
lukem f5a433a737 fix -Wsign-compare issues 2009-01-18 09:57:26 +00:00
lukem e7dd2c7514 fix -Wsign-compare issues 2009-01-18 09:46:59 +00:00
he 38068400a9 Avoid casting an uisigned to a signed value, thereby invoking formally
undefined behaviour.  Instead go via u_int and print with %u.
2009-01-17 22:01:32 +00:00
pooka aeac8f5107 Move fs-specific stuff in Makefile to fs/Makefile.inc to clarify
top-level Makefile.
2009-01-16 19:39:52 +00:00
pooka 9857fb8cb2 remove fsopts asserts - the parameter is unused, so we don't care here 2009-01-16 18:02:24 +00:00
jmmv 9b08dc4841 Make sure that the database version is correct if we are updating a single
record; otherwise, bail out early to avoid leaving the database in an
inconsistent state (some old-format records, one new-format record).
2009-01-16 10:42:36 +00:00
junyoung 555ffa79b2 Fix one more build breakage ("warning: 'er' may be used uninitialized in
this function").
2009-01-16 10:24:20 +00:00
junyoung 121584256f Fix build error (hi christos). 2009-01-16 07:09:09 +00:00
haad f42e53f384 Add lvm script to the lists. 2009-01-16 01:58:32 +00:00
plunky c2336815fa use msg_flags field to determine
a. if the PDU is truncated, close client fd
    b. if a control message is truncated, ignore it
2009-01-15 23:17:00 +00:00
christos 651aa5ccda - remove errmsg; we all have strerror() these days.
- sanitize error printing. Try to print the system error or a reason for
  the message.
2009-01-15 15:58:42 +00:00
christos 19540887f2 - Don't use TOOL_SED; we are not a regular Makefile
- PREFIX defaults to /usr/pkg
- use -g
- delete errmsg.c
2009-01-15 15:57:18 +00:00
christos 5f47ffa430 Oops, forgot to merge this. 2009-01-14 23:18:57 +00:00
he 434b1b61b6 Add a cast to make this build again (no sense in doing PRIu64 when we
& with 7 right after).
2009-01-14 22:57:48 +00:00
reed 26542189a9 Improve -G documentation. It may be repeated.
And value may be comman-delimited list of groups.
16 maximum groups.
2009-01-14 02:18:28 +00:00
christos 4cc87f6053 set the event protocol version. 2009-01-13 18:09:19 +00:00
pooka f604838fff Remove -I${NETBSDSRCDIR}/sys. I have no idea why it was there, but
it sure creates some interesting side-effects.
2009-01-12 20:43:29 +00:00
wiz 140f24c96f regen. 2009-01-11 22:03:15 +00:00
wiz 9492e5b9bf Make ready for HTML output, add comma. 2009-01-11 22:03:10 +00:00
wiz eaae165147 Mark up arguments with Ar and drop trailing whitespace. 2009-01-11 22:02:38 +00:00
pooka 317dcf1496 regen: mount -o rump 2009-01-11 21:15:31 +00:00
pooka 4c643b2022 Note mount -o rump support. 2009-01-11 21:15:07 +00:00
pooka bbf08a8acb Default to threading, non-threaded debug mode can be compiled separately.
Useful if running this from fstab.
2009-01-11 20:31:03 +00:00
bjh21 f8474b32a7 Add support for encoding RISC OS metadata into ISO 9660 filesystems.
This is done by adding the general ability to stuff non-SUSP data into
the end of the System Use field of a Directory Record, which required
some amount of rewriting of the SUSP support.  I think the result is
at least as good as what came before, and I've fixed at least one bug
along the way.  Tested against RISC OS 3.70 on my Risc PC.

Oh, why do we want it?  It should allow us to make acorn{26,32} CDs that
can be booted directly from RISC OS without mucking around copying the
bootloader to a native filing system.
2009-01-10 22:06:29 +00:00
pooka 29d7878897 Don't compile diagnostic code which accesses kernel symbols directly.
Will fail now since not all archs have the same symbol names.
2009-01-10 20:21:15 +00:00
he 8309b1bdfc Initialize a local variable to get rid of a "may be used uninitialized"
warning (turned into error by -Werror).
2009-01-10 11:04:36 +00:00
bjh21 7dd482c240 Fix another bug in SUSP "CE" handling: when the SUSP records fit into
the System Use field with fewer then 28 bytes to spare, we were
remembering the wrong length for the System Use field and hence
emitting a corrupt directory entry.  This could be triggered by trying
to build a filesystem containing a regular file with a 120-byte name.
Now we're a little more careful.
2009-01-09 00:24:07 +00:00
bjh21 61773f97b8 When splitting a System Use Area between a System Use field and a
Continuation Area, be sure to insert the "CE" record at the correct
point in the chain of SUSP records.  Without this, makefs emits
an invalid image if any file needs a Continuation Area.  The bug
seems to have been introduced with the conversion to TAILQs.
2009-01-08 23:31:33 +00:00
bjh21 a9eb597f96 Typo: debuging -> debugging. 2009-01-08 22:28:45 +00:00
bjh21 72846fc11e If the user specifies a cd9660-specific option that needs an integer value
without supplying a value, complain at them instead of segfaulting.
Or, to put it another way, check that the value is non-NULL before calling
set_option().
2009-01-08 22:26:19 +00:00
christos 8b39f71df8 - when we close an se_fd, set it to -1
- fix int/ssize_t/size_t/socklen_t issues
- fix casts
- remove unused variables
- fix prototypes
- fix const
- remove unneeded casts
2009-01-08 21:37:20 +00:00
kardel 300f8f3036 merge ntp 4.2.4p6 2009-01-08 20:09:03 +00:00
pooka 73cbbc614e For applications which naughtily reach over to the rump kernel
namespace without using proper interfaces, do a little namespace
compensation.
2009-01-08 18:44:31 +00:00
pooka e39b6ca29f Disable static linking against kernel modules and always use shared
libraries.  Kernel module support will require some more happy days
with the kernel linker.
2009-01-08 18:43:28 +00:00
christos 5fe5dff0de PR/40340: Ed Ravin: Print the numeric address in addition to the hostname. 2009-01-08 18:29:43 +00:00
christos ef3c9e6675 Print the numeric address of the host. 2009-01-08 18:08:10 +00:00
pooka a378ac816b Put syspuffs_glueinit in the rump kernel namespace. 2009-01-08 03:27:10 +00:00
lukem c13322daaf Add rndctl to do_rc().
Thanks to Geoff Wing on current-users.
2009-01-08 02:05:15 +00:00
pooka 4e41c02e05 malloc(9) -> kern_malloc(9): we don't need --wrap anymore. 2009-01-05 21:45:35 +00:00
pooka 1bc460cc53 use kernel module 2009-01-05 15:39:34 +00:00
christos 9590239feb remove debugging. 2009-01-04 17:10:47 +00:00
lukem f9dee3872f cd9660 support has been present for a while 2009-01-03 08:25:35 +00:00
yamt 3c917c1d93 fix exit status values. 2009-01-03 07:20:57 +00:00
tnozaki 52ed7b035f Fixes PR lib/39662, shortcomings in LC_{MONETARY,NUMERIC,TIME,MESSAGES} db format.
ok'ed by core and releng.
(thanks for agc@, snj@ and i'm sorry for long time patience).

[libc]
- localeio.[ch] and lc*.[ch] in src/lib/libc/locale was replaced by
  new locale-db implementation using citrus_db backend,
  see src/lib/libc/citrus/citrus_lc_*.[ch].
- add citrus_bcs_strtou?l.c. don't use strtou?l locale implementation
  internally, because they're locale-aware function.
- add some stubs for multi-locale issue, see {current,global}_locale.c.
- remove some obsolete file, setrunelocale.c, ___runetype_mb.c.
- remove __savectype() from ctypeio.[ch].

[tools]
- mklocale(1): add new option ``-t'' that generates new style
  LC_{MONETARY,NUMERIC,TIME,MESSAGES} locale-db format.
- chrtbl(1): added ctypeio.[ch] for __savectype().

[locale-db]
- added en_US.US-ASCII locale.
- removed some shareable locale definition file:
    en_US.US-ASCII -> en_US.ISO8859-1, en_US.UTF-8
    zh_CN.eucCN -> zh_CN.GB18030
    and more...see src/share/locale/*/Makefile.
- remove obsoleted locale sr_YU, added new locale sr_ME, sr_RS.
- change locale name ja_JP.ISO2022-JP* -> ja_JP.ISO-2022-JP*
  for X11's locale.alias file alignments.
- fix regression test, wrong wcs?width(3), NAN/INF usage.

i tested release-build following arch:
  i386, amd64, hpc{mips,arm,sh}, sparc64, vax.

citrus_lc_*.[ch] also can read old-plain-text style locale-db.
so that backward compatibility is keeped, but lc*.[ch] can't read
new citrus_db'ed locale-db and localeio.c never check sanity,
so forward compatibility is broken ;-<

old mklocale(1) doesn't know -t option, so you have to rebuild toolchain.
2009-01-02 00:20:18 +00:00
pooka 84ff1461c4 Track parent directory in cross-directory renames so that mv & rm
for the same file during a vnode's lifecycle works.

... rename fix .. it's going to be a good year ...
2009-01-01 13:41:45 +00:00
pooka 1d6d3e2769 Link self-contained file systems (i.e. do not depend on other file
systems) against the kernel module on select archs.
2008-12-30 22:20:56 +00:00
christos f1b4e74602 fix format of time_t 2008-12-29 04:01:21 +00:00
christos 0c6ff192f1 fix dev_t format. 2008-12-29 03:49:17 +00:00
christos 433a3ec2f3 fix suseconds_t format. 2008-12-29 03:45:23 +00:00
christos 0c27a0cd54 fix dev_t format. 2008-12-29 03:38:26 +00:00
christos 07b8d9f309 consistently print dev_t's 2008-12-28 23:02:28 +00:00
christos 33cb72e1c9 fix for 64 bit time_t and dev_t. 2008-12-28 21:51:46 +00:00
christos 629960d7f3 fix for 64 bit dev_t 2008-12-28 21:45:49 +00:00
christos 17e6d1dc1e fix suseconds_t format. 2008-12-28 21:39:35 +00:00
christos ab515b681b fix dev_t formats. 2008-12-28 19:36:30 +00:00
christos 6be0c3f194 fix time_t and dev_t formats 2008-12-28 19:35:12 +00:00
isaki cf59801230 x68k pow(4) now uses MI sysmon_pswitch framework. suggested by tsutsui@.
- Make MD poffd(8) retire, and use MI powerd(8) instead of it.
- Make /dev/pow1 retire, because nobody holds /dev/pow0 any longer.
  Use /dev/pow0 for pow(4) ioctl.
- POWIOCSSIGNAL ioctl which is for poffd(8) is also obsoleted.
2008-12-20 13:20:58 +00:00
christos 07236533dd print the hostname in the subject of the notification message. 2008-12-18 18:11:49 +00:00
christos a16995fb71 fix extra argument parsing I broke in previous commit. 2008-12-17 18:28:22 +00:00
christos 83437ade68 - in silent run, only print notifications on error.
- avoid unnecessary overlapping strncpy
2008-12-17 17:56:32 +00:00
christos bf23612c38 - use getopt to parse argument instead of home brewed code
- add -M user flag to specify the username to send mail to from the command line
- some snprintf
- sort options.
2008-12-17 17:54:51 +00:00
christos 0f9fc8e8fb document -M flag. 2008-12-17 17:53:19 +00:00
christos 2cd3d9d4aa Remove 3rd buggy copy of this function and use snprintb(3) instead.
No need to allocate MAXPATHLEN buffers anymore.
2008-12-16 22:44:50 +00:00
christos 04fb6a55d2 don't need this anymore. 2008-12-12 21:41:04 +00:00
pooka de62974531 Do some nasty manual tricks and treats to avoid having to call
rump_init() here (creating threads before we ask p2k to detach from
console is bad).
2008-12-12 19:59:00 +00:00
mishka 43e91ff9f2 Import rc.d/httpd script for httpd(8) daemon control.
See rc.conf(5) for options explanation.
2008-12-11 13:55:16 +00:00
plunky 1bbd35ddef modify some SDP data parsing function names to avoid conflicts with similar
functions that are intended to be imported to libsdp.

(this will use the library routines when they are done)
2008-12-06 20:01:14 +00:00
jnemeth 482b1c26bf PR/40117 - Bug Hunting -- new line, new sentence; punctuation 2008-12-06 02:28:58 +00:00
cube 6d69dde342 - Introduce a function get_makevar that will retrieve the values of a
specific set of user-derived variables, to be used in SOURCEMODE.
- In SOURCEMODE, generate the rc.d scripts xdm and xfs.
- Auto-detect if X11 sets are used (either through the value of MKX11 in
  SOURCEMODE, or by finding an xetc-xpecific file in sets mode).
- Ignore X11-specific rc.d scripts if X11 is not used.
2008-12-05 19:01:23 +00:00
christos b3ed889133 PR/40043: Geoff C. Wing: syslogd timestamping and protocol parsing deficiencies
Syslogd does not properly handle:

1) the ADDDATE flag which is set with -T invocation and when messages
   come from the kernel.  Other cases where it is set it is ignored
   as timestamping is always done (e.g. logmsg_async())

2) the variable found_ts in check_timestamp().  It would determine
   whether or not the message had a (possibly valid) timestamp, set
   found_ts to true, then ignore that in most cases.  If we can't find
   a timestamp return.

3) messages without a parsable timestamp should get one when outputting
   the BSD syslog format so that a syslog-protocol timestamp isn't
   injected (chopped off with BSD syslog length) giving something like:
    "2008-11-27T15:0 cisco -: 1790:"
     ^ time might have been 2008-11-27T15:02:35.296497+11:00

4) syslog protocol version checking only checked for a leading numeral
   one (1) then skipped two places (presuming a space).  Messages sent
   from some sources (e.g. my cisco) may be
     "1795: Nov 27 04:12:52: %LINEPROTO-5-..."
   which would be chopped to
       "95: Nov 27 04:12:52: %LINEPROTO-5-..."
2008-11-27 20:37:21 +00:00
reinoud 2a0c8a48e6 Fix typos in the manpage. Thanks for snj for the patch. 2008-11-26 21:04:56 +00:00
pooka 6459cc14b9 Dynamically load ext2 support, since the linker can't handle more
that one file system module (ext2fs uses both ffs and itself).
2008-11-26 19:41:11 +00:00
pooka 762d8bce6b Try to honor rump_threads by not creating iothreads if threads are off. 2008-11-26 07:20:22 +00:00
nakayama c16b2cafae Add scan obsolete minor shared libraries in /usr/X11R7/lib.
Also scan in /usr/lib/i386 for amd64, /usr/lib/sparc for sparc64.
2008-11-24 20:12:28 +00:00
ad 577910fbd3 Make the allow-multidot option useful. 2008-11-21 10:02:12 +00:00
pooka 2d18baefd2 Silly-rename child to worker (no pun intended .. maybe).
nfsd is threading these days.
2008-11-21 07:48:35 +00:00
pooka c02ede9188 use varargs macro to make -DDDEBUG compile 2008-11-21 07:42:30 +00:00