Commit Graph

137882 Commits

Author SHA1 Message Date
elad 9cafbe15bc Use the defined VERIEXEC_DIRECT instead of the (incorrect) 0 magic number. 2005-06-10 23:32:16 +00:00
he 0f76827b9a Remove the declaration of a now-unused local variable. 2005-06-10 22:34:05 +00:00
he 15f674bbfa Modify the rtc_gettime() and rtc_settime() functions to take a volatile
argument to make this build with -Wcast-qual.
2005-06-10 22:25:42 +00:00
he dd447992cc Add initialization of xgmsec, the assignment to it apparently depends
on the value in one of the data structures passed as arguments.
2005-06-10 22:08:39 +00:00
dsl d68ddde829 If we are builging a small kernel [1], don't inline all these functions.
Saves over 2k and lets i386 rescue_tiny build again.
[1] if MALLOC_NOINLINE is defined - not ideal but...
2005-06-10 22:00:52 +00:00
wiz 6ffd1dd8c1 NetBSD -> .Nx. 2005-06-10 20:48:59 +00:00
christos 3cfbfdb2ef Bug reported from Martin Dietze:
The place to change the completion_append_character is
    usually somewhere in the `rl_completion_entry_function'
    callback which is where one usually can distinguish between
    file- or dir-like entries to append a slash for dirs etc.

    This does no longer work since `fn_complete()' takes the
    `append_character' as argument before the callback is executed,
    so that changes to the variable `rl_completion_append_character'
    have in fact no effect for the current completion.

Fix by adding a function that returns the rl_completion_append_character,
when it gets passed in a filename in readline emulation.
2005-06-10 20:21:00 +00:00
christos 0320b64715 tilde expand should take a const argument. 2005-06-10 20:18:11 +00:00
dyoung 0ee313689a Fix bpf_open so that we can run tcpdump without write-access to
any of the /dev/bpf* device nodes.  In bpf_open, first try to open
each /dev/bpf* read-write; if that fails, try to open each read-only.
2005-06-10 19:00:09 +00:00
jmc 3f5fc9a18d Need to #ifdef around declaration of ch with NO_EDITCOMPLETE so this compiles
on rescue/miniroot's
2005-06-10 18:24:15 +00:00
wiz 7cbffa94c5 Remove superfluous word, found by Jared Yanovich,
forwarded by jmc@openbsd.
2005-06-10 17:48:34 +00:00
jmc af862ab038 Constify, shadow resolution and some volatile casts 2005-06-10 16:41:38 +00:00
jmc e71965e518 Init some variables the compiler is complaining about and mark w. XXGCC as it
affects only m68k compilers.
2005-06-10 16:07:45 +00:00
jmc 91e04b9035 Add a missing const 2005-06-10 15:42:55 +00:00
jmc 972e095c1e Change tick->ticks to avoid shadowing 2005-06-10 15:42:41 +00:00
jmc abacafe481 Change max -> max_polls to avoid shadowing. 2005-06-10 15:41:11 +00:00
itohy 8202086879 cc1: warnings being treated as errors
../../../../dev/pcmcia/if_wi_pcmcia.c: In function `wi_pcmcia_write_firm':
../../../../dev/pcmcia/if_wi_pcmcia.c:511: warning: cast discards qualifiers from pointer target type
../../../../dev/pcmcia/if_wi_pcmcia.c:512: warning: cast discards qualifiers from pointer target type
2005-06-10 14:08:06 +00:00
christos f1171a425e constify and unshadow. 2005-06-10 13:22:42 +00:00
tron 0423caa6e2 Include "sys/uio.h" instead of forward defining "uio_seg" which causes
a lint failure while building "libc".
2005-06-10 11:36:38 +00:00
bouyer 79824021ea As ether_input() is always called at IPL_NET, there is no need to
protect the IF_* operations with splnet()/splx().
2005-06-10 11:11:38 +00:00
bouyer 5ce57a0010 call (ifp->if_input) at splnet(). ifp->if_input points to ether_input()
which doesn't raise the IPL itself in all cases.
Should also fix PR 29546 (the pkgsrc kernel module needs to be updated).
2005-06-10 10:28:17 +00:00
mrg 11e42a915f re(4) works on sparc64 now. bump date. 2005-06-10 08:06:33 +00:00
junyoung 5f95214f7d More clarification on uintN_t. 2005-06-10 06:35:41 +00:00
matt cb2038dada Welcome to 3.99.6 2005-06-10 05:11:16 +00:00
matt e1245a3c46 Rework the coredump code to have no explicit knownledge of how coredump
i/o is done.  Instead, pass an opaque cookie which is then passed to a
new routine, coredump_write, which does the actual i/o.  This allows the
method of doing i/o to change without affecting any future MD code.
Also, make netbsd32_core.c [re]use core_netbsd.c (in a similar manner that
core_elf64.c uses core_elf32.c) and eliminate that code duplication.
cpu_coredump{,32} is now called twice, first with a NULL iocookie to fill
the core structure and a second to actually write md parts of the coredump.
All i/o is nolonger random access and is suitable for shipping over a stream.
2005-06-10 05:10:12 +00:00
dyoung d485a761e3 Sprinkle __UNCONST() and rename variables to quiet uiet -Wcast-qual,
-Wshadow complaints.
2005-06-10 02:35:34 +00:00
thorpej 83f1b1db79 EtherLink 16, not EtherLink II 2005-06-10 01:11:49 +00:00
lukem ddc3d4ca5a Implement:
int getline(FILE *stream, char *buf, size_t buflen, const char **errormsg)
	Read a line from the FILE stream into buf/buflen using fgets(), so up
	to buflen-1 chars will be read and the result will be NUL terminated.
	If the line has a trailing newline it will be removed.
	If the line is too long, excess characters will be read until
	newline/EOF/error.
	Various -ve return values indicate different errors, and errormsg
	will be changed to an error description if it's not NULL.

Convert to use getline() instead of fgets() whenever reading user input
to ensure that an overly long input line doesn't leave excess characters
for the next input operation to accidentally use as input.

Zero out the password & account after we've finished with it.

Consistently use getpass(3) (i.e, character echo suppressed) when
reading the account data.  For some reason, historically the "login"
code suppressed echo for Account: yet the "user" command did not!

Display the hostname in the "getaddrinfo failed" warning.

Appease some -Wcast-qual warnings.  Fixing all of these requires
significant code refactoring.  (mmm, legacy code).
2005-06-10 00:18:46 +00:00
tron 731af7cc71 Add raid(4) to the list of machine-independent devices which "sysinst"
recognizes. This allows upgrading e.g. NetBSD-macppc or NetBSD-sparc64
systems with RAIDframe mirrored root devices.
2005-06-09 22:14:20 +00:00
yamt 2d02304deb use malloc rather than mem_alloc (which is implemented using calloc)
for receive/send buffers to avoid unnecessarily anonymous memory bloat.
2005-06-09 22:13:17 +00:00
rjs a51d4c4377 Add const. 2005-06-09 22:01:06 +00:00
rjs f34c276ab5 Pass NULL as second argument to config_rootfound. 2005-06-09 22:00:40 +00:00
rjs 00fe72facb Add const. 2005-06-09 21:59:24 +00:00
martin d931a71e12 First cut at 2.0 -> 3.0 port specific changes 2005-06-09 21:51:37 +00:00
jmc a31f50b210 Fix call to config_rootfound to pass -Wcast-qual 2005-06-09 21:49:22 +00:00
he 2f5d3f6059 Adapt to compiling with -Wcast-qual by adding consts where appropriate. 2005-06-09 21:43:13 +00:00
he 253884a9c4 Rename local variable `cpu_intr' to `cpu_int' to avoid shadowing. 2005-06-09 21:42:33 +00:00
he 2c12fd1a47 Change the second argument of config_rootfound() from a string to NULL,
so that we compile with -Wcast-qual.
2005-06-09 21:41:52 +00:00
jmc 51ed2fd82d Fixes for -Wcast-qual. Add some needed const around char *'s,
__UNVOLATILE in READ/WRITE_REG and convert the rtc functions to properaly
take a volatile timeval
2005-06-09 17:46:19 +00:00
lukem cc5aca9af5 copyright maintenance 2005-06-09 16:38:29 +00:00
he 9eabff5290 Appease -Wcast-qual by adding consts in appropriate places. 2005-06-09 16:02:19 +00:00
tsutsui 446f2d2cfa Regen from GENERIC.in rev 1.36:
> - Rename options NEW_BUFQ_STRATEGY -> options BUFQ_READPRIO.
>   (still commented out)
> - Add (also commented out) options BUFQ_PRIOCSCAN.
>
> Suggested by perry and soda on tech-kern.
> Please refer options(4) for details for these options.
2005-06-09 14:50:11 +00:00
tsutsui 4e54a2cc7c - Rename options NEW_BUFQ_STRATEGY -> options BUFQ_READPRIO.
(still commented out)
- Add (also commented out) options BUFQ_PRIOCSCAN.

Suggested by perry and soda on tech-kern.
Please refer options(4) for details for these options.
2005-06-09 14:43:29 +00:00
he d05c61ee69 Add consts to make this build with -Wcast-qual. 2005-06-09 13:49:15 +00:00
he 116fd4948d Use NULL and not a string constant as the second argument to
config_rootfound().
2005-06-09 13:48:12 +00:00
he d049b36b69 Add const to the prom_getenv() vector argument.
More function pointer prototypes can probably have const added, but
this gets us building for now.
2005-06-09 13:47:28 +00:00
he 78734c90bf Prefix variables in a macro with an underscore to avoid shadowing problems. 2005-06-09 13:45:31 +00:00
tron abba7e56c8 Enable RAIDframe support in the NetBSD-macppc installation media.
Based on patches submitted by Ian Spray in PR port-macppc/30465.
2005-06-09 13:29:57 +00:00
he e06cf89e96 Rename local variable `tick' to `ticks' to make this build with -Wshadow. 2005-06-09 12:25:32 +00:00
he 3ee7e97fcc Now that OF_read and OF_write have different signatures, we need to
cast one of them before assigning to a common function pointer.
Yes, this breaks strict type checking, but is needed to compile with
-Wcast-qual turned on.
2005-06-09 12:23:23 +00:00