Commit Graph

13122 Commits

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