Commit Graph

13272 Commits

Author SHA1 Message Date
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
sjg 929a26a3de Use Lst_FindFrom and Lst_Succ(ln) to find next entry in missingFiles. 2016-08-10 18:49:40 +00:00
sjg c2d73114d1 Linux filemon only records D some/dir for rm -rf
rather than D entries for each file removed.
Thus we need a loop to remove all matching missingFiles entries
2016-08-10 18:25:00 +00:00
christos 6a9ab0dd0e Bump version for -no 2016-08-07 21:11:55 +00:00
christos f138f6c50d Accept "-no" as a "no" that does not cause errors if the object deleted
does not exist.
2016-08-07 10:37:24 +00:00
christos b31382fbd7 Avoid string gymnastics in an olympic year. 2016-08-05 07:22:17 +00:00
jakllsch ccf7078d06 Make this build with clang:
- Remove unused static const variables
 - Adjust impossibleish comparision.
2016-08-04 12:56:31 +00:00
wiz 4ff383b44d Bump date for new ifstat command. 2016-08-03 13:09:43 +00:00
maya 519ca6e803 Do globbing for FTP URLs of the form ftp://... too
ok christos
2016-08-03 12:33:56 +00:00
scole 6f3aa0fcd4 Add $NetBSD$ tag for new files 2016-08-02 17:53:46 +00:00
scole bd7662dc4d PR bin/51204
Add ifstat command to systat.

Imported from FreeBSD
2016-08-02 15:56:09 +00:00
dholland cf12c76a8b Don't allow initializers of the form { .a = .b = expr } as this is not
valid. Helps a bit with PR 22500.
2016-07-31 22:38:04 +00:00
dholland 096da17405 typo in comment 2016-07-31 22:36:53 +00:00
christos c351e21641 accept attributes in param decls 2016-07-20 18:14:12 +00:00