sjg
83317c9428
Apply realpath() to p before matching against metaIgnorePaths.
2016-05-10 00:02:31 +00:00
wiz
4b483a8522
New sentence, new line. Bump date for previous.
2016-05-02 09:33:15 +00:00
mlelstv
6fc95ff617
Extend syntax of config phrase, a quoted string instead of a device name
...
is passed as root specification string. This can be used to specify a
wedge by name.
2016-04-29 18:18:22 +00:00
riastradh
feb61835e6
__diagused, not __unused -- used in an assert.
2016-04-07 23:29:59 +00:00
gson
4efe3992f9
Fully avoid the nonstandard types u_char, u_int, and u_long, which
...
were only used inconsistently in a few places anyway.
2016-04-06 09:57:00 +00:00
sjg
f5cd368fff
Skip looking for .MAKE.JOBS if either of compatMake or forceJob is true.
...
If -B compatMake will be true and should be honored.
If -j forceJobs will be true and the command line supplied .MAKE.JOBS
should be respected - for consistency with other usage.
2016-04-05 04:25:43 +00:00
christos
7a955c4ce5
PR/49872:Yorick Hardy: sed functions 'i' and 'a' discard leading white space
...
FIxed as suggested, behavior now matches gnu-sed.
2016-04-05 00:13:03 +00:00
christos
b1bf748a07
PR/51043: Yorick Hardy: ftp(1) should use the port number for CONNECT
2016-04-04 23:59:41 +00:00
ozaki-r
09973b35ac
Separate nexthop caches from the routing table
...
By this change, nexthop caches (IP-MAC address pair) are not stored
in the routing table anymore. Instead nexthop caches are stored in
each network interface; we already have lltable/llentry data structure
for this purpose. This change also obsoletes the concept of cloning/cloned
routes. Cloned routes no longer exist while cloning routes still exist
with renamed to connected routes.
Noticeable changes are:
- Nexthop caches aren't listed in route show/netstat -r
- sysctl(NET_RT_DUMP) doesn't return them
- If RTF_LLDATA is specified, it returns nexthop caches
- Several definitions of routing flags and messages are removed
- RTF_CLONING, RTF_XRESOLVE, RTF_LLINFO, RTF_CLONED and RTM_RESOLVE
- RTF_CONNECTED is added
- It has the same value of RTF_CLONING for backward compatibility
- route's -xresolve, -[no]cloned and -llinfo options are removed
- -[no]cloning remains because it seems there are users
- -[no]connected is introduced and recommended
to be used instead of -[no]cloning
- route show/netstat -r drops some flags
- 'L' and 'c' are not seen anymore
- 'C' now indicates a connected route
- Gateway value of a route of an interface address is now not
a L2 address but "link#N" like a connected (cloning) route
- Proxy ARP: "arp -s ... pub" doesn't create a route
You can know details of behavior changes by seeing diffs under tests/.
Proposed on tech-net and tech-kern:
http://mail-index.netbsd.org/tech-net/2016/03/11/msg005701.html
2016-04-04 07:37:07 +00:00
knakahara
11bfe22fab
' != " so make the condition actually work. (same as r1.30)
2016-04-01 07:23:15 +00:00
alnsn
38047b2736
Don't enter infinite loop on big ktr_len values.
...
Fixes PR 49460.
2016-03-27 21:51:20 +00:00
christos
f3a6400cd0
sprinkle more volatile (distribution build with gcc-5.3)
2016-03-18 18:42:25 +00:00
christos
0f160f0ea7
match the updated <sys/types.h> definition
2016-03-18 15:05:49 +00:00
christos
e5012983f9
CID 1356387: Wrong sizeof
2016-03-16 21:01:28 +00:00
matthias
6c56f993ef
honor setting .MAKE.JOBS from the makefile. That way one can e.g. do:
...
CPUS!=sysctl -n hw.ncpuonline
.MAKE.JOBS?=$(CPUS)
2016-03-16 16:04:44 +00:00
sjg
2271de011e
Fix syntax
2016-03-16 00:19:01 +00:00
matthias
5c97c6933e
Another small change to make archive member rules work. With this change
...
archive member rules seem to work as expected again.
2016-03-15 18:30:14 +00:00
matthias
7215e4a264
dynamic dependencies for library member targets are working again.
2016-03-15 06:25:14 +00:00
wiz
8abecf66a7
Be more precise.
2016-03-14 09:53:37 +00:00
matthias
00a4845b58
make $@ an alias for $! in archive member rules (compatibility with
...
other makes).
2016-03-14 07:42:15 +00:00
dholland
18a2ad4d42
Mark the shared files with where they're used, like we do in pkgsrc.
2016-03-13 00:33:12 +00:00
dholland
d9047ae69b
Use functions instead of preprocessor abuse.
2016-03-13 00:32:09 +00:00
dholland
a4df8c35e0
a couple minor fixes
2016-03-12 22:37:32 +00:00
dholland
710ed66d56
Use execl() correctly.
2016-03-12 22:28:04 +00:00
dholland
1bdc2bf3d4
Add some additional BUGS.
2016-03-12 22:17:23 +00:00
dholland
84481ccbd0
Rework for clarity.
2016-03-12 22:07:48 +00:00
dholland
dde5a5b4ad
Minor tidyups.
2016-03-12 21:20:17 +00:00
dholland
a4db6377a4
NetBSD does actually support flat-panel displays. Even for systat(1).
...
(noted by tnn)
2016-03-12 02:39:01 +00:00
christos
9c2b425841
PR/50953: David Binderman: Fix misplaced paren
2016-03-11 18:39:03 +00:00
matthias
d405a55bc6
$% is $(.MEMBER) and not $(.ARCHIVE), $! is $(.ARCHIVE) and not $(.MEMBER)
2016-03-11 15:12:39 +00:00
matthias
449c0b7d1f
make parsing of library member targets work. So
...
lib.a(member.o): something
cp something member.o
ar r lib.a member.o
rm member.o
will work now.
2016-03-11 13:54:47 +00:00
sjg
6067bdd115
Handle missing file for Read the same as for Write, since if it
...
is Deleted we don't care.
Patch from Bryan Drewery.
2016-03-11 07:01:21 +00:00
joerg
7682402b4b
Unbreak tools build.
2016-03-10 11:32:10 +00:00
christos
e37f4314dd
PR/50932: David Binderman: use emalloc/erealloc/ecalloc
2016-03-09 20:02:33 +00:00
chs
8da07e54f6
in find_idle_and_ttywrite(), initialize idletime and writable to 0
...
when stat() fails. this prevents a coredump later in stimeprint()
due to gmtime() returning NULL for an uninitialized idletime.
2016-03-09 16:12:14 +00:00
christos
f6295e9141
PR/50914: David Binderman: Fix memory leaks.
...
While here, fix error handling too.
2016-03-08 20:13:44 +00:00
martin
212399f8da
Gcc, please shut up with those stupid warnings!
2016-03-07 22:16:38 +00:00
christos
e46a288cba
str2Lst_Append tokenizes the string and uses it in the list so we can't
...
free the string afterwards. Keep a copy of it and cleanup at the end.
2016-03-07 21:45:43 +00:00
sjg
ab15168ea5
For :ts numeric escapes \x* is hex, anything else is octal.
2016-03-07 20:20:35 +00:00
martin
cb0ca8dd7b
Try to fix build on 32bit architectures.
2016-03-07 08:59:00 +00:00
plunky
e01e653371
use correct offset for channel in SDP record
2016-03-06 21:12:07 +00:00
christos
e33113ab6d
Work around gcc on sparc64 bug
2016-03-06 18:01:28 +00:00
christos
fd89278a5f
PR/50897: David Binderman: fix memory leaks. While here, modernize error
...
handling, and types.
2016-03-06 16:13:21 +00:00
martin
bf186f94c5
David Binderman in PR bin/50897: fix memory leak.
2016-03-06 15:44:06 +00:00
mrg
35f210138a
if opening the audio device fails, try opening again with write-only.
...
this allows my playback-only usb device to be listed and tested.
2016-03-05 22:10:39 +00:00
dholland
6d1844cb1e
Don't try to use stdin after clobbering it with a failed freopen().
...
Prevents an extra "Bad file descriptor" message when trying to hexdump
a single nonexistent file.
The intended behavior seems to have been to read from stdin if there
was one filename given and it wasn't valid. But this seems like a bad
idea, so prevent that case instead of hacking it up so it works.
2016-03-04 03:02:52 +00:00
dholland
7228911ac6
Don't use one function for two different things. Two functions is the
...
ticket.
2016-03-04 02:54:38 +00:00
dholland
63eec2f2f9
use "static"
2016-03-04 02:46:19 +00:00
christos
bad095e351
PR/50872: David Binderman: Use logical and instead of arithmetic
2016-02-29 18:21:15 +00:00
christos
bfc1db599b
PR/50873: David Binderman: use logical or instead of arithmetic
2016-02-29 18:19:46 +00:00
christos
08b8c76dab
Add visibility and weak
2016-02-27 21:37:14 +00:00
christos
64f5cd70a3
CID 1354295: Array overrun.
2016-02-27 16:31:31 +00:00
christos
f3a4188b98
CID 1025009: Fix wrong code (NULL deref)
2016-02-27 16:20:06 +00:00
christos
e20f46c663
CID 1025008: Free memory returned by Var_Subst
2016-02-27 16:18:47 +00:00
christos
b6546efdb8
CID 1025007: Don't leak missingFiles
2016-02-27 16:17:26 +00:00
christos
0d70c98596
CID 1025006: pbm can't be NULL at this point.
2016-02-27 16:14:23 +00:00
sjg
f7ebaac72f
Let makefiles decide if depend file gets a meta file
2016-02-27 00:13:21 +00:00
wiz
2aa636aa06
Remove trailing whitespace.
2016-02-25 14:55:56 +00:00
ginsbach
522de9efc9
Fix obvious contraction spelling mistakes by adding missing apostrophes.
2016-02-25 13:23:27 +00:00
ginsbach
7a1819b192
Remove double space before [.,:] in macro arguments.
2016-02-24 17:38:15 +00:00
ginsbach
5299bba682
Add the [n]ei and [n]eei options to the synopsis; already documented in
...
description.
2016-02-24 17:13:48 +00:00
roy
48f2a68bff
White space police.
2016-02-24 13:31:54 +00:00
roy
061eb16dc2
White space police.
2016-02-24 12:01:44 +00:00
ginsbach
3660d7d0e7
Use warnx(3).
2016-02-22 22:01:48 +00:00
ginsbach
db3e293160
Stray '\n' in errx(3) format.
2016-02-22 21:20:29 +00:00
ginsbach
781408a293
Use errx(3).
2016-02-22 19:04:18 +00:00
wiz
69951fe427
Spelling fixes.
2016-02-20 01:43:28 +00:00
sjg
30ecb77bc6
Add a knob .MAKE.SAVE_DOLLARS to control the behavior of $$ during :=
...
If TRUE '$$' are not consumed (saved).
If FALSE '$$' becomes '$' just like normal expansion rules.
default is TRUE.
Reviewed by: christos
2016-02-20 01:19:03 +00:00
sjg
dcbb4e91e7
Initialize curFile->depending in Parse_SetInput.
2016-02-19 06:19:06 +00:00
sjg
9359338bf8
getBoolean:
...
We need :U to ensure we get an empty string if knob isn't set.
2016-02-19 00:11:45 +00:00
sjg
230e72b2d8
Delete :@ loop iterator when done with it
2016-02-18 23:33:25 +00:00
sjg
3c092045e1
Adapt to changed Var_Subst()
2016-02-18 20:33:40 +00:00
sjg
8d916cfab5
Add .export-literal to avoid the need for $$ dance when trying to put
...
unexpanded variables into environment.
Reviewed by: christos
2016-02-18 20:25:08 +00:00
christos
4d0b1055db
Collapse the 3 boolean parameter to 1 flags parameter. No functional change.
2016-02-18 18:29:14 +00:00
sjg
f24ab88bf9
It's 2016
2016-02-18 06:18:58 +00:00
sjg
f67d104eff
Actually FALSE as last arg to Var_Subst makes more sense
2016-02-18 05:40:50 +00:00
sjg
a6c0ebbea8
Add support for .dinclude
...
Like .sinclude missing file will be ignored.
Like .depend stale dependencies will be ignored.
Allows better implementation of auto depend.
Reviewed by: christos
Requested by: Bryan Drewery at FreeBSD.
2016-02-18 05:02:49 +00:00
sjg
71bb4da1c9
Adapt to new Var_Subst prototype
2016-02-18 05:01:39 +00:00
snj
00523047e3
allllllexander the greeeaaaaat, his name struck fear into hearts of men!
...
...but let's conquer that fear and give ol' alex a consistent and
correct date of death.
(he died of fever in baaaaaabylooooooonnnn)
2016-02-15 20:58:02 +00:00
christos
54835745af
use sizeof() and array notation.
2016-02-06 21:23:09 +00:00
joerg
bb694db2f5
METEORGSIGNAL and METEORSFMT overlap with dtrace, prefer the latter.
2016-02-06 20:21:56 +00:00
nonaka
a3255ab05b
Initialize the token match pointer.
2016-02-05 03:41:05 +00:00
dholland
289d830c55
File watt in the right group, and accept W as well, as that's quite
...
standard.
2016-02-05 03:38:50 +00:00
dholland
ac57bd7b30
Improve previous slightly; while we accept e.g. "meter2" to mean "meter^2",
...
don't allow "meter-2" to be interpreted as "meter^-2" as that's very
confusing.
2016-02-05 03:32:49 +00:00
dholland
0561f14b04
Improve the parser. Now we understand negative exponents; fixes PR 50768.
...
Also handle negative numbers better in general (don't randomly drop
the sign in a number of cases) and don't choke on exponents > 9.
This commit alters the meaning of a few previously valid but marginal
inputs (e.g. "3 foot-5 pound" is now treated as "3*-5 foot-pound"
rather than "3*5 foot-pound"; if you want the latter insert another
space) but corrects obviously wrong handling of many more.
2016-02-05 03:30:08 +00:00
christos
24830f9883
PR/50750: David Binderman: Check bounds before dereference
2016-02-03 05:32:14 +00:00
christos
cdc14da57c
PR/50746: David Binderman: Check bounds before dereferencing.
2016-02-03 05:18:58 +00:00
christos
51d0c37238
PR/50739: David Binderman: Check bounds before dereferencing.
2016-02-01 17:41:37 +00:00
christos
5fa7ae025c
remove clauses 3, 4
2016-01-29 15:19:01 +00:00
christos
ed70d74604
PR/50712: David Binderman: Fix memory leaks.
2016-01-26 16:23:27 +00:00
christos
83163b539a
Toolify
2016-01-24 20:14:44 +00:00
christos
1a7e9bc1af
Add a program to find the latest timestamp in a cvs repository
2016-01-24 17:08:16 +00:00
christos
ffeb8dbf4e
Define _KERNTYPES for things that need it.
2016-01-23 21:22:45 +00:00
christos
3c25de4497
put _KMEMUSER in the Makefile
2016-01-23 16:12:03 +00:00
christos
a687207309
Explain what REDIRECT is for.
2016-01-23 14:24:43 +00:00
dholland
7944f94c11
u_int -> unsigned int, in some of the output.
...
In the bulk of the output making this change would require reworking a
bunch of the internals to allow spaces in type names, which at the
moment doesn't seem worthwhile.
2016-01-23 02:33:09 +00:00
christos
59ef53c17c
remove free NULL checks (Tilman Sauerbeck)
2016-01-17 17:45:21 +00:00
christos
9da037e3be
provide missing FD_CLOEXEC for the havenots.
2016-01-17 15:32:38 +00:00
christos
43e2498875
Use FD_CLOEXEC (Tilman Sauerbeck)
2016-01-17 15:30:23 +00:00
wiz
cbba3dff68
Fix some macros. Sort stuff some more.
2016-01-17 11:24:28 +00:00
christos
6fee39189c
Update documentation.
2016-01-16 21:15:51 +00:00
christos
24926742d3
fix the option string.
2016-01-16 21:12:27 +00:00
christos
ac2c28bce6
mention that nesting limit is unimplemented
2016-01-16 18:33:35 +00:00
christos
9c5ae85a12
add most gnu m4 long options
2016-01-16 18:31:29 +00:00
christos
42d917fdb8
add nesting_limit
2016-01-16 18:30:57 +00:00
christos
1e0a1203e1
record all input for fake freeze
2016-01-16 17:01:22 +00:00
christos
8178859046
Use hex for masks.
2016-01-16 17:01:01 +00:00
christos
59e8ea8f4c
Add disabled support for saving and restoring the symbol table.
2016-01-16 17:00:07 +00:00
christos
8a4a35b9bc
- don't eat the rest of the string when no match in patsubst
...
- include the pattern in the error printing of regex
- handle 3 argument and empty patterns the gnu way
- add support for freezing and thawing state (not working yet)
2016-01-16 16:59:18 +00:00
christos
bf45a83338
- declarations for real/fake freeze
...
- add new flags
2016-01-16 16:57:29 +00:00
christos
50b61022b2
More gnu compatibility:
...
- handle macros > $9
- handle character remapping the the gnu way.
Add a shortcut for the "fake freeze" files to not expand include macros
during thawing.
2016-01-16 16:56:21 +00:00
christos
e4aa5bd87d
this are our's not gnu
2016-01-14 04:27:26 +00:00
christos
9487d441fb
Preserve $$ in := assignments..
...
FOO=\$$CRAP
BAR:=${FOO}
all:
echo ${FOO}
echo ${BAR}
2016-01-09 00:55:17 +00:00
wiz
30e99be8f8
Fix downloads of local files using file:// URLs
...
Previously it would error out in copyurlinfo() when copying a NULL port.
2016-01-05 11:41:00 +00:00
kamil
4929734205
Bump date for previous
2016-01-04 23:55:36 +00:00
kamil
1b333769e1
Add HISTORY and AUTHORS to jot
...
John A. Kunze requested to add himself as the author of jot
on the FreeBSD bugzilla with the following text:
Please re-instate my name (as "John A. Kunze") as AUTHOR of the
jot, rs, and lam utilities. I wrote these in 1982, around or
before the time that I worked with Jordan at UCB (he left to work
at FreeBSD and later at Apple). Thank you!
-- https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196786
While there add a note that this tool first appeared in BSD 4.2.
This information is based on the FreeBSD manual pages.
Patch submitted by Michal Mazurek <akfaew AT jasminek.net>.
Reviewed by <dholland>
2016-01-04 23:32:45 +00:00
kamil
ce1283db22
Add HISTORY and AUTHORS to lam
...
John A. Kunze requested to add himself as the authord of rs
on the FreeBSD bugzilla with the following text:
Please re-instate my name (as "John A. Kunze") as AUTHOR of the
jot, rs, and lam utilities. I wrote these in 1982, around or
before the time that I worked with Jordan at UCB (he left to work
at FreeBSD and later at Apple). Thank you!
-- https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196786
While there add a note that this tool first appeared in BSD 4.2.
This information is based on the FreeBSD manual pages.
Patch submitted by Michal Mazurek <akfaew AT jasminek.net>.
Reviewed by <dholland>
2016-01-04 23:31:44 +00:00
kamil
48345a429a
Add HISTORY and AUTHORS to rs
...
John A. Kunze requested to add himself as the authord of rs
on the FreeBSD bugzilla with the following text:
Please re-instate my name (as "John A. Kunze") as AUTHOR of the
jot, rs, and lam utilities. I wrote these in 1982, around or
before the time that I worked with Jordan at UCB (he left to work
at FreeBSD and later at Apple). Thank you!
-- https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196786
While there add a note that this tool first appeared in BSD 4.2.
This information is based on the FreeBSD manual pages.
Patch submitted by Michal Mazurek <akfaew AT jasminek.net>.
Reviewed by <dholland>
2016-01-04 23:30:57 +00:00
martin
c7acead6b8
Cast register_t to unsigned long before printf'ing it with %lx.
2016-01-04 08:24:42 +00:00
christos
149dca8a74
be a bit smarter about fcntl
2016-01-03 22:05:18 +00:00
christos
90c146a94b
Put back -n
2016-01-03 15:38:29 +00:00
christos
a7dfd957d5
Handle function symbol renames.
2016-01-02 17:44:33 +00:00
christos
7e015f61f6
print the length on error.
2016-01-02 17:44:21 +00:00
dholland
9dc9693718
Avoid leaking a file handle on error opening the next file. From
...
David Binderman in PR 50577.
2015-12-31 01:16:47 +00:00
christos
2732a80b37
Add rnd ops.
2015-12-30 18:15:38 +00:00
christos
dade5d6c98
print the tag symbolically if we don't support it.
2015-12-22 23:35:21 +00:00
christos
4fff4f53aa
From FreeBSD:
...
- Whitespace cleanup
- Pass a filename rather than fd to libarchive (should work with 2.8+)
- Accept zipfiles from stdin
- Extract common code from extract()/extract_stdout() to extract2fd() (pending)
2015-12-21 17:17:02 +00:00
christos
e9dcc55b7e
switch to getline(3)
2015-12-21 16:17:09 +00:00
sjg
349257c593
Suff_ClearSuffixes() needs to re-initialize suffNull,
...
otherwise its children retain old suffixes.
Have Suff_Init() call Suff_ClearSuffixes() for consistency.
2015-12-20 22:44:10 +00:00
christos
8ef345bff8
sort properly.
2015-12-20 00:48:36 +00:00
christos
ff6e2ff2e8
Sort the subsections too... Hi Matt, you were right.
2015-12-20 00:40:44 +00:00
joerg
d8a9f2abfc
Fix tools build.
2015-12-19 17:30:00 +00:00
wiz
c4edf3f3df
Fix xrefs.
2015-12-19 00:25:16 +00:00
christos
088e556329
add sortinfo
2015-12-18 18:56:47 +00:00
christos
1f7a09da7b
mark function as only needed with ssl.
2015-12-17 20:36:36 +00:00
christos
01e355354c
Split the position/size parsing into a separate function.
2015-12-17 17:26:45 +00:00
christos
33fd699b86
Simplify and factor out connect message
2015-12-17 17:08:45 +00:00
nonaka
ac27abcc55
- Fix to connect https via proxy.
...
- Fix ttyout message.
2015-12-17 04:36:56 +00:00
christos
7a83389f23
make DPRINTF/DWARN always statements.
2015-12-16 23:00:39 +00:00
christos
17562cefd2
PR/50438: NONAKA Kimihiro: ftp(1): CONNECT method support
...
Please test!
2015-12-16 21:11:47 +00:00
christos
941a869c25
more refactoring:
...
- introduce authinfo and urlinfo structures
- split negotiation code out.
2015-12-16 19:17:16 +00:00
nonaka
f6c8c6eefb
Fix compile failure without WITH_SSL.
...
> /tmp/bracket/build/2015.12.15.21.01.27-i386/src/usr.bin/ftp/fetch.c: In function 'fetch_url':
> /tmp/bracket/build/2015.12.15.21.01.27-i386/src/usr.bin/ftp/fetch.c:823:18: error: 'HTTPS_URL_T' undeclared (first use in this function)
> urltype == HTTPS_URL_T ? &ssl : NULL);
2015-12-16 01:20:05 +00:00
christos
82dbb89087
Factor the proxy handling code out.
2015-12-15 21:45:21 +00:00
christos
605492b2a8
Separate no_proxy handling.
2015-12-15 21:01:27 +00:00
christos
9444a4268c
Try to factor out some code, this is completely out of control.
2015-12-15 20:49:49 +00:00
christos
093dea8259
use ecalloc
2015-12-14 03:15:10 +00:00
christos
c7fdb70dcd
PR/50546: David Binderman: Fix bad sizeof
2015-12-13 18:09:00 +00:00
tron
ce945c29d6
(Hopefully) fix build without IPv6 support
2015-12-13 14:06:13 +00:00
dholland
67d56d848e
Clarify that SCCS is a specific thing and not a generic thing.
2015-12-12 09:52:40 +00:00
dholland
cd705862bc
Remove spurious ARGSUSED.
2015-12-12 09:50:12 +00:00
plunky
d82c710316
update several profiles, bringing up to date decoding of all the
...
Bluetooth 1.1->4.2 Service Discovery specifications I could find,
namely:
Wireless Access Protocol
Multi-Profile Specification
Calendar, Tasks & Notes
Message Access Profile
Message Notification Service
Global Navigation Satellite System
Health Device Profile
File Transfer Protocol
3D Display
General Access Profile
Generic Attribute Server
all documentation is on bluetooth.org, under
https://www.bluetooth.org/en-us/specification
2015-12-11 21:05:18 +00:00
tron
0d7f9f570d
Use the proper format "[IPv6 address]:port" when reporting connection
...
attempts to IPv6 endpoints.
2015-12-11 08:37:31 +00:00
christos
048e0d6b52
simplify.
2015-12-03 20:01:19 +00:00
christos
96135c5b6f
PR/50496: Alex Kozlov: teach unzip to extract symlinks
...
Our libarchive does not handle symliks yet, but later versions do.
Set mode and times for symlinks. Finally handle hardlinks for
completion although they are not handled yet by librarchive.
2015-12-03 20:00:12 +00:00
sjg
b35a5f4c5f
Fix evaluation of defined(FOO) and ${FOO} > 0
...
add a unit-test to catch it.
2015-12-02 00:28:24 +00:00
sjg
69ecbee5a0
Avoid calling brk_string() and hence Var_Export1() on
...
empty strings.
2015-12-01 07:26:08 +00:00
sjg
1c3d99f499
Use lstat(2) if we have a link, incase it is a symlink.
...
Patch from bdrewery at FreeBSD.org
2015-11-30 23:37:56 +00:00
sjg
bea1b39c5f
Avoid accessing beyond end of empty string.
...
Detected by Address Sanitizer - dim at FreeBSD.org
2015-11-30 23:15:43 +00:00
sjg
8098e1a571
ParseTrackInput: do not access beyond end of buffer.
...
Detected by Address Sanitizer - dim at FreeBSD.org
2015-11-26 00:23:04 +00:00
christos
1ef9a127cf
PR/50360: Thomas Klausner: Fix MKREPRO issue
2015-11-25 01:12:03 +00:00
uebayasi
e1ddff408d
A few more.
2015-11-22 01:20:36 +00:00
christos
e9836e5e7e
fix format
2015-11-21 15:22:17 +00:00
christos
301b67f323
WARNS=6
2015-11-21 15:01:43 +00:00
christos
2ea5bc272a
PR/50454: Timo Buhrmester: Fix wrong allocation for wall(1) -g
...
Modernize.
2015-11-21 14:59:51 +00:00
christos
2e3d23cd2c
redo previous, not needed.
2015-11-13 19:13:50 +00:00
christos
4ae24fd01a
Handle 0b locally since anyway this is not portable.
2015-11-13 16:04:58 +00:00
christos
5e9bf06a78
Recognize binary constants
2015-11-12 17:34:01 +00:00
pooka
d0f0cf2fcb
In ioconfname mode, #define IOCONF as the ioconf token.
...
Avoids having to retype the name to call config_init/fini_component().
2015-11-12 14:38:21 +00:00
christos
5851f02af6
Delete extra declaration of svc_fdset... And some commented out code.
...
This badly needs some modernization.
2015-11-08 01:59:31 +00:00
joerg
a08385b414
Explain what "-V none" does.
2015-11-07 18:26:55 +00:00
joerg
3f2a71f305
paths.h is not used.
2015-11-07 18:11:21 +00:00
jnemeth
3980f190ce
typo
2015-11-06 12:49:06 +00:00
wiz
f46449d46b
Sort options in SYNOPSIS.
...
Order is: 0123.9AaBbCc...Zz;
options without arguments in a block first, then the ones with arguments.
2015-11-05 14:02:07 +00:00
ozaki-r
a0fb6b682b
Add missing options to SYNOPSIS and sort
2015-11-05 09:28:30 +00:00
joerg
772e6dc22c
' != " so make the condition actually work.
2015-11-02 12:06:33 +00:00
shm
c4764e65c8
- Added error checks for initgroups(3) and setgroups(2).
...
- Reorder functions in privilege regain - setgroups(2) should be called after
seteuid(2).
OK christos@
2015-10-29 11:31:52 +00:00
shm
93eb731454
Added missing sa_mask initialization (CID 979636)
...
OK kamil@ mrg@
2015-10-28 08:15:53 +00:00
shm
39d8d23068
Fixed off-by-one in decode_ss (CID 977426)
...
OK kamil@
2015-10-28 07:27:24 +00:00
shm
805afefc0d
Added namelen initialization in getpeername(3) call (CID 979631)
...
OK kamil@
2015-10-27 14:53:00 +00:00
shm
b1dc5cb72e
Fixed memory leak (CID 978341)
...
OK kamil@
2015-10-27 14:47:45 +00:00
mrg
60c6cf919b
port across the change from freebsd rev 290024:
...
In gunzip(1), treat trailing garbage as a warning and not an error. This
allows scripts to distinguish it between real fatal errors, for instance a
CRC mismatch.
Update manual page for the behavior change.
PR: bin/203873
Submitted by: Eugene Grosbein <eugen grosbein net>
MFC after: 2 weeks
2015-10-27 07:36:18 +00:00
sjg
b690002e9b
PrintOnError: fflush stdout before running .ERROR
...
produces more consistent results in unit-tests.
2015-10-25 05:24:44 +00:00
christos
354d41acbc
simplify
2015-10-22 00:29:58 +00:00
sjg
80c2cdd094
Ensure emsg initialized
2015-10-20 21:30:57 +00:00
christos
96e2a4cea0
more descriptive errors
2015-10-14 18:31:52 +00:00
christos
29160715bc
the next symbol should be a type.
2015-10-13 20:49:39 +00:00
christos
14356dd961
handle anonymous struct/union members.
2015-10-13 20:25:21 +00:00
christos
17f4a693be
more descriptive aborts
2015-10-13 16:09:33 +00:00
sjg
19a6f2c62e
Add unit-test for discarded :?
2015-10-12 17:09:29 +00:00
sjg
5a3dc2452c
The conditional expressions used with ':?' can be expensive
...
eg. exists() does stat(2).
If 'wantit' is FALSE, we are going to discard everything anyway,
so skip evaluating the conditional and expanding either lhs or rhs.
2015-10-12 16:48:13 +00:00
pgoyette
b4d63f0a4b
Fix typo - Bahamas starts with a 'B' not with a 'G'
2015-10-11 22:08:46 +00:00
sjg
c7f1b3e52d
Avoid echo -n in unit-tests
2015-10-11 06:32:15 +00:00
sjg
df0424202d
Add Boolean wantit to Var_Parse and Var_Subst
...
wantit will be FALSE when we are just consuming to discard
in which case we skip "expensive" things like Cmd_Exec.
Reviewed by: christos
2015-10-11 04:51:24 +00:00
dholland
1fb0cf16c7
Don't assume HAVE_POSIX_SPAWN when building a host prog. From Joachim
...
Kuebart in PR 50301. needs pullup-7
2015-10-10 22:54:03 +00:00
sjg
53b398eca4
Do not hard-code ingnoring of makeDependfile
2015-10-10 03:58:59 +00:00
christos
472bcd2198
PR/50322: Timo Buhrmester: tail -F <file> misbehaves with stdin closed
...
Compare fp with stdin not fileno(fp) with STDIN_FILENO, because if tail
is called with 0 closed, then we are not going to be setting event filters
for the file because we'll erroneously think it is stdin.
2015-10-09 17:51:26 +00:00
jnemeth
1b254ad09b
note the release of NetBSD 7.0
2015-10-09 00:09:52 +00:00
christos
ebf0d565d5
don't check for NULL before free() (Tilman Sauerbeck)
2015-10-06 17:36:25 +00:00
christos
f05010c404
- PR/50291: Fix memory leak
...
- estrdup/emalloc
- use EXIT_FAILURE instead of 1
2015-09-29 14:27:00 +00:00
christos
20c3ea3d63
Kill sys/modctl.h which we don't need.
2015-09-27 03:37:16 +00:00
christos
c4bba3a5cb
Put -Isys after the ioctl Makefile has a chance to add other paths first.
2015-09-26 13:31:27 +00:00
christos
f72496b8cd
Add dtrace ioctls
2015-09-26 03:31:11 +00:00
mrg
e03a4ba241
add "-R <roundbeats>" option, to round beat counts to be aligned to
...
<roundbeats>, which defaults to 1.
2015-09-23 05:31:01 +00:00
jnemeth
f533a65c60
Adjust dates for floating holidays. Use 2015 for things happening from
...
mid-October onwards, and 2016 for things happening earlier.
2015-09-23 05:21:00 +00:00
pooka
bc0dc0b26e
Add more compat defs for code compiled for !NetBSD targets.
...
At least GNU Hurd lacks MAXHOSTNAMELEN/MAXPATHLEN/PATH_MAX, so make sure
those have some arbitrary semi-sane values.
from Robert Millan in PR misc/50166, with some modifications from myself
2015-09-21 21:50:16 +00:00
kamil
21207296f6
Prefer error messages resolved from errno over handwritten ones.
2015-09-20 16:57:13 +00:00
kamil
ca8a5c231b
Correct #ifdef/#endif header file guards generator for files with names
...
other than alphanumerical.
For example, for a file named config-subscriber.x we were generating a
symbol '_CONFIG-SUBSCRIBER_H'.
Since now all non alphanumerical characters will be converted to '_' and we
will prevent from generating symbols starting with "__", what's reserved
for the internal compiler code parsers and generators.
2015-09-20 16:39:04 +00:00
kamil
facb255330
Correct newstyle code generation
...
For newstyle we used to generate oldstyle code. This bug has been fixed in
FreeBSD on 13 Dec 1995 by wpaul.
15a1e09c3d
Reviewed by <christos>, <pgoyette>
2015-09-20 15:52:11 +00:00
kamil
29aa8e74c1
Fix NULL pointer dereference
...
After the last function improvements there is invalid plist dereference
at the beginning of the second for () external loop. Move the proper check
inside the internal secound for () loop, after plist reinitialization.
2015-09-20 15:45:07 +00:00
martin
48059d8422
Add tera- and peta-bytes.
2015-09-20 15:09:06 +00:00
mrg
5f8222cdb9
query the window size and use it instead of assuming 24 lines.
...
now the header isn't re-printed a lot of times in tall windows.
2015-09-20 00:30:04 +00:00
joerg
f66e764c57
Workaround const issues of SSL_set_tlsext_host_name.
2015-09-16 15:32:53 +00:00
wiz
c39756ad10
servername cannot be NULL here.
...
Noted by joerg@.
2015-09-12 20:23:27 +00:00
wiz
7a5da4c401
Bump version for SNI support.
2015-09-12 20:18:52 +00:00
wiz
f9b7d2341e
Add Server Name Indication (SNI) support for https.
...
Needed for e.g. some github URLs.
2015-09-12 19:38:42 +00:00
joerg
2bb600f982
Negating an integer and comparing it to 1 is a fancy way of checking for
...
0, which in this case would be DEVI_ORPHAN. That clearly can't be the
intention here, so switch to using != as operation without negation
instead.
2015-09-12 19:11:13 +00:00
uebayasi
ba0b12db31
Libraries should be built in sub-make. libkern is polluting .PATH too much.
2015-09-11 02:26:22 +00:00
sjg
0173eb921e
Output Entering/Leaving messages for objdir when != srcdir and -w flag
...
This helps ensure Emacs can find source of error.
Reviewed by: christos
2015-09-10 17:15:11 +00:00
jnemeth
7c8eb9ef85
Pretty difficult for a TV show (Star Trek) to have a first airing
...
on two different dates. Dump the erroneous one.
2015-09-08 11:07:37 +00:00
uebayasi
6639db6cc2
About ${CTFCONVERT}.
2015-09-08 05:48:07 +00:00
uebayasi
fe281df765
${MD_OBJS} and friends.
2015-09-08 02:23:34 +00:00
uebayasi
0e43d38dc2
${LD} input files and library (*.a) support.
2015-09-08 00:53:39 +00:00
sevan
9f88c39420
Switch from a mixture of tabs & 3 spaces to a single style, 3 spaces
2015-09-07 12:29:19 +00:00
sevan
b62382f11c
Add pkgsrc/Bitrig
2015-09-07 12:20:32 +00:00
uebayasi
82a183dddd
Fix previous.
2015-09-04 21:32:54 +00:00
uebayasi
cea9d6a0de
Fix segmentation fault.
2015-09-04 15:50:48 +00:00
uebayasi
9b48d49489
Sort files in ${ALLFILES} in the order of parsing of `files.*'.
...
config(1) reads the first `files.${MACHINE}' when it encounters `machine'.
Then it includes common `files.${MACHINE_SUBARCH}', `files.${MACHINE_ARCH}',
and MI `sys/conf/files' at last. This change makes the first "file" in
`files.${MACHINE}' appear first in ${ALLFILES}.
2015-09-04 10:16:35 +00:00
uebayasi
ce4642ec41
Make config(1) output only ${ALLFILES}, selected input files, and pass it to
...
Makefile.kern.inc, where files are filtered by suffix.
2015-09-04 06:10:47 +00:00
uebayasi
ca8d7a3596
*.o files don't need special handling at all now. Makefile.kern.inc knows
...
*.o input files don't need to get compiled, but need to get linked.
2015-09-04 06:01:40 +00:00
uebayasi
5b92bb3c7a
Output ${ALLFILES}, the list of selected *.[csSo] files, sorted in the exact
...
order config(1) parses "file ..." commands in config(5) files. Define
${CFILES}, ${SFILES}, and ${OFILES} as subset of ${ALLFILES} selected by
suffix.
2015-09-04 05:52:15 +00:00
uebayasi
bc2bf167eb
Now Makefile.kern.inc handles swap<kernel>.c compiling/linking nicely,
...
config(1) can become less hackish.
2015-09-04 05:13:32 +00:00
uebayasi
dc9cfb5d59
Share more code by making *.o handling less special.
2015-09-04 01:24:01 +00:00
uebayasi
bc619545b7
Add generated *.c files (devsw.c and ioconf.c) to ${CFILES} by config(1)
...
internally. ${MI_CFILES} in Makefile.kern.inc is no longer needed.
2015-09-03 14:23:52 +00:00
uebayasi
b5b4952dae
After thought, revert "Generate *.c files under conf/". Generate *.c files
...
under top build directory. *.c files are never placed just under $S/. Keep
this exclusiveness.
2015-09-03 13:53:36 +00:00
uebayasi
9d10d0209d
Pretty-print `Makefile' output.
2015-09-03 13:32:07 +00:00
uebayasi
eaa72931c4
Move `all' target definition to Makefile.kern.inc.
2015-09-03 09:28:00 +00:00
uebayasi
d891b756ba
Define kernel dependency in Makefile.kern.inc.
2015-09-03 06:09:46 +00:00
uebayasi
dfa246e2cf
Fix build.
2015-09-03 06:08:38 +00:00
mrg
aa0a9ba7c2
remove these items:
...
o Disallow unknown options.
o Kill makeoptions.
because they're overly strict and i use these both regularly
to do stuff that isn't in the base src, and i'm quite sure
i am not the only one.
2015-09-03 05:45:16 +00:00
uebayasi
77d324a2b9
In `-S' mode, create symlinks from outside of $S to build directory, for
...
files that are placed outside of $S, so that `Makefile.kern.inc' can see all
files under either $S or build directory.
2015-09-03 02:45:24 +00:00
uebayasi
a453d60989
Fix build.
2015-09-02 16:29:44 +00:00
uebayasi
7a8426662a
Define ${OBJS} in `Makefile.kern.inc'. Relative paths are not truncated
...
(a/b/c/x.c -> x.c) in `-S' mode. Don't provide some explicit rules for `-S'
mode for safety.
2015-09-02 14:17:03 +00:00
uebayasi
558aab1be0
Output relative path for ${CFILES} and ${SFILES} in generated `Makefile'.
...
`Makefile.kern.inc' knows how to deal with $S prefix, so don't bother it in
config(1).
2015-09-02 13:42:14 +00:00
uebayasi
7db0c115b3
Simplify generated `Makefile' by calculating ${OBJS} from merging ${CFILES},
...
${SFILES}, and ${OFILES} except swap<kernel>.o excluded.
2015-09-02 13:06:06 +00:00
uebayasi
dccd2cf552
In `-S' mode, generate *.c files under conf/ subdirectory. Register generated
...
.c files to the `files' list internally.
2015-09-02 05:09:25 +00:00
uebayasi
e53d4b70ba
Fix build.
2015-09-01 20:18:41 +00:00
uebayasi
b06817457f
Experimental ``suffix rules + subdirectories'' build support (-S).
2015-09-01 16:01:23 +00:00
uebayasi
64903d9c8f
Prepare to build subdirectories. Not enabled yet.
2015-09-01 14:32:20 +00:00
uebayasi
57eaa88e97
Bump version for "buildprefix".
2015-09-01 13:45:52 +00:00
uebayasi
2cb009cdd9
Introduce a new syntax, "buildprefix", to specify prefix of files under kernel
...
build subdirectory. This is not used now that everything is built at the
top of kernel build directory. It will become mandatory for source/object
files put out of kernel source tree to specify corresponding build subdirectory.
Only ``no dots'' relative path is accepted as "buildprefix".
2015-09-01 13:42:48 +00:00