Commit Graph

12468 Commits

Author SHA1 Message Date
joerg
93b8079710 GC unused variables. 2014-06-02 22:57:50 +00:00
joerg
11c4049413 Drop kvm-based access for driver statistics. 2014-06-02 19:29:00 +00:00
joerg
8670ce0cf0 Make missing kern.evcnt an error, don't try to fallback to kmem use. 2014-06-02 19:16:10 +00:00
msaitoh
e5ef5a5dc5 Remove duplicated lines. 2014-05-30 19:01:52 +00:00
msaitoh
42c09e06f3 Add 5.1.4, 5.2.2. 6.0.4 and 6.1.3. 2014-05-30 08:36:28 +00:00
rmind
2286cc983b netstat(1) and ifmcstat(8): ifnet was renamed to ifnet_list, PR/48850. 2014-05-30 01:44:21 +00:00
wiz
910ba5f05b Bump date for previous. 2014-05-29 08:13:17 +00:00
mrg
ebf7669ed7 implement "no ident". 2014-05-29 07:47:45 +00:00
jnemeth
88eea82455 Happy Towel Day! 2014-05-25 16:08:11 +00:00
dholland
d8da1d6013 avoid error path SIGSEGV 2014-05-21 05:25:34 +00:00
sjg
f45e7bfbd6 Var_Parse: endc only counts when at the correct nesting depth.
This ensures we correctly detect errors like:
.if empty(VAR && !empty(FOO)

Var_Subst: if Var_Parse returns var_Error it is an error.
This ensures we detect errors like:

VAR:= ${FOO.${GOO}
2014-05-19 22:09:58 +00:00
apb
ba94e92b25 Add an example with find ... -exec sh -c .... 2014-05-17 11:31:40 +00:00
hannken
42c8d67c49 Add a global vnode cache:
- vcache_get() retrieves a referenced and initialised vnode / fs node pair.
- vcache_remove() removes a vnode / fs node pair from the cache.

On cache miss vcache_get() calls new vfs operation vfs_loadvnode() to
initialise a vnode / fs node pair.  This call is guaranteed exclusive,
no other thread will try to load this vnode / fs node pair.

Convert ufs/ext2fs, ufs/ffs and ufs/mfs to use this interface.

Remove now unused ufs/ufs_ihash

Discussed on tech-kern.

Welcome to 6.99.41
2014-05-08 08:21:53 +00:00
wiz
9237f38b59 Sort options in usage. 2014-05-05 21:04:09 +00:00
wiz
5f345558c9 Sort SYNOPSIS. Bump date for previous. 2014-05-05 20:52:45 +00:00
martin
1957b5eaba Add two new options, -U and -D, that can be used to define "makeoptions"
on the config command line. While there, rename the undocumented (internal)
parser debug option from -D to -d.
Discussed on tech-toolchain.
2014-05-05 19:08:13 +00:00
christos
6a4e46c891 Handle a closing brace at the end of a command without a preceding semi-colon:
/foo/ {p;d}
2014-05-05 17:12:11 +00:00
joerg
cc89f7922a Most CPUs implement shifts modulo the width, but ARM doesn't. Don't
depend on this UB.
2014-04-30 21:04:58 +00:00
njoly
0f34420c1f Fix compat netbsd32 syscall return values display by calling
output_long() instead of printf().
2014-04-30 11:51:51 +00:00
christos
f48bd7a250 need bsd.own.mk 2014-04-29 01:21:02 +00:00
christos
12014f31d7 use the same for the route metrics part, both in the sysctl and kmem paths.
From Takahiro HAYASHI
2014-04-28 15:41:15 +00:00
pooka
401f0b87d5 Remove LD_DYNAMIC_WEAK whine, by large it's not necessary anymore. 2014-04-27 15:26:05 +00:00
christos
9bbbeef3e7 PR/48426: Dimitris Karagkasidis: Make nfsstat use unsigned numbers. 2014-04-24 18:40:35 +00:00
christos
a2dd64f9b4 The sysctl code does not support verbose route printing that prints the
internal route statistics. Restore the old kmem route printing code that
was not just used for post-mortem displays. Reported by kardel@, test by
netstat -nrvf inet
2014-04-24 14:56:29 +00:00
christos
7cdbcec7f5 un __P 2014-04-24 14:54:51 +00:00
wiz
82cdf33b46 Bump date for previous. 2014-04-22 06:02:06 +00:00
ginsbach
236104be8e Add optional method for specifying protocol as part of the service
option.  This is similar to how the port number and protocol name are
specified in services(5).
2014-04-22 02:23:03 +00:00
christos
e305f86ab5 add more attributes 2014-04-21 21:52:24 +00:00
christos
1be8982a73 add asm function renames 2014-04-21 18:57:20 +00:00
christos
39d78ca60c fix asm() misclassification 2014-04-21 18:57:07 +00:00
snj
1f0d8af3c5 Add 6.0.5 and 6.1.4. 2014-04-19 15:51:46 +00:00
christos
9b2bca8f70 add more places where attribute is valid. 2014-04-18 21:54:52 +00:00
christos
719ac47d5d provide a poor man's fmemopen() 2014-04-18 21:53:44 +00:00
christos
f1ed7fe14d remove attribute keyword 2014-04-18 02:41:32 +00:00
christos
04a020c93e handle constant attribute 2014-04-18 02:41:17 +00:00
christos
0d1cbc6a00 don't include fmemopen in tools builds. Since tools does not define
_NETBSD_SOURCE, we don't get the fmemopen prototype
2014-04-18 02:17:14 +00:00
christos
c8b1f28fd2 Never return the attribute keywords if we are not in attribute. 2014-04-18 01:39:57 +00:00
christos
1f0ca5f12c builtins only for NetBSD since fmemopen is not portable. 2014-04-18 01:18:54 +00:00
christos
31ce3096fd Add some builtins 2014-04-18 01:15:07 +00:00
christos
687432e7a3 Handle the rest of gcc __attribute__ s. 2014-04-18 00:23:46 +00:00
christos
59bbfbb11d only fill memory with junk if BLKDEBUG 2014-04-18 00:21:14 +00:00
christos
a46cc2f317 handle LDOUBLE 2014-04-18 00:20:37 +00:00
christos
20ba703761 make outname print where it came from in case of error 2014-04-17 18:52:03 +00:00
christos
10e73b5c30 - add a function to dump a node
- better diagnostics on abort
- allow converting a constant
- initialize right node now that we trash memory this makes a difference.
  before it was NULL.
2014-04-17 18:23:18 +00:00
christos
e34b25460d typeof and extension don't need parens 2014-04-17 17:29:24 +00:00
christos
f87049800a Trash freed memory so we catch bad uses. 2014-04-17 16:30:05 +00:00
christos
8a20351779 Don't free memory; it is used later. 2014-04-17 16:29:26 +00:00
ginsbach
42bc9b7b73 Hook getaddrinfo(1) into the build. Hi riastradh! 2014-04-15 22:09:27 +00:00
snj
fc99b6a4d6 Change some standard exit status text to ".Ex -std"
From Eitan Adler in PR bin/47790.
2014-04-13 01:45:34 +00:00
christos
e9d34c2f4d mention -V none 2014-04-11 17:41:09 +00:00
christos
0b1777bf87 recognize -V none 2014-04-11 17:30:03 +00:00
dholland
1c111fd5cf typo in comment 2014-03-23 04:58:16 +00:00
pooka
3f0878753a On glibc systems, issue a warning if LD_DYNAMIC_WEAK is not 2014-03-21 16:26:30 +00:00
riastradh
5c1b7f4542 Clarify some wording in getaddrinfo.1. 2014-03-19 18:21:39 +00:00
ginsbach
aa8e09363a Add missing include files. Don't rely on them bein pulled in as a
side effect of other includes.  Fixes build errors when getaddrinfo(1)
is added to the usr.bin tree.
- need <sys/socket.h> for address family (AF_*) and socket type (SOCK_*)
- need <stdio.h> for printf() and friends
2014-03-19 01:24:32 +00:00
riastradh
6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
dholland
c49e034e83 Fix gcc48 build. No obvious reason why nobody else has hit this... 2014-03-16 01:07:46 +00:00
dholland
19d6c717ae Fix gcc48 build without Kerberos.
While here, rectify related bug where if gethostname() failed, login
would null-terminate uninitialized stack trash and cheerfully pass it
on to kerberos. In this case, revert to "amnesiac" instead.
2014-03-16 00:33:13 +00:00
ginsbach
55791dff41 add missing break 2014-03-14 13:17:18 +00:00
jdc
3db3d1f929 Restore lost break. 2014-03-08 20:51:20 +00:00
riastradh
da030fc8bd `Controller' takes two l's. 2014-03-06 15:00:21 +00:00
matt
b1f346caa8 Use OBJECT_FMTS from <bsd.own.mk> to determine elf32/elf64 needs 2014-03-02 03:55:19 +00:00
matt
cbff955678 Use OBJECT_FMTS from <bsd.own.mk> 2014-03-02 03:42:50 +00:00
ginsbach
28ffd7e64f AF_MAX isn't an address family so don't include it in the generated table. 2014-02-27 01:17:13 +00:00
joerg
a400a0406f struct member can't be null, if the pointer itself is valid. 2014-02-27 00:49:46 +00:00
skrll
6d3ceb1d61 Rename NetBSD/hp700 to NetBSD/hppa.
Unfortunately our VCS isn't very helpful here.
2014-02-24 07:23:38 +00:00
mlelstv
8ab37b8ab4 skip unparseable addresses. 2014-02-23 07:50:01 +00:00
dsl
dc210c7fbd Remove some pointless inclusions os sys/user.h 2014-02-19 20:42:14 +00:00
christos
34fd6c876e add __extension__ and typeof 2014-02-18 22:01:36 +00:00
christos
a675eb32ca __real__ and __imag__ produce lvalues 2014-02-18 20:43:36 +00:00
uwe
28b0656f7c config() in manconf.c now verifies _build (and _crunch) command
templates with fmtcheck(3) so annotate the printf that uses these
commands as safe with a __format_arg wrapper and drop
-Wno-format-nonliteral.

XXX: Using local wrapper for now, solving this in general would be
nice, but it raises namespace pollution issues.

XXX^2: catman(8) also uses manconf.c and uses _build and _crunch so it
can also benefit from this (but see above).
2014-02-17 03:10:12 +00:00
uwe
20ec07777a Check _build and _crunch commands with fmtcheck(3), warn about and
ignore bad ones.
2014-02-17 02:53:48 +00:00
sjg
2adf342aef Put .INCLUDEDFROM* in the right section 2014-02-15 18:55:30 +00:00
christos
7757a9ebde delete the correct variables on eof
fix typo in comment (from sjg)
2014-02-15 00:17:17 +00:00
christos
d2bf840533 fix protocol printing order. 2014-02-14 20:43:34 +00:00
wiz
26dba06cb7 Fix some typos found by Rich Neswold and reported in PR 48597. 2014-02-13 22:36:28 +00:00
sjg
e84a63caab Reduce the calls to realloc from brk_string by basing initial argmax guess
on length of input.

Reviewed by: christos
2014-02-12 01:35:56 +00:00
pooka
9f33b0ead1 Use Var_Value() instead of getenv() to obtain MAKEOBJDIR{,PREFIX}.
Fixes "make -X MAKEOBJDIR=foo".  Purely uncoincidentally, build.sh
creates the nbmake wrapper with MAKEFLAGS -X on FreeBSD.
2014-02-07 17:23:35 +00:00
wiz
47c7c18d7f Correct number of output files in example.
From Jason McIntyre <jmc@OpenBSD>.

While here, also explain about the extra file in the example and
put .Ex into its own section in the correct place. Bump date.
2014-02-04 19:48:48 +00:00
njoly
a935b103a7 Handle another declaration after statement case for lint in c99 mode.
Add the corresponding testcase.
2014-02-04 08:08:59 +00:00
wiz
97cd0ff474 From Igor Sobrado in private email (based on his OpenBSD commit):
improve POSIX compliance by continuing to process the remaining file
    operands after not finding an input file.

    from the IEEE Std 1003.1-2008 (``POSIX.1'') rationale:

    "Unlike other utilities, some historical implementations of cut
    exit after not finding an input file, rather than continuing to
    process the remaining file operands.  This behavior is prohibited
    by this volume of POSIX.1-2008, where only the exit status is
    affected by this problem."

    joint work with jmc@, who identified the compliance issue, and millert@

    ok millert@, jmc@
2014-02-03 20:22:19 +00:00
pooka
dd477c0e3e Clarify that -l params must be given after options. 2014-01-28 14:02:54 +00:00
pooka
7943bb5b88 * make -h actually work
* give usage for invalid usage
2014-01-28 13:58:25 +00:00
pooka
ce8449bfdb rcs id police *uuu-aaa, uuu-aaa* 2014-01-28 13:56:02 +00:00
jnemeth
020285b36a add today's releases: 5.1.4, 5.2.2, 6.0.4, and 6.1.3 2014-01-27 21:00:02 +00:00
matt
01097770dd Recognize coldfire 2014-01-26 18:24:29 +00:00
riastradh
3a07c2a841 Get SIZE_MAX and OFF_MAX straight... 2014-01-25 16:38:15 +00:00
riastradh
482c113d44 Factor out an offtab_compute_window_position routine. 2014-01-25 16:26:17 +00:00
riastradh
0853010545 Fix some more integer overflow/truncation issues.
Arithmetic in C is hard.  Let's go shopping!
2014-01-25 15:31:06 +00:00
christos
115b322731 CID 1164169: integer overflow 2014-01-24 17:30:18 +00:00
christos
9db3fbf52f Checking _LP64 to determine the size of the built binary is just wrong. We
build n32 by default on mips64 now, we don't handle the compat build which
is n64. This is the same case for sparc64/sparc and amd64/i386 (lint does
not run in compat)
2014-01-24 00:17:33 +00:00
joerg
eecb404dbe Mark offtab_bug[x] as dead. 2014-01-23 14:17:05 +00:00
riastradh
380386c8de Fix $NetBSD$ tag. 2014-01-22 14:25:07 +00:00
riastradh
708b399e9d Bump date on vndcompress(1) man page. 2014-01-22 06:18:17 +00:00
riastradh
18fe60ee74 Fix vndcompress man page to reflect default window size. 2014-01-22 06:18:09 +00:00
riastradh
f13ecd80a5 Change vndcompress to use a default window size of 512.
For vnduncompress on nonseekable input, the window size is as large
as it needs to be by default, as before.  Not clear that this is the
right choice -- by default vnduncompress on nonseekable input will
just use unbounded memory unsolicited.
2014-01-22 06:18:00 +00:00
riastradh
120dc04ff6 Document the new vndcompress -w option and nuke BUGS section.
Perhaps vndcompress and vnduncompress ought by default to choose a
limited window size (say, 8192 entries, i.e. 64k bytes, the default
MAXPHYS), and vnduncompress should fall back to an unlimited window
only if the input is nonseekable.
2014-01-22 06:17:51 +00:00
riastradh
a7ef6dc75a Reflect rename of -s' to -b' in the vndcompress man page. 2014-01-22 06:17:42 +00:00
riastradh
dc88592abd Move err1 & errx1 to the end of vnduncompress.c; add __printflike. 2014-01-22 06:17:34 +00:00
riastradh
9aa3cfafcd Rename block size option from -s' to -b'.
Makes more sense and makes it consistent with other utilities such as
pax and pigz.  This vndcompress has never gone out in a release, so
changing the name of the option shouldn't cause too many problems...
2014-01-22 06:17:25 +00:00