Commit Graph

207041 Commits

Author SHA1 Message Date
gdt c9bfbf1142 Move RTF_ANNOUNCE flag so that it no longer conflicts with RTF_PROTO2.
RTF_ANNOUNCE was defined as RTF_PROTO2.  The flag is used to indicated
that host should act as a proxy for a link level arp or ndp request.
(If RTF_PROTO2 is used as an experimental flag (as advertised),
various problems can occur.)

This commit provides a first-class definition with its own bit for
RTF_ANNOUNCE, removes the old aliasing definitions, and adds support
for the new RTF_ANNOUNCE flag to netstat(8) and route(8).,

Also, remove unused RTF_ flags that collide with RTF_PROTO1:
  netinet/icmp6.h defined RTF_PROBEMTU as RTF_PROTO1
  netinet/if_inarp.h defined RTF_USETRAILERS as RTF_PROTO1
  (Neither of these flags are used anywhere.  Both have been removed
  to reduce chances of collision with RTF_PROTO1.)

Figuring this out and the diff are the work of Beverly Schwartz of
BBN.

(Passed release build, boot in VM, with no apparently related atf
failures.)

Approved for Public Release, Distribution Unlimited
This material is based upon work supported by the Defense Advanced
Research Projects Agency and Space and Naval Warfare Systems Center,
Pacific, under Contract No. N66001-09-C-2073.
2011-11-11 15:09:32 +00:00
wiz 7b2c1e970a Add an EXAMPLE section showing how to add a swap file system using gpt. Bump date. 2011-11-11 13:26:45 +00:00
jruoho 8e19d9277e Fix typo. 2011-11-11 05:06:01 +00:00
jruoho 074fcac079 Fix wrong format string. 2011-11-11 05:03:38 +00:00
christos e965f57700 enable unlock notify 2011-11-11 01:34:18 +00:00
njoly 3f9feaa4df Remove extra newlines. 2011-11-10 22:33:12 +00:00
riz 4c9d92224e Add pseudo-device drvctl. (Already exists in i386 domU config) 2011-11-10 22:16:56 +00:00
jakllsch 2c4d5c4f31 When applying the board-specific bits for the SMC 9332,
the mediasw has already been set to non-NULL, don't require it to be NULL.
2011-11-10 20:12:48 +00:00
chs b594044edd add gcc-4.5/tgmath.h 2011-11-10 17:18:22 +00:00
chs 7411e1d619 include builtins.md in vax.md so that ffs is defined.
update for conditional branch changes in gcc.
2011-11-10 17:16:30 +00:00
seanb d0ff9c06e4 - Remove unused variable from nd6_timer(). 2011-11-10 17:10:00 +00:00
wiz 4a47c09250 Fix typo. 2011-11-10 16:44:47 +00:00
manu ec1aa8a54b Return EISDIR for read/write to directories. NetBSD directory read should
instead return a getent(2) output, but is that really used?
2011-11-10 16:21:09 +00:00
yamt 9c5d9163d1 document pthread_curcpu_np 2011-11-10 14:01:11 +00:00
christos 7b69fe6a2f PR/45595: bch: fix missing magic prefix 2011-11-10 13:41:00 +00:00
yamt 128f443a4a add a crude dependency on tm_p.h. build.sh -j128 fails for me without this. 2011-11-10 09:28:25 +00:00
riz 71932a0feb i386_use_pae is now just use_pae. 2011-11-10 03:45:40 +00:00
joerg f02d1cc2e1 Don't redefine _C_LABEL. 2011-11-10 00:37:38 +00:00
joerg e18cbfbf65 G/C -nostdinc usage, --sysroot is provided automatically. 2011-11-10 00:36:54 +00:00
jym 56027687e2 Turn the 'i386_use_pae' variable into simply 'use_pae'. Technically
speaking we are also running with PAE enabled in long mode under amd64,
so this variable will be used in various places across x86 machdep to
branch at runtime to functions that require extra handling for PAE mode.
2011-11-10 00:12:04 +00:00
drochner 8e6899dea3 Don't allow '/' characters in the "service" argument to pam_start()
The "service" is blindly appended to config directories ("/etc/pam.d/"),
and if a user can control the "service" it can get PAM to read config
files from any location.
This is not a problem with most software because the "service" is
usually a constant string. The check protects 3rd party software
from being abused.
(CVE-2011-4122)
2011-11-09 20:26:41 +00:00
drochner 7621b801a7 remove duplicated #defines (in a usually unused part of the code) 2011-11-09 20:17:44 +00:00
christos 60b08a4dfb cosmetic, no functional change:
- sizeof(*var) instead of sizeof(type)
- sort the event counters in the discard the same as alloc for readability
2011-11-09 19:43:22 +00:00
wiz 10532e0141 Sort sections, use Aq, add comma in enumeration. 2011-11-09 19:42:27 +00:00
christos c4753f0f6f sync with /usr/bin/time, use CLOCK_MONOTONIC 2011-11-09 19:16:00 +00:00
christos d656290c5d PR/45592: Greg A. Woods: changes to get time(1) to use CLOCK_MONOTONIC 2011-11-09 19:10:10 +00:00
tron 7207ea5adf Postfix 2.8.7 has been imported. 2011-11-09 19:08:59 +00:00
tron 37141b1254 Resolve conflicts from last import. 2011-11-09 19:06:34 +00:00
tron c3d89ca464 Import Postfix 2.8.7. Changes since version 2.8.6:
Postfix stable release 2.8.7 is available. This contains a workaround for
a problem that is fixed in Postfix 2.9.
- The postscreen daemon, which is not enabled by default, sent non-compliant
  SMTP responses (220- followed by 421) when it could not give a connection
  to a real smtpd process. These responses caused some remote SMTP clients
  to return mail as undeliverable.

  The workaround is to hang up after sending 220- without sending the
  421 "sorry" reply; this is harmless.
2011-11-09 18:58:43 +00:00
drochner bbe84d1654 for the *xattr() calls, return ENOTSUP rather than EOPNOTSUPP if
the filesystem doesn't support extended attributes -- this is how
it is documented in Linux manpages
(on Linux itself, ENOTSUP and EOPNOTSUPP are the same value)
approved by Emmanuel Dreyfus
2011-11-09 18:29:28 +00:00
matt 41adc9f5c2 Make sure to invalidate correct size. 2011-11-09 17:05:50 +00:00
christos 5607c3d45b add a large timeout for libtre 2011-11-09 15:14:44 +00:00
christos cd021ecc4e need || instead of && 2011-11-09 14:42:42 +00:00
wiz 918f67027f Use Sq, and remove trailing whitespace. 2011-11-09 14:16:00 +00:00
is 5224338e35 If hosts.lpd contains '+', don't insist on reverse DNS == forward DNS. 2011-11-09 12:45:58 +00:00
roy 6a222e7196 Replace fgetln(3) with the more standard getline(3) 2011-11-09 07:40:27 +00:00
macallan e572604a78 Support setting the temperature threshold for the LM75's alarm/interrupt
output. Some hardware ( I'm looking at you, Gdium ) abuses it to control
a fan.
2011-11-09 05:47:54 +00:00
riz 6d1b5d773a Don't add iscsi_utils.c without 'iscsi' condition. 2011-11-09 00:51:00 +00:00
christos d08c0f066a mention libgcc/emacs hack. 2011-11-08 23:11:42 +00:00
christos d87651d3f4 Somehow emacs tries to unregister frame info for a symbol it did not register.
Don't abort for now. This worked before because the previous version of gcc
did not bother unregistering. Adding debugging printfs makes emacs core
dump, where other programs work fine.
2011-11-08 23:08:11 +00:00
joerg 2405db5059 Just because IPV6 support is disabled doesn't mean inet_ntop are not
present. Since the local prototype conflicts, use the system version.
2011-11-08 22:21:30 +00:00
joerg e7b856ae43 Unbreak MKINET6=no 2011-11-08 22:13:58 +00:00
christos af2ef29d66 use writev(2) instead of dprintf(3) for portability. Suggested by joerg@ 2011-11-08 20:25:14 +00:00
apb bbc5f4100a The previous change made "nooutput -2" discard both stdout and
stderr, whereas it should discard only stderr.  This commit
should fix that problem.
2011-11-08 19:36:30 +00:00
christos c8e7a7eec2 if we don't have any sets yet, don't try to look in them. 2011-11-08 19:25:45 +00:00
apb 97355391d0 In the nooutput function, don't mess with file descritor 4
at the outer level; do it inside a subshell context so as not
to interfere with a different use of fd 4 by the caller.

This should fix PR 45590.
2011-11-08 19:11:19 +00:00
christos 788c275de8 Change the way that we compute the time when we fall in the dst gap: instead
of supplying just the high bound and thus losing minutes and seconds, add
the DST offset to the struct tm (since we know we are going to move ahead
since we fell in the gap), and try again.
2011-11-08 18:37:31 +00:00
cherry 3520926365 Expose the PG_k #define pt/pd bit to both xen and "baremetal" x86. This is required, since kernel pages are mapped with user permissions in XEN/amd64 since the VM kernel runs in ring3. Since XEN/i386(including PAE) runs in ring1, supervisor mode is appropriate for these ports. We need to share this since the pmap implementation is still shared. Once the xen implementation is sufficiently independant of the x86 one, this can be made private to xen/include/xenpmap.h 2011-11-08 17:16:52 +00:00
joerg 4041630e67 libkern.h maps memcmp, memset and strcpy to the compiler builtins on
some platforms, so make sure to #undef them first.
2011-11-08 16:52:11 +00:00
joerg 7964dc0f2c Don't use constant macros in conditionals, use a #if check. 2011-11-08 16:45:43 +00:00