Commit Graph

175348 Commits

Author SHA1 Message Date
ed
5d85b35609 Add missing static keywords to seq(1) 2011-11-06 08:17:05 +00:00
ed
d2e48ceef2 Add missing static keywords to rwho(1) 2011-11-06 08:16:59 +00:00
ed
154b755827 Add missing static keywords to rwall(1) 2011-11-06 08:16:53 +00:00
ed
75aea7ad85 Add missing static keywords to rusers(1) 2011-11-06 08:16:47 +00:00
ed
04ff92c413 Add missing static keywords to ruptime(1) 2011-11-06 08:16:41 +00:00
ed
7d71ef84d7 Add missing static keywords to rs(1) 2011-11-06 08:16:35 +00:00
ed
09dd1a0121 Add missing static keywords to quota(1) 2011-11-06 08:16:29 +00:00
ed
809f85b51a Add missing static keywords to pr(1) 2011-11-06 08:16:24 +00:00
ed
4b5bea4fc7 Add missing static keywords to mt(1) 2011-11-06 08:16:18 +00:00
ed
ab0dc98dd4 Add missing static keywords to ministat(1) 2011-11-06 08:16:11 +00:00
ed
d194803bbc Add missing static keywords to make(1) 2011-11-06 08:16:06 +00:00
ed
15a0ba36db Add missing static keywords to look(1) 2011-11-06 08:15:59 +00:00
ed
b3e1c421c6 Add missing static keywords to logger(1) 2011-11-06 08:15:53 +00:00
ed
778a941742 Add missing static keywords to lock(1) 2011-11-06 08:15:48 +00:00
ed
75cb563647 Add missing static keywords to last(1) 2011-11-06 08:15:41 +00:00
ed
0016966bba Add missing static keywords to join(1) 2011-11-06 08:15:35 +00:00
ed
4261175970 Add missing static keywords to id(1) 2011-11-06 08:15:30 +00:00
ed
8afe216b97 Add missing static keywords to fold(1) 2011-11-06 08:15:23 +00:00
ed
c9f8997dfe Add missing static keywords to du(1) 2011-11-06 08:15:17 +00:00
ed
62515a1ff3 Add missing static keywords to dc(1) 2011-11-06 08:14:57 +00:00
ed
91ffce3875 Add missing static keywords to cut(1) 2011-11-06 08:14:51 +00:00
ed
ce4cbee6a1 Add missing static keywords to csplit(1) 2011-11-06 08:14:45 +00:00
ed
4b43e01fe9 Add missing static keywords to cpuset(1) 2011-11-06 08:14:40 +00:00
ed
88b6b62757 Add missing static keywords to column(1) 2011-11-06 08:14:34 +00:00
ed
5d1bcc94a8 Add missing static keywords to colcrt(1) 2011-11-06 08:14:28 +00:00
ed
61bd4fddd2 Add missing static keywords to col(1) 2011-11-06 08:14:22 +00:00
ed
a86a6f0c85 Add missing static keywords to cmp(1) 2011-11-06 08:14:16 +00:00
ed
d0367a1471 Add missing static keywords to catman(1) 2011-11-06 08:14:09 +00:00
ed
1f7f99bbde Add missing static keywords to cap_mkdb(1) 2011-11-06 08:14:03 +00:00
ed
4704a8332d Add missing static keywords to c99(1) 2011-11-06 08:13:58 +00:00
ed
c25f8d73b9 Add missing static keywords to banner(1) 2011-11-06 08:13:51 +00:00
fjoe
afccaaff1c Add KLD_DEBUG option. 2011-11-06 08:10:41 +00:00
fjoe
c518069229 - 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
fjoe
e5bafa39b1 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
fjoe
8c3483dc98 Constify "address" argument of ng_address_path(). 2011-11-06 05:20:27 +00:00
alc
eb6224d517 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
mjacob
3230b890d9 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
3297d3be53 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
46fb1cb984 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
96a8647851 sh(1): Improve documentation of field splitting. 2011-11-05 21:56:45 +00:00
jilles
eeb1159658 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
dim
00e8573810 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
jpaetzel
2e79cf338b 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
jmg
4f47980127 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
dim
95e06f7199 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
pjd
f805d16088 Correct typo in comment.
Reported by:	Fabian Keil <fk@fabiankeil.de>
MFC after:	3 days
2011-11-05 16:44:25 +00:00
pjd
926e106e80 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
hselasky
e58889997a 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
e59eeb86a4 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
kib
f015c4fd4f Fix typo.
MFC after:	3 days
2011-11-05 09:04:13 +00:00