Commit Graph

137553 Commits

Author SHA1 Message Date
matt 6e3fbc1b25 Have to cast framep as a trapframe. XXX frampe should not be void * 2005-06-12 04:39:37 +00:00
christos 661bee744c unconst argument to swapctl(). 2005-06-12 02:57:58 +00:00
matt 7728c19903 Reduce INSTALL_TINY by 1.3KB.
Support for a.out coredumps is now conditional on EXEC_AOUT, EXEC_COFF,
EXEC_ECOFF, or EXEC_MACHO, or LKM.  Since coredump_netbsd is the only user
of cpu_coredump, make that conditional too.  Lastly, add 'no options EXEC_AOUT'
so the EXEC_AOUT option in std.i386 can be overridden.
2005-06-12 00:24:32 +00:00
reinoud 273876cfba Implement auixp AC-link reset 2005-06-12 00:02:18 +00:00
wiz 23332a2615 Improve .An support: recognize -nosplit. 2005-06-11 23:46:57 +00:00
christos cc6e13ee6e mktemp() uses are ok here, so no more warnings. 2005-06-11 22:59:05 +00:00
christos 08cd5f47c8 Add a macro __MKTEMP_OK__ that renames mktemp() to _mktemp() for uses that
have been checked, so that the linker does not warn us. There are valid
uses for mktemp() such as for creating filenames that are going to be
targets of the rename system call. Discussed with lukem.
2005-06-11 22:58:42 +00:00
christos 5b18fe838f PR/30503: Nicolas Joly: swapctl(2) prototype does not match corresponding
syscall
2005-06-11 22:54:43 +00:00
christos 51b633d452 Remove an extraneous TTY_UNLOCK. With a LOCKDEBUG kernel, sending FLUSHO
causes a locking assertion.
2005-06-11 22:42:24 +00:00
christos 137b9bc57b 30393/Miles Nordin: PF/ALTQ does not work on ppp(4) interfaces
This is because the mbuf chain created did not have a header.
2005-06-11 22:26:42 +00:00
matt ea25c64213 Use coredump_elf32, not coredump_netbsd. 2005-06-11 20:06:46 +00:00
he 46892c9e37 Initialize class and node in modify_single(), as their initial assignment
appears to depend on the passed function parameters.
2005-06-11 18:42:56 +00:00
christos 19c38590ee PR/30500: Paul Shupak: Inconsistent definition of tilde_expand().
Provide a layer of indirection between the readline compatibility functions
and our internal implementation, so that we have the freedom to change the
function signature.
2005-06-11 18:18:59 +00:00
rpaulo 6371c84cab Add rpaulo.
Approved by hubertf.
2005-06-11 16:06:03 +00:00
elad 6533bc4abd Work according to veriexec strict level, not securelevel. Also, use the
veriexec_report() routine when possible; and when opening a file for writing,
only invalidate the fingerprint - not always the data will be changed.
2005-06-11 16:04:59 +00:00
darrenr 4e1ba8b46a bin/29508 - fix "ipf -T" - kernel wasn't setting ipft_cookie and userland
was expecting it to be set, thus ignored it.
bin/29509 - because ipft_cookie wasn't reset to 0 before making the ioctl
call for each variable, only the first name to find was used, each successive
call just used the cookie.
CVn: ----------------------------------------------------------------------
2005-06-11 12:31:40 +00:00
darrenr e5f523e30c Using USE_SPL should be done after the last place it is defined. 2005-06-11 12:12:59 +00:00
darrenr 486aaa2c70 kern/30082 - fr_check() is missing SPL_NET() macros for non-mutex using
platforms, allowing it to be preempted and restarted in an inconsistent
state.
2005-06-11 11:25:28 +00:00
snj e03ccec166 Fix typo in last. This compiles once again. 2005-06-11 08:54:35 +00:00
is eb4cc6d724 Make sure buffer sizes are initialized correctly even when the pause state
is explicitly set. Without this, the machine would crash in the audio interupt when the driver
needs to divide by the block size (e.g., cs4281.c/cs4280.c).
Idea for the fix by yamt.
2005-06-11 08:14:19 +00:00
he ab70040846 Add initialization of local variable to appease -Wuninitialized.
Marked with XXXGCC for arm and sparc64 compilers (found while
building for those).

Reviewed by lukem.
2005-06-10 23:48:24 +00:00
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