Commit Graph

13143 Commits

Author SHA1 Message Date
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