Commit Graph

9836 Commits

Author SHA1 Message Date
rwatson
d937e2486d Merge Makefile:1.5 from HEAD to RELENG_6:
Add symlinks for kvm access methods for memstat(3).
2005-11-16 08:20:44 +00:00
ru
bbcc7bbd63 MFC: Finish the removal of threads support in ../config.mk,v 1.15. 2005-11-16 07:59:50 +00:00
ru
43f7bf1231 MFC: 1.9: Recognize all current standard node types. 2005-11-16 07:56:37 +00:00
ru
7d62c554b2 MFC: 1.13: Drop useless here SHLIB_MAJOR. 2005-11-16 07:26:26 +00:00
rwatson
f18dd0b7aa Merge libmemstat.3:1.9 from HEAD to RELENG_6:
Document kvm(3)-related error constants, and correct minor formatting
  nits.
2005-11-09 10:23:33 +00:00
rwatson
a8375631b1 Merge libmemstat.3:1.8, memstat.h:1.9, memstat_all.c:1.3,
memstat_malloc:1.6 from HEAD to RELENG_6:

  Teach libmemstat(3) how to extract malloc(9) statistics using kvm(3),
  so that libmemstat can be used to view full memory statistics from
  kernel core dumps and /dev/mem.  This is provided via a new query
  function, memstat_kvm_malloc(), which is also automatically invoked
  by memstat_kvm_all().  A kvm handle must be passed in.

  This will allow malloc(9)-specific code to be removed from vmstat(8).
2005-11-09 10:22:28 +00:00
rwatson
eb288312be Merge libmemstat.3:1.7, memstat.c:1.7, memstat.h:1.8, memstat_all.c:1.2,
memstat_uma.c:1.10 from HEAD to RELENG_6:

  Add memstat_kvm_uma(), an implementation of a libmemstat(3) query routine
  that knows how to extract UMA(9) allocator statistics from a core dump or
  live memory image using kvm(3).  The caller is expected to provide the
  necessary kvm_t handle, which is then used by libmemstat(3).

  With these changes, it is trivially straight forward to re-introduce
  vmstat -z support on core dumps, which was lost when UMA was introduced.

  In the short term, this requires including vm/ include files that are not
  intended for extra-kernel use, requiring in turn some ugliness.

Merge memstat_uma.c:1.11 from HEAD to RELENG_6:

  Define LIBMEMSTAT so that vm_page.h won't perform a nested include of
  opt_vmpage.h.

  Remove definition of _KERNEL, it is no longer required in order to
  include uma_int.h, as the sensitive parts of uma_int.h (a number of
  inlines depending on kernel-only constants) are now protected by
  _KERNEL.

The use of LIBMEMSTAT here will be cleaned up in the future.
2005-11-09 10:20:48 +00:00
peter
a15f17eca3 MFC: Fix fencepost error that made libkvm fail to read crashdumps.
Approved by: re
2005-10-26 00:07:25 +00:00
cvs2svn
1ad5f43971 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-10-24 05:35:41 +00:00
davidxu
cd55799acc MFC revision 1.24:
> The pthread_attr_set_createsuspend_np was broken, fix it by
 > replacing THR_FLAGS_SUSPENDED with THR_FLAGS_NEED_SUSPEND.

Approved by: re (scottl)
2005-10-11 23:24:25 +00:00
delphij
f93a29eca0 MFC stefanf's work on libedit. This includes a sync with NetBSD/OpenBSD
and some bugfixes.

Approved by:	re (scottl)
2005-10-09 03:44:01 +00:00
pjd
8660beb374 MFC: lib/libmd/sha256.3 1.3
Correct type.

Approved by:	re (scottl)
Requested by:	delphij
OK'ed by:	cperciva
2005-10-08 21:46:23 +00:00
delphij
6092a2ab34 MFC (by ume)
| refer RFC 3542 rather than RFC 2292bis.
|
| Submitted by:   Keiichi SHIMA <keiichi__at__iijlab.net>
| Obtained from:  KAME
|
| Revision  Changes    Path
| 1.8       +2 -2      src/lib/libc/net/ip6opt.c
| 1.25      +1 -1      src/lib/libc/net/rcmd.3 (already merged)
| 1.8       +1 -1      src/lib/libc/net/rthdr.c

Approved by:	re (scottl)
2005-10-08 20:58:29 +00:00
delphij
6c069067ed MFC (by ume)
| fixed the validation code of routing header length in inet6_rth_getaddr().
| reported by Delia Kecskemeti <delia.kecskemeti__at__windriver.com>
|
| Submitted by:   Keiichi SHIMA <keiichi__at__iijlab.net>
| Obtained from:  KAME
|
| Revision  Changes    Path
| 1.7       +3 -4      src/lib/libc/net/rthdr.c

Approved by:	re (scottl)
2005-10-08 20:52:53 +00:00
delphij
7eae1cb08f MFC (by deischen)
|  Add usleep to the map files.
|
|  Noticed by:     davidxu
|
|  Revision  Changes    Path
|  1.15      +2 -0      src/lib/libpthread/pthread.map
|  1.4       +2 -0      src/lib/libthr/pthread.map

Approved by:	re (kensmith)
Ok'ed by:	deischen, davidxu
2005-10-08 17:58:11 +00:00
delphij
1a10afa24f MFC (by deischen)
|  Add a cancellation point for usleep().
|
|  Revision  Changes    Path
|  1.9       +16 -1     src/lib/libpthread/thread/thr_sleep.c

Approved by:	re (kensmith)
Ok'ed by:	deischen, davidxu
2005-10-08 17:57:49 +00:00
delphij
c87122e6d8 MFC (by deischen)
|  Add a cancellation point for usleep().
|
|  While here, fix sleep() so that it is also a cancellation point (a
|  missing weak reference prevented that).
|
|  Revision  Changes    Path
|  1.10      +19 -0     src/lib/libthr/thread/thr_syscalls.c

Approved by:	re (kensmith)
Ok'ed by:	deischen, davidxu
2005-10-08 17:57:28 +00:00
delphij
50d80715c4 MFC (by deischen)
|  Make syslog() use the internal (non-cancellation point) _usleep().
|  Prior to this it was calling the cancellable usleep() while holding
|  a lock.
|
|  Revision  Changes    Path
|  1.36      +1 -1      src/lib/libc/gen/syslog.c

Approved by:	re (kensmith)
Ok'ed by:	deischen, davidxu
2005-10-08 17:57:10 +00:00
delphij
1de4269756 MFC (by deischen)
| Make usleep() overridable by the thread libraries so they can provide
| cancellation points.
|
| Noticed by:     phk
|
| Revision  Changes    Path
| 1.29      +4 -1      src/lib/libc/gen/usleep.c

Approved by:	re (kensmith)
Ok'ed by:	deischen, davidxu
2005-10-08 17:56:53 +00:00
delphij
0273af281b MFC (by deischen)
| Add namespace #defines for usleep.
|
| Revision  Changes    Path
| 1.17      +1 -0      src/lib/libc/include/namespace.h
| 1.14      +1 -0      src/lib/libc/include/un-namespace.h

Approved by:	re (kensmith)
Ok'ed by:	deischen, davidxu
2005-10-08 17:56:33 +00:00
jon
aedee39383 MFC of 1.34: fix innetgr() returning false positives and negatives when reverse netgroup matching is used.
PR:		35506
Approved by:	re
2005-10-07 19:38:07 +00:00
ache
7e1a58e7bc MFC: 1.26-1.28
Approved by: re
2005-10-04 14:33:09 +00:00
ache
9894c5fb7c MFC: 1.23
Approved by: re
2005-10-04 14:31:10 +00:00
des
b0f5f61587 MFC: don't take unprotected keys into account for authentication.
PR:		bin/81231
Approved by:	re (kensmith)
2005-09-30 14:02:29 +00:00
brueffer
bda3ce0621 MFC: rev. 1.2
Use the correct function name as .Nm argument.

Approved by:	re (hrs)
2005-09-24 07:13:37 +00:00
keramida
754be4de67 MFC: a lot of manpage fixes from HEAD.
Approved by:	re (hrs)
2005-09-24 01:59:40 +00:00
kientzle
77b68075b4 MFC archive_read_extract.c 1.42 and 1.43: Correctly restore file flags.
Approved by: re
2005-09-21 03:12:45 +00:00
cperciva
e59c7653ea MFC revision 1.5:
When (re)allocating space for an array of pointers to char, use
  sizeof(*list), not sizeof(**list).  (i.e., sizeof(pointer) rather than
  sizeof(char)).

Approved by:	re (scottl)
2005-09-19 20:56:10 +00:00
scottl
2b0a07b354 Take a step closer to the release and turn off malloc debugging.
Approved by: re (implicit)
2005-09-18 03:45:24 +00:00
rwatson
19d0d47dcf Merge umask.2:1.13 from HEAD to RELENG_6:
Add mkfifo(2) to the man page SEE ALSO list for umask(2) -- it's
  mentioned in the description.

Approved by:	re (hrs)
2005-09-12 09:19:25 +00:00
brueffer
29e85a215b MFC: rev. 1.3 by tjr
Add HISTORY section.

Requested by:	pav
Approved by:	re (hrs)
2005-09-10 14:10:52 +00:00
imura
61e1e0b242 MFC: check capable size of given strings correctly.
1.4 src/contrib/smbfs/lib/smb/kiconv.c
  1.2 src/lib/libkiconv/xlat16_sysctl.c
  1.11 src/sys/libkern/iconv.c

Approved by:	re (scottl)
2005-09-08 15:46:38 +00:00
garys
dc357e6587 MFC: Added a sentence to explain what "span" means.
PR:             docs/84850
Approved by:    re
2005-09-07 16:41:51 +00:00
rodrigc
3cbe7ffa31 MFC 1.5:
Add __BEGIN_DECLS/__END_DECLS so that this header can be included in C++
programs.  Also, add include guards.

PR:             bin/44277
Submitted by:   Alex Zepeda <freebsd at blarf dot homeip dot net>
Approved by:	re (scottl)
2005-09-02 03:16:30 +00:00
glebius
475cdc869a MFC 1.28:
- Document the fact that the real length of listen queue is 1.5 more
    than the value of backlog argument.
  - Document the fact that a subsequent listen(2) calls on the listening
    socket change the backlog argument.
  - Note that current listen queue lengths can be queried using netstat(1).

  Submitted by:   Igor Sysoev <is rambler-co.ru>
  Wording by:     gnn

Approved by:	re (kensmith)
2005-08-31 14:01:48 +00:00
andre
e5068a6432 MFC addition of memmem(3).
Submitted by:	Pascal Gloor <pascal.gloor at spale.com>
Approved by:	re (scottl)
2005-08-29 18:46:39 +00:00
cvs2svn
99644cc57f This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-08-29 11:34:09 +00:00
rwatson
92800007fa Merge libmemstat.3:1.10 from HEAD to RELENG_6:
The "Mbuf" zone was renamed "mbuf" to improve consistency, but the code
  example in libmemstat.3 was not updated to take this rename into account.
  Update the example.

  PR:             84946
  Submitted by:   Wojciech A. Koszek <dunstan at freebsd dot czest dot pl>

Approved by:	re (scottl)
2005-08-20 21:25:21 +00:00
keramida
0467614a12 MFC spelling fixes of several manpages.
Approved by:	re (kensmith)

The merged revisions/files are:

Revision  Path
1.10      src/lib/libarchive/archive_entry.3
1.21      src/lib/libarchive/archive_read.3
1.8       src/lib/libautofs/libautofs.3
1.10      src/lib/libc/net/inet6_rth_space.3
1.8       src/lib/libc/posix1e/acl_get_entry.3
1.15      src/lib/libc/posix1e/mac.3
1.7       src/lib/libc/posix1e/mac_prepare.3
1.37      src/lib/libc/stdtime/strftime.3
1.16      src/lib/libc/sys/kse.2
1.8       src/lib/libc/sys/uuidgen.2
1.4       src/share/man/man4/man4.i386/acpi_ibm.4
1.6       src/share/man/man4/man4.i386/acpi_panasonic.4
1.40      src/share/man/man4/man4.i386/ep.4
1.6       src/share/man/man4/man4.i386/pbio.4
1.5       src/share/man/man4/man4.i386/snc.4
1.2       src/share/man/man4/man4.sparc64/openprom.4
1.4       src/share/man/man4/man4.sparc64/snd_audiocs.4
1.11      src/share/man/man4/witness.4
1.3       src/share/man/man5/devfs.conf.5
1.51      src/share/man/man9/ifnet.9
1.7       src/share/man/man9/printf.9
1.12      src/usr.bin/file2c/file2c.1
1.27      src/usr.bin/indent/indent.1
1.17      src/usr.bin/lockf/lockf.1
1.90      src/usr.bin/make/make.1
1.45      src/usr.bin/systat/systat.1
1.19      src/usr.bin/truss/truss.1
1.33      src/usr.bin/xinstall/install.1
1.11      src/usr.sbin/bluetooth/rfcomm_pppd/rfcomm_pppd.8
1.4       src/usr.sbin/bluetooth/sdpd/sdpd.8
1.9       src/usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.3
1.36      src/usr.sbin/i4b/isdnd/isdnd.rc.5
1.53      src/usr.sbin/mtree/mtree.8
1.8       src/usr.sbin/ndiscvt/ndiscvt.8
1.13      src/usr.sbin/ntp/doc/ntpdc.8
1.26      src/usr.sbin/pppd/pppd.8
1.40      src/usr.sbin/syslogd/syslog.conf.5
1.5       src/usr.sbin/wpa/wpa_supplicant/wpa_supplicant.conf.5
2005-08-18 15:01:27 +00:00
ken
3b826aab9c MFC, rev 1.28:
Remove a reference to compute_stats(), since it is no longer documented at
least.

Submitted by:	osa
Approved by:	re (hrs)
2005-08-18 04:46:26 +00:00
cvs2svn
aa9ad453cc This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-08-15 17:07:38 +00:00
jhb
0ef1901fa9 MFC: Convert the atomic pointer operations to operate on uintptr_t rather
than void *.

Approved by:	re (kensmith)
2005-08-05 19:44:00 +00:00
jmg
6361159f78 MFC: v1.45 intro.2, v1.40 help.common
fix a couple documentation nits

Approved by:	re (hrs)
2005-08-04 17:53:40 +00:00
rwatson
a4a77db603 Merge memstat.c:1.6, memstat_internal.h:1.6, memstat_malloc.c:1.5,
memstat_uma.c:1.9 from HEAD to RELENG_6:

 Correct two libmemstat(3) bugs:

  - Move memory_type_list flushing logic from memstat_mtl_free() to
    _memstat_mtl_empty(), a libmemstat-internal function that can
    be called from other parts of the library.  Invoke
    _memstat_mtl_empty() from memstat_mtl_free(), which also frees
    the containing list structure.

    Invoke _memstat_mtl_empty() instead of memstat_mtl_free() in
    various error cases in memstat_malloc.c and memstat_uma.c, which
    previously resulted in the list being freed prematurely.

  - Reverse the order of updating the mt_kegfree and mt_free fields
    of the memory_type in memstat_uma.c, otherwise keg free items
    won't be counted properly for non-secondary zones.

Merged to RELENG_6 earlier than the proposed MFC after date so that it
can make BETA2.

Approved by:	re (kensmith)
2005-08-01 17:14:51 +00:00
jkoshy
3cc3df0ace MFC r1.7:
Add COMPATIBILITY and HISTORY sections.

Approved by:	re (kensmith)
2005-07-30 09:12:51 +00:00
jkoshy
cd4b393de9 MFC r1.3:
Catch with the source code.  Sort a list alphabetically.  Add a
  HISTORY section.

Approved by:	re (kensmith)
2005-07-30 09:11:25 +00:00
des
0c2d08649a MFC: build BIND without thread support.
Approved by:	re (kensmith)
2005-07-30 07:56:28 +00:00
ume
1781d2a2fa MFC 1.12: don't accept invalid form of an address like 1:2:3:4:5:6:7::8.
Approved by:	re (kensmith)
2005-07-29 16:10:35 +00:00
rwatson
41ed4ba1fd Merge Makefile:1.206 from HEAD to RELENG_6:
Hook libmemstat(3) up to the build.

Approved by:	re (kensmith)
2005-07-28 13:47:18 +00:00
rwatson
15a631b33f Merge memstat_uma.c:1.8 from HEAD to RELENG_6:
If a retrieved UMA zone is a secondary zone, don't report keg free
  items, as they actually belong to the  primary zone, and maye otherwise
  be reported more than once.

Approved by:	re (kensmith)
2005-07-28 12:11:41 +00:00