Commit Graph

12775 Commits

Author SHA1 Message Date
joerg
0057d0442d Explain what max is and handle i reaching it again. 2015-04-16 13:31:03 +00:00
joerg
e2d874fb89 Don't use memcpy for overlapping ranges. Simplify, memmove is good
enough to skip empty ranges.
2015-04-16 11:39:23 +00:00
pooka
6ee4aeae8e Accept 0 size for -d type=reg, it grows dynamically anyway.
(though perhaps there should be some way to limit that)
2015-04-16 10:05:43 +00:00
christos
d6eaf99167 Coverity CID 1264915, Via FreeBSD (Xin Li)
When reading in the original file name from gzip header, we read
in PATH_MAX + 1 bytes from the file.  In r281500, strrchr() is
used to strip possible path portion of the file name to mitigate
a possible attack.  Unfortunately, strrchr() expects a buffer
that is NUL-terminated, and since we are processing potentially
untrusted data, we can not assert that be always true.

Solve this by reading in one less byte (now PATH_MAX) and
explicitly terminate the buffer after the read size with NUL.
2015-04-15 02:29:12 +00:00
sjg
545bddb17b Use separate vars to track cwd and last dir a process read. 2015-04-11 05:24:30 +00:00
sjg
c6534f45d3 export-all.mk should be including export.mk
sadly some shells do not grok named signals.
2015-04-10 20:41:59 +00:00
tron
d1aa912cef Fix casts which are inconsistent with *printf() formats and remove the
use of a non-standard type in the process.
2015-04-10 09:34:43 +00:00
wiz
2690505034 It's 2015. 2015-04-10 08:43:32 +00:00
wiz
302cc6cfe4 Remove trailing whitespace. 2015-04-10 08:43:16 +00:00
uebayasi
c59f84ea6d Typo in previous. 2015-04-10 03:51:44 +00:00
uebayasi
e29416eeae More about attribute -> bus, and child configuration. 2015-04-10 03:30:09 +00:00
sjg
baa0bd3c22 Forgot to tweak date 2015-04-09 18:22:08 +00:00
sjg
065f2cad03 jobs mode handles '-' very differently to compat mode, but this is not
reflected in make.1
Also fix handling to match the behavior described in the comment
of JobPrintCommand (only matters if shell sets hasErrCtl).

A better long term solution is needed since the current behavior
is sub-optimal wrt '-' and different from all other makes.

Reviewed by: christos
2015-04-09 18:21:01 +00:00
christos
4e91feb5e1 remove ancient dup. 2015-04-07 17:49:40 +00:00
plunky
312b53dde5 change _whatdb => _mandb as that is the correct keyword here,
and move it to the correct position in the list.
2015-04-07 10:17:21 +00:00
wiz
75bbcb9aa1 Document xz decompression support better. From Joachim Henke on netbsd-docs. 2015-04-06 21:41:17 +00:00
christos
27de1fdbf3 build ops.h first, because trying to build dependencies and ops.h at the
same time leads to spurious failures.
2015-04-04 19:32:06 +00:00
christos
60a029958d accept typenames in param decls. 2015-04-03 21:40:04 +00:00
sjg
73c21af432 Close child's reference to meta file. 2015-04-01 01:03:55 +00:00
sjg
f15792411b Move initialization of savederr to the block where it is used
to avoid spurious warning from gcc 5
2015-03-26 22:20:42 +00:00
roy
a37502b2b6 Add RTF_BROADCAST to mark routes used for the broadcast address when
they are created on the fly. This makes it clear what the route is for
and allows an optimisation in ip_output() by avoiding a call to
in_broadcast() because most of the time we do talk to a host.
It also avoids a needless allocation for the storage of llinfo_arp and
thus vanishes from arp(8) - it showed as incomplete anyway so this
is a nice side effect.

Guard against this and routes marked with RTF_BLACKHOLE in
ip_fastforward().
While here, guard against routes marked with RTF_BLACKHOLE in
ip6_fastforward().
RTF_BROADCAST is IPv4 only, so don't bother checking that here.
2015-03-23 18:33:17 +00:00
mrg
99baa91ed3 if not playing (-q mode), don't call ioctl() or try to use the results.
now -q mode works.
2015-03-22 22:47:43 +00:00
plunky
e8fd30eb55 parse and print the HIDLANGIDBaseList attribute 2015-03-16 19:10:48 +00:00
christos
cefb10afe1 The latest refactoring changes broke sed -i:
cd /tmp; echo foo > test; sed -i.orig s,fo,ba, test
Back them out until they are fixed.
2015-03-12 12:40:41 +00:00
jnemeth
71db0be446 note birth and death of Douglas Adams 2015-03-11 17:35:16 +00:00
mlelstv
170fbd6544 Resolve names of datagram services correctly. 2015-03-08 06:46:51 +00:00
christos
b52075bfab add flag that let's you not wait for all the processes specified. 2015-03-04 16:36:12 +00:00
christos
ee9a5a1870 PR/49716: Henning Petersen: Use false and true on bool, fix sign in printf
formats.
2015-03-04 13:34:49 +00:00
christos
dacc247666 PR/49714: Henning Petersen: Change NULL in EV_SET to 0. 2015-03-04 13:31:53 +00:00
christos
1fddf0eec4 Add a timeout parameter. 2015-03-03 19:59:48 +00:00
christos
c7da06e6d1 there is no more makewhatis; it has been replaced by makemandb 2015-03-03 17:59:32 +00:00
christos
90298a02bf add pwait 2015-03-02 21:54:13 +00:00
christos
8fb724825c Add -s option, cleanup warnings. 2015-03-02 21:53:48 +00:00
christos
b957b96ffc Add pwait, from FreeBSD 2015-03-02 21:43:39 +00:00
enami
c1e351a1b2 Don't truncate at microseconds while preserving timestamps.
One of motivation of this change is to make the behavior of test(1)
-nt/ot with preserved copy (like cp -p) closer to the NetBSD 6.
Of course whether full timestamps are kept or not depends also on
underlying file system.

The ifdef added in mv(1) since existing ifdefs was our local change
to compile it on solaris (though I couldn't test it):
http://mail-index.netbsd.org/tech-userlevel/2014/11/28/msg008831.html
2015-03-02 03:17:24 +00:00
mrg
fe7264a410 be explicit about stdout mode. 2015-03-01 09:56:54 +00:00
asau
7004d56080 Hide more subroutines in processing phase. 2015-03-01 01:07:46 +00:00
asau
2390183275 Close files opened at processing time within processing phase. 2015-03-01 01:00:07 +00:00
asau
ee4b150430 Move run-time data structures into processing part. 2015-03-01 00:51:08 +00:00
asau
82be1f5db2 Move data I/O file pointers into processing part. 2015-03-01 00:38:01 +00:00
asau
1f228785da Improve modularity of "sed" source:
- move program source input subroutines into compiler part;
- move data I/O subroutines into processor part.
2015-02-28 21:56:53 +00:00
roy
81601736f6 Document RTF_LOCAL 2015-02-26 09:58:12 +00:00
christos
95f20280d9 Treat complex numbers like other floating numbers. This caused a core-dump
when linting libm complex code and assumed the size of the type larger than
the array size of value bitmaps.
2015-02-09 18:17:34 +00:00
christos
3934378a65 Allocate the right size for pcb blocks.
XXX: pullup-7!
2015-02-08 15:09:45 +00:00
christos
b0698f50d1 print the timer flags. 2015-02-07 19:36:06 +00:00
christos
58fd765e07 Add QXL, re-enable I915 2015-02-07 14:37:42 +00:00
martin
3af45c0517 Drop i915, it still causes duplicate case statements
(DRM_IOCTL_QXL_UPDATE_AREA == DRM_IOCTL_I915_BATCHBUFFER)
2015-02-07 11:24:55 +00:00
christos
e4344b2827 Extend the scripts to handle the X drm ioctls. 2015-02-06 20:08:23 +00:00
christos
3babb960e1 Extend the list of the headers processed to generate symbolic ioctls to
the X sets, and include the DRM ioctls. Unfortunately the DRM ioctls for
different cards overlap, so until I write some code to merge them, only
enable one (currently the i915).
2015-02-06 20:07:45 +00:00
christos
42e28dd7ad use strtoi instead of strtonum, since this is a tool. 2015-01-29 19:26:20 +00:00