Commit Graph

13285 Commits

Author SHA1 Message Date
christos 9896a45fe7 fix leak. 2016-11-24 17:12:23 +00:00
dholland 950f040fa2 Fix "sidewaysintpr", the thing that prints interface statistics in a
loop, to use signals properly. There are two copies of this code; one
uses kvm and the other uses sysctls. One copy had been updated to use
sigset_t and sigsuspend; the other was using vintage sigpause(). Sync
up the code so both use sigpause. Also, use sig_atomic_t, and block
SIGALRM when not waiting for it to avoid a small and unlikely but real
race.

Since the non-modernized copy of the code *had* for some been
modernized to use setitimer instead of just alarm(), propagate that
change to the other copy.

These copies could share more logic than they do.
2016-11-24 00:05:13 +00:00
abhinav cac7393582 Oops, it should be Aq Mt email@address
(Thanks again wiz :-)
2016-11-18 12:16:48 +00:00
abhinav 739865b984 Use .An -nosplit
Also, use Mt for email addresses.

(Thanks wiz)
2016-11-18 10:11:34 +00:00
abhinav 5644a41214 Use more markup and complete a sentence. 2016-11-18 09:06:35 +00:00
christos 83aa60eb00 if there is more than one : it is not an X display, it is a v6 address 2016-11-16 02:03:30 +00:00
sjg 46bfaede57 Report node name rather than (null) when modified before src 2016-11-10 23:41:58 +00:00
christos b3ba15e2be Add _Generic C11 support. 2016-11-05 01:09:30 +00:00
kamil f26cf4cb48 Prefer modern simple past tense and past participle of catch
The "catched" form is obsolete and nonstandard, prefer "caught".
2016-11-03 22:08:30 +00:00
christos 7aaeae4638 fix usage (thanks wiz) 2016-10-30 19:33:49 +00:00
christos 1a5428f3fb add a flag to avoid mmap... 2016-10-30 19:13:36 +00:00
christos 4667eeb169 sysctlbyname is convenient, but ain't cheap. Cache it. 2016-10-24 00:40:17 +00:00
christos 8ff995f221 allow fractional intervals 2016-10-22 22:02:55 +00:00
christos 8481accb85 PR/51558: ast@: ftp dumps core after usage message when IPv6 URL lacks a slash.
Initialize variable so that we don't get random behavior on cleanup.
2016-10-17 00:52:53 +00:00
abhinav 77df47bda0 Fix the bug introduced in the previous commit.
The lengths of the lines being compared were not correct. Essentially, we
were comparing the length of the buffers instead of the length of the strings.

This patch also avoids calling skip() twice for the same line.

Thanks to Rin Okuyama for the patch.
2016-10-16 06:17:51 +00:00
abhinav 75088523c3 A small optimization: since we already know the length of the lines, check
if the lenghts are equal before calling strcmp(3). Most of the times, the call
to strcmp(3) can be saved if the lines are not of the same length.

Thanks to Christos for the reviews
2016-10-14 19:43:59 +00:00
dholland a76b73c7a0 typo 2016-10-13 06:22:26 +00:00
christos bb762fe5ee No point in using float here; makes evbmips64 need __truncdfsf2, and that
causes static linking issues because of softfloat.
2016-10-04 17:36:21 +00:00
joerg 740128222b When using data outside the signed char range, it is better to
consistently use an unsigned char buffer.
2016-10-04 15:06:31 +00:00
joerg 5937818688 GC header left from earlier diagnostic test. 2016-10-04 14:36:11 +00:00
joerg 2f2a5be7f3 Remove source routing support. 2016-10-04 14:35:38 +00:00
wiz 89ab2da6d9 Minor improvements, add more markup. 2016-10-03 08:20:12 +00:00
kamil b3c98abce0 Import c11(1) - a cc -std=c11 wrapper
This script is similar to c89(1) and c99(1).

It's a NetBSD extension. The c89(1) and c99(1) scripts are part of POSIX.
2016-10-03 01:00:27 +00:00
abhinav 961fb352ab Move information about exit values from DESCRIPTION to EXIT STATUS section.
ok wiz@
2016-10-02 21:06:18 +00:00
christos ea8949d86b define the attribute first. 2016-09-13 16:06:59 +00:00
christos 3a8503931f Make attribute deselection work:
- when deselecting attributes, remove files that depend on them
- when deselecting attributes, remove devices that depend on them
2016-09-09 21:09:11 +00:00
sevan 39bbc68a3b Drop main() prototype. 2016-09-05 00:40:28 +00:00
christos 1d13ed3d99 ignore the abiflags section 2016-09-03 11:35:24 +00:00
dholland ab2acfdda8 storage class first, *then* __dead 2016-09-03 06:00:32 +00:00
dholland eb640195f5 simplify __dead usage 2016-09-03 05:58:30 +00:00
dholland 0a533596ca __dead should come first; also remove more K&Risms. 2016-09-03 05:56:59 +00:00
dholland e7afde8f0f simplify __dead usage 2016-09-03 05:50:06 +00:00
sevan f237858c5d Remove K&R __P macros.
Remove main() function prototype if present.
Mark usage() as __dead if not already.
Binaries generated with & without these patches were compared with diff -r.
2016-09-03 02:24:04 +00:00
dholland 7f48560292 Document .DELETE_ON_ERROR. 2016-08-26 23:37:54 +00:00
dholland 9d33465685 Add a .DELETE_ON_ERROR: magic target that causes *failed* targets as
well as *interrupted* targets to be deleted. The name and behavior of
the variable matches gmake.

Also fix a glitch in newline output on error in compat mode that I
discovered while doing it.

Closes PR 51376.
2016-08-26 23:28:39 +00:00
christos c634867ea2 compute anonymous bitfield sizes properly. 2016-08-23 16:42:55 +00:00
sevan b99eec368e Add AUTHORS section
bump date
2016-08-22 00:15:59 +00:00
christos b8f79638e1 Don't warn about empty structs twice. 2016-08-19 11:51:27 +00:00
christos 175128e719 be less aggressive in clearing blocks to protect against:
int
main(int argc, char *argv[])
{
	int rv;

	if ((rv = ({ int _ret = 1; if (argc == 1) {} _ret; })) != 0)
	    printf("%d\n", rv);
	return 0;
}
2016-08-19 10:58:15 +00:00
christos ab22712dbd Add union casts. 2016-08-19 10:19:45 +00:00
christos c6347f3a1e add a type comparison function. 2016-08-19 10:18:11 +00:00
sevan fbe5805edc seq(1) first appeared in Research Unix 8th Edition, which was before Plan 9.
Generalise in stating that this version is not bug for bug compatible with other
implementations.
Bump date.
Via FreeBSD bug 181390 with feedback from Warren Block.
2016-08-18 22:55:28 +00:00
wiz e20c5869bb Whitespace. 2016-08-18 19:23:20 +00:00
christos 9acbaa9544 - handle sizes of structs/unions with anon members
- handle structs/unions with only anon members
2016-08-18 14:43:31 +00:00
christos 9c8f3871d5 anonymous members are C9X 2016-08-18 14:42:48 +00:00
mrg 4ffdae42fa don't hide _DEV_IC_BT8XX_H_ inside DTRACE. 2016-08-18 08:02:58 +00:00
sjg 2e603a118c Refactor the handling of .MAKE.META.IGNORE_* to meta_ignore()
so that we can call it before adding paths to missingFiles.
Ie. do not track files we have been told to ignore.
2016-08-17 15:52:42 +00:00
sjg 69fc18aad5 Add .MAKE.META.IGNORE_FILTER to allow more complicated filtering of filemon data.
The filter is applied to paths Read or Excuted, and if it expands to
nothing, the entry is skipped.

For example; dirdeps.mk can set this to:

.MAKE.META.IGNORE_FILTER = M*/${.MAKE.DEPENDFILE_PREFIX}*

when checking if DIRDEPS_CACHE is up to date, where only Makefile.depend*
are of interest.
2016-08-15 19:20:17 +00:00
sjg 53f61e0d2c PR: 51405
Description:

addErrorCMD: in compat mode, cmdp may be NULL, skip it
and stop the calls (return 1).
2016-08-11 19:53:17 +00:00
sjg 374771b4a4 Set .ERROR_CMD if we can 2016-08-10 23:49:12 +00:00