Commit Graph

151917 Commits

Author SHA1 Message Date
macallan ed1eed3512 add timecounter support, mostly from prep. 2006-09-29 22:20:08 +00:00
manu efb59e1b32 Fix the fix: handle_recv closes the socket, so we must call com_init before
sending any data.
2006-09-29 21:39:35 +00:00
cube 86f0ff14cc Regen. 2006-09-29 20:49:48 +00:00
cube a556b65796 Add ids of devices found in the nForce 570 chipset.
Add GeForce 6200LE.
2006-09-29 20:48:41 +00:00
apb 9eda896a8f Use ${HOST_SH}, not just sh, in the shell command to set MAGDIRF. 2006-09-29 20:20:47 +00:00
apb 9a724f1a2d Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Don't use GROFF_CSH_HACK.  It would change the "#! /bin/sh" to just
  ":", and this causes trouble for some shells.  For example, if
  CONFIG_SHELL=/bin/ksh, when the groff build uses ${CONFIG_SHELL} to
  run a script that has been modified in this way, ksh sees the ":" and
  decided to run the script under /bin/sh instead.

* Use SH_SCRIPT_SED_CMD="1s,/bin/sh,${CONFIG_SHELL},"
  to edit the "#! /bin/sh" line, to ensure that scripts
  are always run under the correct shell.
2006-09-29 20:19:40 +00:00
apb 9130d905da Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Pass MAKE and CONFIG_SHELL in the environment to configure scripts
  that are run as part of the gcc3 and gcc4 build.
2006-09-29 20:14:10 +00:00
apb 0de1d80a7e Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Use ${CONFIG_SHELL:-/bin/sh} ${rootdir}/move-if-change
  instead of just ${rootdir}/move-if-change.
2006-09-29 20:12:32 +00:00
macallan e4bbe76d49 fix typo 2006-09-29 20:12:01 +00:00
apb da8e22116c Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Use ${CONFIG_SHELL:-/bin/sh} instead of just /bin/sh when creating
  temporary shell scripts.
2006-09-29 20:11:07 +00:00
apb cb575a16ce Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Add CONFIG_SHELL=$(SHELL) to the environment when invoking genmultilib.
  Due to substitutions made by associated configure scripts, the make
  variable $(SHELL) will actually refer to the environment variable
  ${CONFIG_SHELL}.
2006-09-29 20:10:01 +00:00
apb f90c5ef1d5 Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Explicitly use $(SHELL) to run shell scripts.

* Use SHELL = @SHELL@, not SHELL = /bin/sh.  @SHELL@ will be substituted
  by associated configure scripts, and will actually refer to the
  environment variable ${CONFIG_SHELL}.
2006-09-29 20:08:36 +00:00
plunky a9ed4719e4 Fix it so that PINs are single use only.
This is important when you generate a random PIN and can't remember it.
2006-09-29 20:06:11 +00:00
apb 01948befcb Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* _PATH_BSHELL from the host's <paths.h> might be broken, so override it
  with our PATH_BSHELL, which is derived from HOST_SH.
2006-09-29 20:00:15 +00:00
apb be15399d6a Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Describe the HOST_SH variable, and the way build.sh attempts to set it.

* Suggest passing HOST_SH in the environment if /bin/sh is not a working
  shell.
2006-09-29 19:57:04 +00:00
apb 1889c0e175 Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Try to guess a suitable value for HOST_SH, if it was not set in
  the environment.  First try host-specific heuristics (Solaris has
  /usr/xpg4/bin/sh); then try to find the name of the shell that was used
  to run build.sh itself (by parsing the output from ps -p $$ -o comm);
  then fall back to "sh".

* Having found a value for HOST_SH, copy it to BSHELL and CONFIG_SHELL.

* Use ${HOST_SH} instead of /bin/sh when creating the make wrapper.

* Use ${HOST_SH} instead of unqualified sh when running shell scripts.
2006-09-29 19:53:54 +00:00
christos 804dfaa036 Coverity CID 2960: Don't print NULL vnode (from Arnaud Lacombe) 2006-09-29 19:41:16 +00:00
dsl 4bde2b5d8d Redraw the 'welcome' message when we redisplay the 'utility' menu.
Otherwise it will sit atop the last data output by the last executed
utility.  Even a blank screen looks funny.
2006-09-29 19:41:07 +00:00
christos 1d0edbd583 Coverity CID 2951, 2953, 2954: Add KASSERTS before null deref 2006-09-29 19:39:43 +00:00
dsl a178085551 Reap any dead children that we have at startup.
If there are any undead ones set a flag so we don't report the 'Child (pid)
not in table' message when they die - it is impossible to (portably) find
the childrens pids.
This happens when make is run as 'make -f- ... <<EOF' and the shell uses
a child of (what will be) make to write the data into a pipe.
2006-09-29 19:38:48 +00:00
christos f1a4e9cae0 Coverity CID 2949: comment out dead code (from Arnaud Lacombe) 2006-09-29 19:37:11 +00:00
macallan 8c774caf8c Add gimpy's OF device tree dumping tool.
Tested on macppc and sparc64
2006-09-29 19:03:11 +00:00
tsutsui 7db79c4e79 - KNF
- u_intNN_t -> uintNN_t
- misc cosmetics
2006-09-29 18:56:29 +00:00
plunky ebb327f7cd back off previous changes since the 'memory leak' fix - we dont need any of
that, just use the _nocopy version of the function.
2006-09-29 18:48:17 +00:00
christos e02941da8f Coverity CID 2714: Fix reversed test (from Arnaud Lacombe) 2006-09-29 18:40:57 +00:00
christos f89dbcf8f7 Coverity CID 2435: Add KASSERT before NULL deref (from Arnaud Lacombe) 2006-09-29 18:30:37 +00:00
tsutsui 60abfbb6b9 ANSIfy. 2006-09-29 18:27:51 +00:00
tsutsui 0afee5cb99 TAB/space cleanup. 2006-09-29 18:20:02 +00:00
christos 8da6ea8890 Check for cert being NULL too. 2006-09-29 17:07:32 +00:00
christos a0feefba6a Avoid buffer overflow. 2006-09-29 17:02:04 +00:00
tsutsui ab86520375 Set a timeout only if any TX packet is actually queued. 2006-09-29 16:46:49 +00:00
tsutsui 7d6d7a0b22 rtk_intr() should return 1 only if any interrupts are actually handled. 2006-09-29 16:40:15 +00:00
cube 155a80cb76 A local change crept in when it wasn't meant to, I suppose. [hi rjs!] 2006-09-29 16:39:27 +00:00
tsutsui 4c0a796caa Use `SIMPLEQ_EMPTY()' rather than `SIMPLEQ_FIRST() == NULL'. 2006-09-29 16:38:16 +00:00
tsutsui a63cbd1696 Handle more wraparound case on RX ring-buffer calculation.
(it might cause problem only if RTK_RXBUFLEN < 64KB)
2006-09-29 16:33:41 +00:00
drochner 429dff1c3d Flush regular files before setattr also if the mode bits are going to
be set. Linux NFS servers (at least) reset suid/sgid bits if a write
happens afterwards. Add a comment why this is done.
This fixes system builds on diskless systems for me where suid bits
were missing after install(1).
Approved by yamt.
2006-09-29 16:19:50 +00:00
christos 36ac62d963 PR/34658: der Mouse: identd truncates queries to first segment 2006-09-29 15:49:29 +00:00
christos a5239739d0 PR/34656: Geoff C. Wing: pppd has stuffed up wtmpx code 2006-09-29 15:44:46 +00:00
pooka 751537fe38 Make these work again. I know, I'm a bit impatient, since they've
only been broken for 12 years, but some things are better done
sooner than later.

While meddling here, introduce mp_vchain, which prints the vnode
chain given a mount point.
2006-09-29 15:43:06 +00:00
christos 897b34d36d http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-2937
OpenSSL 0.9.7 before 0.9.7l and 0.9.8 before 0.9.8d allows
    remote attackers to cause a denial of service (inifnite loop
    and memory consumption) via malformed ASN.1 structures that
    trigger an improperly handled error condition.

http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-2940
    OpenSSL 0.9.7 before 0.9.7l, 0.9.8 before 0.9.8d, and earlier
    versions allows attackers to cause a denial of service (CPU
    consumption) via certain public keys that require extra time
    to process.

http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-3738
    Buffer overflow in the SSL_get_shared_ciphers function in
    OpenSSL 0.9.7 before 0.9.7l, 0.9.8 before 0.9.8d, and earlier
    versions has unspecified impact and remote attack vectors
    involving a long list of ciphers.

http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-4343
    Unspecified vulnerability in the SSLv2 client code in OpenSSL
    0.9.7 before 0.9.7l, 0.9.8 before 0.9.8d, and earlier versions
    allows remote servers to cause a denial of service (client
    crash) via unknown vectors.
2006-09-29 15:41:08 +00:00
yamt aef2b2eac9 yamt-splraiseipl: amiga. 2006-09-29 15:34:47 +00:00
christos f0f6b1cde9 Using (void)&foo; shuts up gcc-4 but does not stop the compiler from clobbering
the variables in the setjmp/longjmp cases. Use volatile instead as we are
supposed to (from our anonymous user).
2006-09-29 14:59:31 +00:00
christos 43fe375242 Coverity CID 3664/2964: Add KASSERTS before dereferencing l, p; these really
can't be NULL at this point, but adding the checks does not hurt
(from Arnaud Lacombe)
2006-09-29 14:48:15 +00:00
christos 3f7563e969 Coverity CID 4119: Check negative returns (from Arnaud Lacombe) 2006-09-29 14:42:59 +00:00
christos 03a48a92ca Coverity CID 4027: Initialize oldphys (from Arnaud Lacombe) 2006-09-29 14:41:32 +00:00
christos 4589200621 Coverity CID 3801: Plug memory leak (from Arnaud Lacombe) 2006-09-29 14:39:09 +00:00
christos 95d484d975 Coverity CID 4151: Don't forget to close the firmware file (from Arnaud Lacombe) 2006-09-29 14:38:04 +00:00
he f1afbc1ee7 Use PRIu64 instead of llu when printing an u_int64_t.
Fixes a build problem for our LP64 ports, where u_int64_t is
typically an unsigned long.
2006-09-29 14:36:34 +00:00
christos ca42d11f95 Coverity CID 3786: Fix memory leak (from Arnaud Lacombe) 2006-09-29 14:36:30 +00:00
he a4970f4ee7 The "success" field in Authctxt needs to be a sig_atomic_t, not an int,
so that we don't get a type conflict on dispatch_run() invocation.  Found
while building for alpha and amd64.
2006-09-29 14:34:25 +00:00