Commit Graph

165975 Commits

Author SHA1 Message Date
Ed Schouten
31dd0180e9 Add missing static keywords to rwall(1) 2011-11-06 08:16:53 +00:00
Ed Schouten
6ebcee2952 Add missing static keywords to rusers(1) 2011-11-06 08:16:47 +00:00
Ed Schouten
5988030025 Add missing static keywords to ruptime(1) 2011-11-06 08:16:41 +00:00
Ed Schouten
43420d1cad Add missing static keywords to rs(1) 2011-11-06 08:16:35 +00:00
Ed Schouten
865ff60987 Add missing static keywords to quota(1) 2011-11-06 08:16:29 +00:00
Ed Schouten
4f5e9a1a57 Add missing static keywords to pr(1) 2011-11-06 08:16:24 +00:00
Ed Schouten
0e5d3f8e6c Add missing static keywords to mt(1) 2011-11-06 08:16:18 +00:00
Ed Schouten
23f01dcfd1 Add missing static keywords to ministat(1) 2011-11-06 08:16:11 +00:00
Ed Schouten
efd6c7ccc9 Add missing static keywords to make(1) 2011-11-06 08:16:06 +00:00
Ed Schouten
76de43968b Add missing static keywords to look(1) 2011-11-06 08:15:59 +00:00
Ed Schouten
481bce6c91 Add missing static keywords to logger(1) 2011-11-06 08:15:53 +00:00
Ed Schouten
20a9b7ee4e Add missing static keywords to lock(1) 2011-11-06 08:15:48 +00:00
Ed Schouten
7f3271b68c Add missing static keywords to last(1) 2011-11-06 08:15:41 +00:00
Ed Schouten
6c9f961574 Add missing static keywords to join(1) 2011-11-06 08:15:35 +00:00
Ed Schouten
f82c82df6d Add missing static keywords to id(1) 2011-11-06 08:15:30 +00:00
Ed Schouten
385c1d290c Add missing static keywords to fold(1) 2011-11-06 08:15:23 +00:00
Ed Schouten
d2aa301d2e Add missing static keywords to du(1) 2011-11-06 08:15:17 +00:00
Ed Schouten
267265e0dd Add missing static keywords to dc(1) 2011-11-06 08:14:57 +00:00
Ed Schouten
41b662c583 Add missing static keywords to cut(1) 2011-11-06 08:14:51 +00:00
Ed Schouten
b168c3c84b Add missing static keywords to csplit(1) 2011-11-06 08:14:45 +00:00
Ed Schouten
9ff0c16a5b Add missing static keywords to cpuset(1) 2011-11-06 08:14:40 +00:00
Ed Schouten
316b87cb40 Add missing static keywords to column(1) 2011-11-06 08:14:34 +00:00
Ed Schouten
78ea30bb9b Add missing static keywords to colcrt(1) 2011-11-06 08:14:28 +00:00
Ed Schouten
ab8d971c3a Add missing static keywords to col(1) 2011-11-06 08:14:22 +00:00
Ed Schouten
8ef8574d1a Add missing static keywords to cmp(1) 2011-11-06 08:14:16 +00:00
Ed Schouten
1a5054d3fb Add missing static keywords to catman(1) 2011-11-06 08:14:09 +00:00
Ed Schouten
f3d61b0c62 Add missing static keywords to cap_mkdb(1) 2011-11-06 08:14:03 +00:00
Ed Schouten
5227c53347 Add missing static keywords to c99(1) 2011-11-06 08:13:58 +00:00
Ed Schouten
9e43b5a097 Add missing static keywords to banner(1) 2011-11-06 08:13:51 +00:00
Max Khon
4e313b699e Add KLD_DEBUG option. 2011-11-06 08:10:41 +00:00
Max Khon
4cf39b5da4 - Fix potential double mbuf free: M_PREPEND may free mbuf chain and return
NULL but item will still have the reference ot the mbuf chain and will free
it upon destruction.
- Fix memory leak (unfree'd item on error path).
2011-11-06 05:24:54 +00:00
Max Khon
6812e78328 Fix potential double mbuf free: M_PREPEND may free mbuf chain and return
NULL but item will still have the reference ot the mbuf chain and will free
it upon destruction.
2011-11-06 05:23:42 +00:00
Max Khon
707d205808 Constify "address" argument of ng_address_path(). 2011-11-06 05:20:27 +00:00
Alan Cox
c835bd16a8 Wake up the page daemon in vm_page_alloc_freelist() if it couldn't
allocate the requested page because too few pages are cached or free.

Document the VM_ALLOC_COUNT() option to vm_page_alloc() and
vm_page_alloc_freelist().

Make style changes to vm_page_alloc() and vm_page_alloc_freelist(),
such as using a variable name that more closely corresponds to the
comments.
2011-11-06 02:03:27 +00:00
Matt Jacob
a0ec8e99ae Implement the sysctl's for fibre channel that are listed in the man page.
MFC after:	3 days
2011-11-06 00:44:40 +00:00
Jilles Tjoelker
ddc13b6f44 fifo_misc test: Fix swapped lseek arguments.
It worked regardless because SEEK_CUR happens to be 1.
2011-11-05 22:33:19 +00:00
Jilles Tjoelker
6e678e0ce9 lint: Fix lseek() argument order.
Because SEEK_SET is 0, this seems to have no effect on the generated code.

PR:		bin/160806
Submitted by:	Henning Petersen <henning dot petersen at t-online dot de>
Obtained from:	NetBSD
2011-11-05 22:25:15 +00:00
Jilles Tjoelker
ad56ebdc15 sh(1): Improve documentation of field splitting. 2011-11-05 21:56:45 +00:00
Jilles Tjoelker
4f6d8894a4 make(1): obj dirs are physical paths so write pwd -P rather than pwd.
Regular pwd may return a pathname containing symlinks, but make does not use
such pathnames.
2011-11-05 21:32:17 +00:00
Dimitry Andric
8dcbd43161 Make it possible to set CC and CXX (and optionally, AS and LD) in
make.conf(5), while allowing the build32 stage on 64-bit architectures
to still override them, so that stage can successfully build 32-bit
compatibility libraries.

Explanation:
1) The build32 stage sets environment variables CC, CXX, AS and LD for
   its sub-make, to add 32-bit specific flags (-m32 and such).
2) The sub-make reads sys.mk, encounters CC?= and CXX?= assignments, so
   does not alter them.
3) After some other stuff, sys.mk reads /etc/make.conf.  When you have
   "CC=xxx" and "CXX=yyy" statements in there, they will *override* the
   build32-supplied CC/CXX values, nullifying the 32-bit specific flags.
4) Thus all objects get built as 64-bit anyway, and since LD is usually
   not set in make.conf, it still has the 32-bit flags!
5) Now, whenever something is linked, you will get a "ld: Relocatable
   linking with relocations from format elf64-x86-64-freebsd (foo.o) to
   format elf32-i386-freebsd (bar.o) is not supported" error.

Fix this by adding "-ECC -ECXX -EAS -ELD" to the build32 sub-make
invocation, which forces those environment variables to always override
any assignment in makefiles.  Thus making it possible to simply set:

CC=my-cc
CXX=my-c++

in your make.conf, or specify a path, even:

CC=/usr/local/bin/other-cc
CXX=/usr/local/bin/other-c++

Note this was never a problem on i386, since it has no build32 stage.

Silence from:	current@
MFC after:	1 week
2011-11-05 21:16:39 +00:00
Josh Paetzel
e4985e44df Roll up several patches used by PC-BSD.
- Fix an issue with gmirror.
- Allow IPv4 DHCP and IPv6 SLAAC concurrently.
- Fix zpool options using the wrong device name.

Approved by:	kib (mentor)
Obtained from:	kris@pcbsd.org
MFC after:	3 days
2011-11-05 19:25:21 +00:00
John-Mark Gurney
4ce04b3d91 group functions together by function...
document knlist_delete, and better document what knlist_clear does...  Note
that both of these functions may sleep, and also unlock/relock the list
lock...

document knlist_init_mtx (forgotten by kib)...

other minor improvements

Reviewed by:	ru (previous rev)
MFC after:	1 week
2011-11-05 17:55:49 +00:00
Dimitry Andric
66aa9b8dc9 Whenever you boot with nfsv4_server_enable=NO (the default) in rc.conf,
the /etc/rc.d/nfsd script sets vfs.nfsd.server_max_nfsvers to 3.

Then, when you set nfsv4_server_enable=YES in rc.conf, and restart nfsd
via the rc.d script, without rebooting, the sysctl does *not* get reset
to max version 4, so NFSv4 still doesn't work.

Fix this by explicitly setting vfs.nfsd.server_max_nfsvers to 4 when
NFSv4 is requested.

I also added resetting of the nfs_privport sysctls, since this has the
same issue: nfs_reserved_port_only=YES in rc.conf sets the nfs_privport
sysctl to 1, but in the other case, the sysctl doesn't get reset to 0.

Reviewed by:	rmacklem
Silence from:	rc@
MFC after:	3 days
2011-11-05 16:47:47 +00:00
Pawel Jakub Dawidek
df663c3dd3 Correct typo in comment.
Reported by:	Fabian Keil <fk@fabiankeil.de>
MFC after:	3 days
2011-11-05 16:44:25 +00:00
Pawel Jakub Dawidek
98dd1c40c4 In zvol_open() if the spa_namespace_lock is already held, it means that
ZFS is trying to open and taste ZVOL as its VDEV. This is not supported,
so return an error instead of panicing on spa_namespace_lock recursion.

Reported by:	Robert Millan <rmh@debian.org>
PR:		kern/162008
MFC after:	3 days
2011-11-05 16:29:03 +00:00
Hans Petter Selasky
0527a869a9 Implement support for modem control lines.
Don't short terminate transmitted BULK data.
Assume that the chip reads one USB packet at a time.

PR:		usb/162307
MFC after:	3 days
2011-11-05 12:01:51 +00:00
Ed Schouten
82a36aefae Remove an unused variable from pam_unix.
This variable was added in r82352 back in 2001, but even then it didn't
have any use. Because it's not marked static, the C compiler won't
complain about it.

Discussed with:	des
2011-11-05 10:00:29 +00:00
Konstantin Belousov
25cc6027cf Fix typo.
MFC after:	3 days
2011-11-05 09:04:13 +00:00
Konstantin Belousov
7845becfe8 Remove redundand definitions. The chunk was missed from r227102.
MFC after:	2 weeks
2011-11-05 09:03:18 +00:00
Konstantin Belousov
561cc9fcb5 Provide typedefs for the type of bit mask for the page bits.
Use the defined types instead of int when manipulating masks.
Supposedly, it could fix support for 32KB page size in the
machine-independend VM layer.

Reviewed by:	alc
MFC after:	2 weeks
2011-11-05 08:20:32 +00:00