7893 Commits

Author SHA1 Message Date
rwatson
c4063eb562 Merge mbuf.c:1.48 from HEAD to RELENG_6:
Sort sfbuf allocation counters with other sfbuf information.

Approved by:	re (scottl)
2006-02-14 03:39:04 +00:00
rwatson
6e53964350 Merge mbuf.c:1.47 from HEAD to RELENG_6:
Un-#if 0 the printing of allocation failure counts for mbufs, clusters,
  and packets in netstat -m.

Approved by:	re (scottl)
2006-02-14 03:33:49 +00:00
rwatson
d6eb8543f9 Merge kdump.1:1.13, kdump.c:1.27, as well as some of the mdoc cleanups
present in kdump.1:1.15:

  Add a "-H" argument to kdump, which causes kdump to print an additional
  field holding the threadid.  This is more useful for libthr than
  libpthread, but still quite useful in libpthread as it can be used to
  process interlaced records from multiple threads over the course of a
  system call.

  Detect old ktr_buffer values using the heuristic "if it's negative,
  then it must not be a valid threadid".  This may leave something to be
  desired.

  Reviewed by:    davidxu

Approved by:	re (scottl)
2006-02-14 03:28:31 +00:00
brd
c110472f36 MFC 1.37
- Mention that users need to be in the wheel group to `su - root' by default, and how to change it.

PR:		docs/70616
Submitted by:	Jilles Tjoelker <jilles at stack dot nl>
Reviewed by:	ru@
Approved by:	ceri@
2006-01-31 20:32:36 +00:00
jhay
0d13ff15f8 MFC:
Add AfriNIC as a RIR.

PR:		80421
Submitted by:	Adrian Frith <adrian at frith.homelinux.org>
2006-01-31 18:16:04 +00:00
ache
880a2a0bb8 MFC: 1.21 (don't update to current time on error) 2006-01-31 18:02:56 +00:00
philip
d8fc4b8e8b MFC:
Catch up with 64bit time_t on sparc64.  The rstat packet expects a 32bit
  time_t and times will look incorrect on machines with 64bit time_t.

      src/usr.bin/rup/rup.c: rev 1.18 -> 1.19

PR:		88788
Submitted by:	Keith White <Keith.White -at- site.uottawa.ca>
2006-01-30 00:29:15 +00:00
marcel
4ef2eebeda MFC ia64 psABI conformance changes:
s/R_IA64_/R_IA_64_/
	s/DT_IA64_/DT_IA_64_/

	libexec/rtld-elf/ia64/reloc.c:1.17,1.18
	libexec/rtld-elf/ia64/rtld_start.S:1.4
	sys/boot/ia64/efi/start.S:1.9,1.10
	sys/ia64/ia64/elf_machdep.c:1.23
	sys/ia64/ia64/genassym.c:1.42
	sys/ia64/ia64/locore.S:1.39
	sys/ia64/include/elf.h:1.12,1.13,1.14
	usr.bin/elfdump/elfdump.c:1.14
2006-01-28 18:40:55 +00:00
simon
5f94cb1c4b MFC rev 1.31:
Use the .Fx macro.
2006-01-25 20:56:17 +00:00
csjp
d45534cd3e MFC revision 1.20
date: 2005/12/30 20:10:21;  author: csjp;  state: Exp;  lines: +1 -1
mkstemp(3) and friends use a combination of base 10 digits, along
with upper and lower case letters from the English alphabet. Change
the number of possible file names mktemp will return from 26**6
to (10+26+26)**6 instead. This keeps things consistent with mkstemp(3)
2006-01-24 04:13:02 +00:00
matteo
2f32b90dba MFC:
Add myself to the list (Ehi, I'm not the youngest!)

      src/usr.bin/calendar/calendars/calendar.freebsd: rev 1.173 -> 1.174

(tomorrow is my birthday..)

Approved by:	philip (mentor, implicit)
2006-01-23 21:11:23 +00:00
yar
230f1eff88 MFC manpage fixes related to make.conf(5) and, in make.1,
to included makefiles at large.

	sbin/reboot/boot_i386.8		1.56
	share/man/man5/make.conf.5	1.122
	share/man/man5/style.Makefile.5	1.16
	share/man/man7/build.7		1.37
	share/man/man7/development.7	1.16
	share/man/man7/release.7	1.55
	share/man/man8/diskless.8	1.27
	usr.bin/make/make.1		1.94-1.96
2006-01-22 16:33:46 +00:00
yar
8cb395de80 MFC main.c#1.15, mail.1#1.46:
Minor man page and help screen fixes.
2006-01-22 12:40:06 +00:00
dds
6841008ed8 MFC change 2005-09-19 10:11:47 UTC
Setting .nofinger will not hide you from root.
2006-01-22 11:56:15 +00:00
dds
754c7c2343 MFC 1.47: Document the TMPDIR environment variable. 2006-01-22 11:41:18 +00:00
glebius
94e8073358 MFC 1.14:
Skip format flags, when parsing ktr_desc.
2006-01-21 10:08:15 +00:00
vd
8e4dbc282c Add myself to the calendar
Approved by:	garga (mentor)
2006-01-20 12:57:58 +00:00
delphij
68b438857e MFC pidfile(3) function, and convert several applications to make use
of it.

Bump __FreeBSDversion for the MFC.

Discussed with:	pjd
2006-01-15 17:50:38 +00:00
tegge
81ceadf72a MFC: Add marker vnodes to ensure that all vnodes associated with the mount
point are iterated over when using MNT_VNODE_FOREACH.
2006-01-14 01:18:03 +00:00
des
35d97efa7b MFC: (1.76) reflect progress in proctitle (1.77) fix mirror mode 2006-01-13 09:07:49 +00:00
cperciva
25cd32d200 Correct insecure temporary file usage in texindex. [06:01]
Correct insecure temporary file usage in ee. [06:02]
Correct a race condition when setting file permissions, sanitize file
names by default, and fix a buffer overflow when handling files
larger than 4GB in cpio. [06:03]
Fix an error in the handling of IP fragments in ipfw which can cause
a kernel panic. [06:04]

Security:	FreeBSD-SA-06:01.texindex
Security:	FreeBSD-SA-06:02.ee
Security:	FreeBSD-SA-06:03.cpio
Security:	FreeBSD-SA-06:04.ipfw
2006-01-11 08:02:16 +00:00
kbyanc
e0bfda5a3c MFC:
kbyanc      2005-12-28 20:36:55 UTC

      FreeBSD src repository

      Modified files:
        usr.bin/netstat      Makefile ipsec.c main.c netstat.h
      Added files:
        usr.bin/netstat      pfkey.c
      Log:
      Add support for printing IPSEC protocol stats if the kernel was
      compiled with FAST_IPSEC rather than the KAME IPSEC stack.

    Note that the output of "netstat -s -p ipsec" differs depending on
    which stack is compiled into the kernel since they each keep different
    stats.  This delta also adds the "esp", "ah", and "ipcomp" protocol
    stats, which are also available when the kernel is compiled with the
    FAST_IPSEC stack (e.g. "netstat -s -p esp").

      Submitted by:   Matt Titus <titus at nttmcl dot com>

      Revision  Changes    Path
      1.31      +2 -1      src/usr.bin/netstat/Makefile
      1.13      +266 -94   src/usr.bin/netstat/ipsec.c
      1.81      +29 -0     src/usr.bin/netstat/main.c
      1.47      +6 -0      src/usr.bin/netstat/netstat.h
      1.1       +184 -0    src/usr.bin/netstat/pfkey.c (new)
2006-01-05 03:47:24 +00:00
marcel
14fe1a0c49 MFC standardization of the ELF types and update of the ELF constants:
lib/libc/gen/nlist.c:1.19
	libexec/rtld-elf/rtld.c:1.108
	libexec/rtld-elf/rtld.h:1.36
	libexec/rtld-elf/alpha/reloc.c:1.21
	libexec/rtld-elf/amd64/reloc.c:1.16
	libexec/rtld-elf/ia64/reloc.c:1.16
	libexec/rtld-elf/sparc64/reloc.c:1.11
	share/man/man5/elf.5:1.32-1.33
	sys/alpha/alpha/elf_machdep.c:1.20
	sys/amd64/amd64/elf_machdep.c:1.24
	sys/boot/common/bootstrap.h:1.42
	sys/boot/common/load_elf.c:1.33
	sys/boot/common/load_elf_obj.c:1.2
	sys/boot/common/reloc_elf.c:1.2
	sys/ia64/ia64/elf_machdep.c:1.21
	sys/kern/link_elf.c:1.87
	sys/kern/link_elf_obj.c:1.90
	sys/sparc64/sparc64/elf_machdep.c:1.20
	sys/sys/elf32.h:1.9-1.10
	sys/sys/elf64.h:1.11-1.13
	sys/sys/elf_common.h:1.16
	sys/sys/elf_generic.h:1.7
	sys/sys/imgact_elf.h:1.28
	sys/sys/linker.h:1.40
	usr.bin/elf2aout/elf2aout.c:1.10
	usr.bin/elfdump/elfdump.c:1.13
	usr.sbin/crunch/crunchide/exec_elf32.c:1.15
	usr.sbin/kldxref/ef.c:1.9
	usr.sbin/kldxref/ef.h:1.6
	usr.sbin/kldxref/ef_amd64.c:1.3
	usr.sbin/kldxref/ef_i386.c:1.3
	usr.sbin/kldxref/ef_obj.c:1.4
	usr.sbin/kldxref/ef_powerpc.c:1.3
	usr.sbin/kldxref/ef_sparc64.c:1.4-1.5
2005-12-30 22:13:59 +00:00
cvs2svn
30ca7bc8d2 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-12-30 16:45:32 +00:00
ade
b9ac3400af MFC: 1.171 2005-12-28 08:42:54 +00:00
csjp
22f2501d22 MFC bpf stats functionality into netstat 2005-12-27 23:34:13 +00:00
dds
42f3618725 MFC 1.19
Use the appropriate error function for displaying the error,
instead of printing it to stdout.
2005-12-25 16:26:40 +00:00
des
3afb234d50 MFC: add a -0 option for interoperability with xargs -0 2005-12-21 12:17:49 +00:00
des
9004f411a5 MFC: (1.35) wording tweaks 2005-12-21 12:16:39 +00:00
des
0b19b26f18 MFC: (1.58) add -r option for GNU compatibility 2005-12-21 12:15:52 +00:00
emax
a41d6f22e5 MFC: Teach rfcomm_sppd(8) to recognize "lan" (for LAN Access Using PPP) service
name in '-c' (RFCOMM channel) option.
2005-12-12 18:00:03 +00:00
emax
6def0db70b MFC: Teach rfcomm_sppd(1) about service names, so it is possible to specify
service name instead of channel number with -c command option. Supported
service names are: DUN (Dial-Up Networking), FAX (Fax) and SP (Serial Port).
2005-11-30 18:34:13 +00:00
rwatson
fe78d82c95 Merge mbuf.c:1.46 from HEAD to RELENG_6: trim accidentally committed
debugging printfs from netstat -m.
2005-11-28 18:07:36 +00:00
rwatson
5bea52cfc5 Merge main.c:1.80, mbuf.c:1.45, netstat.h:1.46 from HEAD to RELENG_6:
Modify netstat -mb to use libmemstat when accessing a core dump or live
  kernel memory and not using sysctl.  Previously, libmemstat was used
  only for the live kernel via sysctl paths.

  This results in netstat output becoming both more consistent between
  core dumps and the live kernel, and also more information in the core
  dump case than previously (i.e., mbuf cache information).

  Statistics relating to sfbufs still rely on a kvm descriptor as they
  are not currently exposed via libmemstat.  netstat -m operating on a
  core is still unable to print certain sfbuf stats available on the live
  kernel.
2005-11-20 00:38:06 +00:00
rwatson
e4d7a0932c Merge kdump.1:1.14 and kdump.c:1.28 from HEAD to RELENG_6:
Add "-s" argument to kdump to suppress the display of I/O data.
2005-11-19 11:55:50 +00:00
ru
583f9a601a MFC: 1.64: Align output. 2005-11-16 08:27:46 +00:00
ru
0ef54f4dd7 MFC: 1.110: Fix .include <> to match documented behavior. 2005-11-16 08:25:19 +00:00
ru
1ff72f5fa5 MFC: 1.12: Style. 2005-11-16 08:21:06 +00:00
ru
c3ffbc2fe2 MFC: 1.3: Fix vgrind(1) indexing. 2005-11-16 08:19:26 +00:00
ru
e44b41c79d MFC: Sync calendar up with HEAD, including adding the Ukrainian calendar. 2005-11-16 07:47:44 +00:00
ru
699d115c5a MFC: 1.7: teach lorder(8) to work with .a libraries. 2005-11-16 07:30:02 +00:00
maxim
17afe6c387 MFC rev. 1.3: update list of holidays in Russia. 2005-11-13 16:35:50 +00:00
csjp
fb6dcae1e3 Sync with head:
-style(9) nits

MFC Log:
  Fix long standing race condition associated with how lockf uses open(2)
  for mutual exclusion:

  A brief description of the problem:

          1) Proc A picks up non-blocking lock on file X
          2) Proc B attempts to pickup lock, fails then waits
          3) Proc C attempts to pickup lock, fails then waits
          4) Proc A releases lock
          5) Proc B acquires lock, release it to pickup a non-blocking version
          6) Proc C acquires lock, release it to pickup a non-blocking version
          7) Both process B and C race each other to pickup lock again

  This occurs mainly because the processes do not keep the lock after they have
  been waiting on it. They drop it, attempt to re-acquire it. (They use the wait
  to notify when the lock has become available then race to pick it up). This
  results in additional CPU utilization during the race, and can also result
  in processes picking locks up out of order.

  This change attempts to correct this problem by eliminating the test/acquire
  race and having the operating system handle it.
2005-11-12 21:00:00 +00:00
csjp
d2b6d2d34e MFC Log:
Un-break processing of device major/minor values with fstat -n. We do
  this by accessing the cdev_priv element of the cdev structure. Looking
  forward we need a better way to handle this, as this structure shouldn't
  be frobbed by userspace.
2005-11-12 20:58:03 +00:00
rwatson
eed89777f6 Merge vmstat.c:1.90 from HEAD to RELENG_6:
Use libmemstat(3)'s kvm support for malloc(9) rather than hand-extracting
  this information from the core dump.
2005-11-09 13:28:50 +00:00
rwatson
372d430838 Merge vmstat.c:1.89 from HEAD to RELENG_6:
Teach vmstat's domemstat_zone() to use memstat_kvm_uma() when the kvm
  descriptor is non-NULL, restoring vmstat -z support for core dumps and
  kmem access.  These were broken with the introduction of UMA.
2005-11-09 13:28:08 +00:00
glebius
7b38b603f5 MFC 1.61 by ru:
Bail if interface is misspelled instead of falling out into the
  "all interfaces" mode.  (Only works with -w, but still better
  than nothing.)
2005-11-09 10:55:37 +00:00
mlaier
135560a493 MFC: rev. 1.79
Fix obvious copy'n'paste-O in rev.1.36  While here nit style.

    PR:			bin/87783
    Submitted by:	Mats Palmgren
2005-11-08 16:45:00 +00:00
kientzle
7a3cda744e MFC 1.65: Correct error message from incorrect use of --format.
PR: bin/86915
2005-11-06 22:27:21 +00:00
kientzle
4151fc111d MFC 1.17: Correctly detect NL_LANG_INFO.
PR: bin/88013
2005-11-06 22:24:27 +00:00