Commit Graph

2997 Commits

Author SHA1 Message Date
joerg
103b308da9 Update LLVM/Clang snapshot to r153935. This brings in the new inline
cost analysis.
2012-04-04 10:42:00 +00:00
bsh
87767e019d enable X11 build for evbarm. 2012-04-04 01:23:26 +00:00
roy
2bbf0ef7b5 Wrap our restart command using if ... then so that we return zero
if it doesn't exist or is not running.
Depend on this Makefile so that if the restart command structure changes
the subscribers are rebuilt.
2012-04-03 10:50:46 +00:00
roy
f08761da93 * Fixed a potential segfault with IPv6 option handling
* Add a suffix to all our config files so that RA never stamps on IPv4
* All valgrind errors fixed on FreeBSD (with ./configure --debug=YES)
* When started with an interface list, respect that with signal handling
* Fix a potential route table corruption if we failed to add a route
2012-03-28 10:19:31 +00:00
christos
7035527430 disable exact cpu override to fix cross-compiling on linux 2012-03-27 21:56:04 +00:00
roy
cf0cc01bbe Import openresolv-3.5.1 to fix resolv_conf_local_only. 2012-03-27 21:21:24 +00:00
joerg
13a266b186 Use :Q for quoting. Execute shell script using the host shell. 2012-03-27 00:36:06 +00:00
wiz
ecd0670167 Remove unnecessary Ns; fix formatting nit. 2012-03-26 22:06:04 +00:00
roy
3ea18e4c78 Sync 2012-03-26 14:43:01 +00:00
roy
333b300105 Import openresolv-3.5.0 with the following changes:
* Added resolv_conf_local_only which defaults to true.
  This means that if you configure a local nameserver we don't add
  any other nameservers to resolv.conf to avoid duplicate queries.
* Add domain_blacklist and name_server_blacklist variables.
  We default name_server_blacklist to 0.0.0.0 to handle some faulty
  routers.
* Add .Lk macro to URLs.
* Fix IPv6 parsing on domains which include an IPv4 server for dnsmasq.
2012-03-26 14:41:33 +00:00
plunky
5b72322c69 update for pcc-20120325 2012-03-26 14:31:12 +00:00
plunky
b0dc17edf5 resolve merge conflicts 2012-03-26 14:30:46 +00:00
plunky
f48728536a Update to pcc-20120325
The full changelog is at

 http://pcc.ludd.ltu.se/fisheye/changelog/~date=2012-03-25T06%3A00%3A00/pcc

and includes some bug and documentation fixes.

The siginifcant improvements were that the __returns_twice__ attribute is
now accepted, and a problem parsing attributes on parameters of function
prototypes was fixed.

(both of these issues caused problems compiling with the NetBSD headers)
2012-03-26 14:26:07 +00:00
martin
d6ad405412 PRIu64 is not the right format string for unsigned long long. 2012-03-25 09:50:45 +00:00
tron
288a9e6b4c Set "BINDIR" to get binaries installed in the correct directory. 2012-03-24 18:27:16 +00:00
christos
fe7112e3e3 bring back all our fixes. 2012-03-24 02:19:00 +00:00
christos
e7d50bf676 Make this build from our own tree. 2012-03-24 02:08:34 +00:00
matt
15d35d9c93 Use sys/external, not sys/dist 2012-03-24 00:32:50 +00:00
christos
500828b37a deal with tests 2012-03-23 23:14:34 +00:00
christos
dd357d4c8a Engage ipf 2012-03-23 21:31:27 +00:00
christos
8e2bdc9a64 Build gluons 2012-03-23 21:29:44 +00:00
christos
37fde22ea8 make this work again. Kill tests and kernel module for now 2012-03-23 21:29:34 +00:00
christos
ccd7c017b0 kill caddr_t 2012-03-23 21:28:57 +00:00
christos
bc4097aacf import 5.1.1 2012-03-23 21:19:53 +00:00
wiz
3315c81aec Comment in --version description. It works, it's just not in the getopt
array.
2012-03-23 20:49:05 +00:00
sborrill
e02c5b57f9 Switch off per-cpu states by default (i.e. display a single CPU line with a
mean average). Program behaviour now tallies with the man page, but more
importantly, the default behaviour is now sensible for modern multi-core
machines.

If you want the previous behaviour, please set TOP="-1" in your environment.

Fix multiple "1" options not toggling and thus allow settings in TOP
environmental variable to be reversed by a command line option.

Tweak description of "1"  command in interactive mode.

OK christos@
2012-03-23 14:46:05 +00:00
sborrill
076ec7d41f Mention that 1 can be used as an interactive command. 2012-03-23 13:32:51 +00:00
wiz
fabe784d6c Sort short options in SYNOPSIS. 2012-03-23 12:35:59 +00:00
wiz
47a539e56a Comment out --version in SYNOPSIS as well. 2012-03-23 12:33:43 +00:00
wiz
2086942ea5 Fix Dd and Dt arguments.
New sentence, new line.
Sort options and option descriptions.
Sort SEE ALSO.
Use Fl Fl for long options.
Comment out --version description which binary doesn't support.
2012-03-23 11:19:18 +00:00
wiz
16fc69f4fa Fix Dt argument. 2012-03-23 11:18:30 +00:00
roy
1579ddfabe Sync 2012-03-23 09:40:18 +00:00
roy
0ddbb53364 Import dhcpcd-5.5.5 with the following changes:
* We store the RA against the interface so we can do a comparsion
  so we don't spam the log frequently.
* By default only fork on RA if it has a valid RDNSS option
* Add .Lk macros to the man pages
* Use correct event loop calls in RA handling code
* Fix several memory overrun issues
* Use CSR more than once
* Allow operation on Bridge and VLAN interfaces
2012-03-23 09:39:14 +00:00
joerg
5466d21da4 Disable a bunch of additional warnings for now for the clang build. 2012-03-22 23:46:26 +00:00
christos
69586eb894 From Garo Taft:
- Add a -w flag which will make the sanity script sleep for a second before
  and after checkouts, commits, and updates.
- Fix expected output to look for the right default action on empty log
  message. It's now "abort".
- Add new requests "Checkin-prog" and "Update-prog" to expectation values.
- Add new "access"âand "group" files to CVSROOT admin database expectation
  values.
- All tests pass except client-20, which hangs.
2012-03-22 20:49:53 +00:00
christos
92a9368199 only +1 for the 0'th thread (if we did not find any other) 2012-03-22 16:06:01 +00:00
christos
2f9576aacc complete the mapping of the lwp -> (lwp - 1), by adding 1 where appropriate. 2012-03-22 15:26:32 +00:00
christos
24da109f75 Use tid - 1 for the thread id, so that thread 1 matches the main thread
before the threaded code gets loaded. fixes spurious breakpoints. Is
there a better way?
2012-03-21 23:20:58 +00:00
christos
9b33eb8aa1 Undo previous, it was wrong:
The problem has to do with the threaded initialization.
After we take the first breakpoint and we enter single step mode,
we set trap_expected = 1 in the thread_info structure for main <pid,0,0>.
After the threads initialize, the main thread becomes <pid,1,0>, and so
we get a new thread_info struct with trap_expected = 0, and so we break.
2012-03-21 21:25:38 +00:00
christos
436a58b1ab Disable OS supplied single step functionality, because the code here is
wrong.
2012-03-21 18:01:34 +00:00
mrg
2466239b54 remove references to my src/obj trees, and make a note about avoiding
this in the future / should automate it too.
2012-03-20 08:21:38 +00:00
wiz
e93c7961c5 Sync usage with man page. 2012-03-19 09:14:15 +00:00
wiz
34e2e47694 New sentence, new line.
Sort descriptions.
Use simpler markup.
Bump date for previous.
2012-03-19 09:13:33 +00:00
bsh
f4eb9f64cb adjust the size of db_symtab space automatically.
proposed on tech-toolchain@, and got no objections.
2012-03-19 05:38:26 +00:00
nakayama
83109d5c7b Use toolchain awk to make them buildable on Solaris 10. 2012-03-17 12:42:31 +00:00
dholland
65d87cbafc Make a quick note about adding a short summary of changes to the cvs import
message.

Currently you can't prepare that in advance and then use cvs import -F
file to supply the log message in a file. Will file a PR on cvs for this.
2012-03-17 11:10:33 +00:00
joerg
93f9555bb0 Add __printflike where needed. Fix various format string issues. 2012-03-15 04:06:54 +00:00
alnsn
381b31e921 Don't overwrite Roberto's external $Id. 2012-03-15 01:02:19 +00:00
alnsn
a52d12daae Resolve conflicts. 2012-03-15 00:17:22 +00:00
alnsn
7e762f0e7b Import Lua 5.1.5 2012-03-15 00:08:04 +00:00
christos
0dc6655837 Entries to the file contents need to be NULL terminated. 2012-03-13 17:12:30 +00:00
christos
a08c0283e2 don't switch back LC_NUMERIC after parsing the command line, we always want
to format numbers in the C locale.
2012-03-12 18:17:12 +00:00
plunky
21ea2b0bfd recognise (but ignore) the __returns_twice__ GCC attribute 2012-03-12 09:09:40 +00:00
jnemeth
c5103d3366 Fix build failure caused by previous change. Hi jruoho! 2012-03-12 02:18:49 +00:00
jruoho
0f39d48365 Skip the "simple timeout" test. This test case is known to fail rather
consistently when run in emulated environments such as Qemu.
2012-03-11 19:03:33 +00:00
tron
40b2e566cb Link with "libexpat" again. This should fix the problems with X11 server
reported by Gary Duzan on the "current-users" mailing list.
2012-03-10 20:52:30 +00:00
christos
7fffb381da PR/46155: Miguel Piñeiro Jr: Fix RS processing. Apply the gawk-like patch
from the excellent PR. Many thanks for all the work you put on this,
explanation, tests, and patch!
2012-03-10 19:18:48 +00:00
christos
f6d789ff18 remove statement with no effect. 2012-03-09 15:24:34 +00:00
christos
6799d6e664 add acl.c 2012-03-09 00:14:16 +00:00
joerg
4acff4c01b Implement sem_timedwait. 2012-03-08 21:59:24 +00:00
christos
75e57c5640 refresh autoconf infrastructure so that it has a fighting chance to work
with something not from the previous decade.
NB: I should eventually put back the OS specific stuff I've removed so
that we can have a complete distribution.
2012-03-08 20:54:18 +00:00
christos
00f7e7b88f prefer NULL over 0 2012-03-08 20:50:55 +00:00
christos
8182c8fa04 fix format string 2012-03-08 20:50:46 +00:00
christos
a3b3956a06 add cvs acl support 2012-03-08 20:50:26 +00:00
christos
286e174e7d Don't use %n in the writable data segment. Fortified glibc complains. When
the left hand does not communicate with the right hand.
2012-03-08 20:49:29 +00:00
christos
6c8d7be65d add acl support 2012-03-08 20:48:02 +00:00
christos
90cde42e32 - put back missing noexec check
- add cvs acl support
2012-03-08 20:47:45 +00:00
christos
9c245492c2 check symlink return 2012-03-08 20:47:17 +00:00
christos
99ced8ed96 add acl support 2012-03-08 20:46:59 +00:00
christos
e05cc624b8 in new format strings, formats are actually checked, so put tag commands in. 2012-03-08 20:46:35 +00:00
christos
09b7edcb8d check chdir return 2012-03-08 20:46:08 +00:00
christos
8fb428a11a - fix printf format string
- add acl support
2012-03-08 20:45:52 +00:00
christos
255af61e37 - add acl support
- document availability of tag commands.
2012-03-08 20:45:28 +00:00
christos
2d4ac8bd98 add acl prototype 2012-03-08 20:44:32 +00:00
christos
f029472951 add acl function prototype 2012-03-08 20:44:06 +00:00
christos
e5bacfa057 - better handling of binary files
- add acl support
2012-03-08 20:43:48 +00:00
christos
b33dfa11bd use the result of strtoul 2012-03-08 20:43:19 +00:00
christos
9e721b8438 restore lost fix: add nolock 2012-03-08 20:42:56 +00:00
christos
e2e2a4ed11 attempt to fix the unit tests 2012-03-08 20:42:21 +00:00
christos
e76f287eda - check return value of write(2)
- add acl support
2012-03-08 20:41:48 +00:00
christos
cde5019549 Add cvs acl support 2012-03-08 20:41:20 +00:00
christos
c520239488 - Put back %, which was removed from the new format strings
[with reversed meaning, so that we are still compatible with the new format]
- Fix format strings
2012-03-08 20:41:04 +00:00
christos
3046f895f0 add acl.c 2012-03-08 20:39:28 +00:00
christos
a24f5ebc91 fix malloc botches in the original code 2012-03-08 20:37:29 +00:00
christos
22d2af8da8 - restrict tag command to non-destructive operations for non-admins.
[deletion, moving is dissallowed]
- add history for tag commands
- cvs acl support
2012-03-08 20:34:35 +00:00
christos
25f203d228 - acl support
- check chdir return
2012-03-08 20:33:02 +00:00
christos
53edc8a562 acl support 2012-03-08 20:32:31 +00:00
christos
4872c424c4 announce acl support 2012-03-08 20:32:18 +00:00
christos
d246e6162a add acl info 2012-03-08 20:30:38 +00:00
tron
d2071ea334 Fix multiple problems in previous commit:
1.) Correct set-uid check to allow "root" to run "crontab -l" again.
2.) Don't the the last error reported in "errno" in case "crontab" is not
    installed set-uid "root". As no system-call failed "errno" is set
    to zero.
2012-03-04 18:38:31 +00:00
matt
6be8dcf23e Fix merge botch dealing with linker assignments. 2012-03-04 17:09:32 +00:00
tron
afa136001d Add support for SQLite look-up tables to postfix(1), see sqlite_table(5)
for more details.

While here stop installation of pcre_table(5) as this table type
is not supported.
2012-03-04 16:12:24 +00:00
christos
2ed8e2f0f4 PR/46127: Holger Weiss: "crontab <file>" fails for unprivileged users
XXX: Pullup to 6
2012-03-02 19:26:40 +00:00
matt
82cfc8036f Fix support for .protected symbols. 2012-03-02 16:37:16 +00:00
joerg
19e5019315 Update to LLVM/Clang snapshot r151769 to get much better code for __BIT
on i386.
2012-03-01 01:12:48 +00:00
tron
df92d05dec Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.
2012-02-29 20:07:51 +00:00
joerg
de785a6e75 gdb likes to mix different enum types in switches, so disable the check
for clang.
2012-02-28 22:07:54 +00:00
joerg
a322032f80 Disable -Wempty-body here. 2012-02-28 22:07:16 +00:00
joerg
14ac342e56 Don't use clang here. 2012-02-28 20:26:07 +00:00
joerg
ead2c0eee3 Update LLVM/Clang snapshot to r151411. This brings in Lambda support for
C++11 and a new literal format string check to catch variadic argument
functions.
2012-02-28 17:09:29 +00:00
joerg
312af31841 Merge XZ 5.0.3. 2012-02-28 14:22:21 +00:00
joerg
4c273eb011 Import XZ 5.0.3:
- memory leak in liblzma fixed
- better validation
- correct behavior for suid/sgid/sticky bit and hard links with xz --force
- cleanup and new translations
2012-02-28 13:46:53 +00:00
christos
268a453af7 PR/46068: Fix symbol loading on i386 kernels. On i386 lma != vma and gdb7
depends on them being != to detect overlays and avoid loading them. I've
disabled the test for now.
2012-02-24 22:41:12 +00:00
nonaka
6e76caabe4 fix build failure on mips64. 2012-02-23 11:05:02 +00:00
christos
b327f3cc96 Look at the proper offsets for MD info, depending on the size of the binary
32 or 64.
2012-02-22 18:25:12 +00:00
christos
046a38dd85 merge conflicts 2012-02-22 17:53:48 +00:00
christos
f50962bc3d from ftp.astron.com, CDF security fixes 2012-02-22 17:48:04 +00:00
christos
0e7bd65839 fix wrong variable, import command 2012-02-22 17:47:25 +00:00
wiz
8416dd0a6e melt more snowflakes until they all look like pkgsrc 2012-02-21 18:36:16 +00:00
wiz
18feb27734 melt snowflakes 2012-02-21 18:27:05 +00:00
wiz
75402d0165 Import pkg_install-20120221 for joerg.
Bug fix already there, this just bumps version.
2012-02-21 18:25:15 +00:00
wiz
34653e01b1 Fix PR 46068 using the patch by Nicolas Thauvin:
pkg_add fails to install a package when subdirectories are missing
in the path to package directory in /var/db/pkg.
2012-02-21 13:32:45 +00:00
tron
f5158aee04 Resolve conflicts from last import. 2012-02-19 17:49:09 +00:00
tron
9cc7e269b3 Update "pkg_install" to version 20120128:
- pkg_install 20120128:
  - Explicitly stat(2) if mkdir failed. errno detection doesn't work e.g.
    on Solaris.
  - Provide a stable order for package names that only differe in the base
    name, not the version number.
- pkg_install 20110805:
  - Fix for pkg_delete on NFS from Anthony Mallet.
2012-02-19 17:46:46 +00:00
christos
5c46bfcb22 Fix MKREPRO = yes
XXX: pullup to 6
2012-02-19 05:06:41 +00:00
christos
3ac0dffdc2 fix prototypes 2012-02-18 19:17:54 +00:00
mrg
97a48de011 avoid bfd.info rebuilds and r/o source lossage. 2012-02-18 06:17:39 +00:00
mbalmer
b2d484f7cb Fix typos (in comments). 2012-02-17 12:08:12 +00:00
tron
a30206eafe Include "defer.h" to get the prototype for defer_append(). 2012-02-17 09:17:22 +00:00
tron
b8a7952854 Import Postfix 2.8.8. Changes since Postfix 2.8.7:
- The Postfix sqlite client, introduced with Postfix 2.8, had an
  embarassing bug in its quoting routine. As the result of a
  last-minute code cleanup before release, this routine returned the
  unquoted text instead of the quoted text. The opportunities for
  mis-use are limited: Postfix sqlite database files are usually owned
  by root, and Postfix daemons usually run with non-root privileges so
  they can't corrupt the database. This problem was reported by Rob
  McGee (rob0).
- The Postfix 2.8.4 fix for local delivery agent database lookup
  errors was incomplete. The fix correctly added new code to detect
  database lookup errors with mailbox_transport_maps,
  mailbox_command_maps or fallback_transport_maps, but it failed to
  log the problem, and to produce a defer logfile record which is
  needed for "delayed mail" and "mail too old" delivery status
  notifications.
- The trace(8) service, used for DSN SUCCESS notifications, did not
  distinguish between notifications for a non-bounce or a bounce
  message, causing it to "reply" to mail with the null sender
  address. Problem reported by Sabahattin Gucukoglu.
- Support for Dovecot auth over TCP sockets, using code that already
  existed for testing purposes. Patrick Koetter kindly provided an
  update for the SASL_README file.
- Workaround in the LDAP client for changes in the under-documented
  OpenLDAP API, by Victor Duchovni.
2012-02-17 08:35:39 +00:00
joerg
d04049e559 Use mmap when dealing with plain files. 2012-02-16 22:56:12 +00:00
joerg
1fff0d9a0c Merge mandoc.h r1.99 and read.c 1.28 from upstream:
Add mparse_readmem, which allows application to run the parser directly
from memory, e.g. after de-compressing a document.
2012-02-16 20:58:23 +00:00
nakayama
b3ed3f9f74 The default configuration for TLS support is supposed to use Sun
as, but we use GNU as.  So in this case it generates wrong
relocations in non-PIC mode.

This change fixes lib/libc/tls/t_tls_dynamic test failure on 32-bit
sparc as described in PR toolchain/45985.

Approved by releng.
2012-02-14 11:25:05 +00:00
wiz
2b8cc88a65 Use the correct path in dt_module.c.
From clang via Henning Petersen in PR 46009.
2012-02-13 13:05:36 +00:00
wiz
6ef3ca5393 Use the correct MACHINE_ARCH for amd64.
Remove temporary hack while here.
From Henning Petersen in PR 46001.
2012-02-13 12:52:54 +00:00
tron
e658fe9f45 Re-apply NetBSD patches. 2012-02-11 18:22:58 +00:00
tron
d50d1d7f8b Initial import of "expat" 2.0.1 into base:
This is James Clark's expat XML parser library in C. It is a stream
oriented parser that requires setting handlers to deal with the
structure that the parser discovers in the document.

This is the first part of the fix for PR lib/40346.
2012-02-11 18:18:10 +00:00
tsutsui
ddafd3b8c8 More SL-C7x0/860 support for Xorg server usage:
- pull touchpanel adjustment ioctls to w100lcd.c for SL-C7x0/860
  from zlcd.c for SL-C1000/3x00
- add sample xorg.conf for C7x0/860 (which have hardware screen rotation)
- rename old xorg.conf.sample for C1000/C3x00 to xorg.conf.C3x00
- adjust md set list

Ok releng@ nonaka@
2012-02-10 11:25:42 +00:00
matt
3ffd030673 Fix problem leading to triggering a BFD assert: when allocating space in the
got, do not allocate slots for symbols without default visibility.
2012-02-10 01:47:37 +00:00
christos
720edde670 fix printf format. 2012-02-09 17:53:56 +00:00
drochner
f9e6b678d8 add patch from Redhat bug#784141 which fixes a possible
buffer overflow if used with an HTTP proxy (CVE-2012-0804)
approved by releng
2012-02-09 16:28:53 +00:00
skrll
03fa5d214f Make mips gdb7 compile.
XXX not sure I got this right.
2012-02-09 15:14:19 +00:00
skrll
c49a22327e Re-re-run gdb7 mknative for mips. mips not using gdb7 yet.
OK martin@
2012-02-09 15:13:30 +00:00
skrll
6b25048fe3 Re-re-run mknative for vax on gdb7.
vax isn't currently using gdb7 so this doesn't hurt anyone and I'm going
to ride my previous OK from releng :)
2012-02-09 15:05:00 +00:00
roy
50f757f219 Remove stale files from older imports. 2012-02-06 17:47:26 +00:00
matt
0a81821ab3 Back out part of previous commit (no reason to define SQLITE_BIG_DBL
especially for VAX since it uses DBL_MAX from the VAX <float.h>).
2012-02-06 17:24:49 +00:00
roy
b6ecb9d5dd Import dhcpcd-5.5.4 with the following changes:
* Disregard IFF_RUNNING on link state changes
* Warn about the kernel not configured for IPv6 RAs instead of
  complaining it can't send messages

OK: releng@
2012-02-06 15:56:58 +00:00
skrll
0cb5c6eccd Re-run mknative.
OK releng@ ack 3 nak 0
2012-02-06 10:55:32 +00:00
skrll
69352bd310 Add nbsd-pthread.o.
OK releng@ 3 ack 0 nak.
2012-02-06 10:46:34 +00:00
joerg
7bf72726f9 Pull read.c r1.27 from upstream repository:
Don't silently skip non-ASCII characters, but replace them with ``?''.
This is less likely to break the syntax of macros.
2012-02-06 10:42:44 +00:00
matt
59a1b57ad8 Make this compilable by VAX GCC 4.5 2012-02-05 17:55:12 +00:00
matt
5a1411907d For VAX & GCC, turn on -Wno-overflow to supress a GCC error. 2012-02-05 17:47:30 +00:00
matt
2c2478331f Gcc emit overflows warnings on VAX when you try to use HUGE_VAL. Make these
warning supressable if -Wno-overflow is given.
2012-02-05 17:43:47 +00:00
matt
c1538b0e12 Deal with vax defining [an empty] struct fpreg;
Add supply_gregset and fill_gregset for nbsd-thread.c to vaxbsd-nat.c
2012-02-05 17:40:48 +00:00
matt
512e444044 Use REG_P, CONST_INT_P, and gcc_unreachable().
Bring forward movememsi from gcc4.1
2012-02-05 17:38:21 +00:00
matt
a7e9fdf4f5 Constraint 'T' needs to be a CONSTANT_P so add a match_test for that. 2012-02-05 17:37:19 +00:00
skrll
80a78e2456 Fix build of gdb7 for mips. It's not used at present. 2012-02-05 13:26:01 +00:00
christos
b8867d0ef6 There is no point in creating an entry point for emalloc(), when all the other
functions are just defined in terms of ereallocz(). Fixes the sun2 build
because it avoids the conflict with emalloc() from libutil.
2012-02-04 16:31:02 +00:00
he
dedd1c6538 Re-define emalloc(arg) to ntp_emalloc(arg), so that this can be linked
statically on NetBSD as well, since emalloc() conflicts with the entry
on our -lutil.
2012-02-04 14:56:58 +00:00
christos
5744870aac cleanup compilation (not TRT, but the expedient way) 2012-02-03 21:36:40 +00:00