9926 Commits

Author SHA1 Message Date
phk
45d0009c1b MFC:
Extensible printf implementation compatible with GLIBC
2006-06-25 07:35:51 +00:00
keramida
8e399b8ea0 MFC 1.26 and bump date.
# * Document the fact that non-superusers cannot change file flags for
#   objects with SF_IMMUTABLE, SF_APPEND, or SF_NOUNLINK.
# * Document that non-superusers cannot set or clear any SF_* flag
#   (setting fails with EPERM, clearing is silently ignored).
# * Document that superusers cannot change any flag if one of
#   SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK is set and securelevel is
#   greater than 0.
# * Document SF_SNAPSHOT and note that it is maintained by the
#   system and is, for this reason, impossible to set to clear by
#   any user.
#
# PR:             docs/33877
# Submitted by:   harti
# Help by:        George Marsellis <gam9478@njit.edu>
# MFC after:      1 week
2006-06-23 18:33:34 +00:00
maxim
5d4136bc68 MFC rev. 1.127 thr_private.h, rev. 1.85 thr_sig.c, rev. 1.24 thr_sigaction.c:
make signal(SIGINFO, handler) work for libpthread.
2006-06-23 10:51:36 +00:00
keramida
5b9a869f59 The malloc(3) manual page claim the options 'J' and 'Z' imply 'R'
option, but this is not true for RELENG_6.

PR:		docs/99231
Submitted by:	Dan Lukes <dan@obluda.cz>
2006-06-20 23:42:29 +00:00
maxim
5914e1e362 MFC revs. 1.276 and 1.277 ufs_vnops.c and rev. 1.18 truncate.2:
silently ignore truncate requests for all but VREG, VLNK and VDIR.
2006-06-14 08:41:15 +00:00
cvs2svn
d0023ab87e This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-06-12 22:58:51 +00:00
emax
a459bffc46 MFC:
Fix an unwanted gcc4 warning.

Submitted by:	delphij
2006-06-09 21:00:10 +00:00
marius
6f00c03e99 MFC: 1.8
For _Qp_{fge,fgt,fle,flt}() the SCD states that "Exceptions mimic fcmpeq",
this means they should set the cmpe flag when calling __fpu_compare().
2006-06-06 20:10:07 +00:00
maxim
273a870042 MFC rev. 1.21 strtol.3 and rev. 1.22 strtoul.3: .Xr strtonum(3). 2006-05-29 11:06:26 +00:00
cvs2svn
47d76a2b91 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-05-25 04:01:05 +00:00
jkim
ceb6e9c2d1 MFC: Correct decoding a string containing '/'.
PR:		97485
Submitted by:	Mikko Tyolajarvi < mbsd at pacbell dot net >
2006-05-24 18:14:34 +00:00
glebius
10adb4e9ee MFC 1.53 by peter:
We don't have 2Gb limitation since .Fx 2.2
2006-05-24 09:40:03 +00:00
davidxu
b52bed3a5a MFC following revisions:
libpthread_db.c		1.11-1.14
	libpthread_db.h		1.4
	libthr_db.c		1.12
2006-05-23 11:37:20 +00:00
davidxu
b498504cfb MFC following revisions:
pthread.map		1.18
	thread/thr_symbols.c	1.4
2006-05-23 11:33:57 +00:00
jkim
fa42b82744 MFC: src/lib/libstand/printf.c 1.9
src/sys/kern/subr_prf.c		1.123

Implement printf 'X' conversion for both libstand and kernel.
2006-05-22 23:51:14 +00:00
trhodes
d206aeccd0 MFC 1.14:
Fix a bug where, for 6-byte sequences, the top 6 bits get compared to
  111111 rather than the top 7 bits being compared against 1111110 causing
  illegal bytes fe and ff being treated the same as legal bytes fc and fd.
2006-05-17 13:26:01 +00:00
davidxu
1d9cc561ae MFC revisions 1.10, 1.11. 2006-05-17 02:37:41 +00:00
ume
18c9149607 MFC 1.79: fix indent. 2006-05-11 16:32:18 +00:00
maxim
894687d6cb MFC rev. 1.127: add IDs for Plan9, QNX4.X, Mac OS-X,
Linux extended partitions.
2006-05-10 15:26:46 +00:00
maxim
4559a6cf54 MFC rev. 1.33: document SO_NOSIGPIPE.
Approved by:	re (kensmith)
2006-05-01 20:25:35 +00:00
maxim
d1a1e323c2 MFC rev. 1.9: dbm_close(3) returns void.
Approved by:	re (kensmith)
2006-05-01 19:48:09 +00:00
marcus
bf090cbba6 MFC:
Fix a file descriptor leak in cam_lookup_pass() when the ioctl to find
the passthru device fails.

Approved by:	re (scottl)
2006-05-01 00:21:47 +00:00
brueffer
3ba34b2106 MFC: rev. 1.57
Document how the backoff delay is calculated.

Approved by:	re (hrs)
2006-04-26 18:43:08 +00:00
jmg
1df3f8fe4c MFC: pidfile.c v1.2
use pwrite to always write at the begining of the file..  If multiple calls
to pidfile_write happen, the pidfile will have nul characters prepended
due to the cached file descriptor offset...

Approved by:	re (scottl)
2006-04-14 19:14:58 +00:00
brueffer
18e65e9e51 MFC: rev. 1.28
Document that VIS_CSTYLE encodes space (040) as '\s'.

Approved by:	re (hrs)
2006-04-13 08:49:58 +00:00
davidxu
079331a84f MFC thr_cancel.c revision 1.12
thr_kern.c    revision 1.20
    thr_private.h revision 1.58
    thr_sig.c     revision 1.16, 1.17
    thr_rtld.c    revision 1.0-1.2

    Add rtld locking support.

Approved by: re (scottl)
2006-04-04 23:23:50 +00:00
davidxu
5298b1d72e MFC revision 1.31.
Approved by: re (scottl)
2006-04-04 23:21:22 +00:00
andre
0cbadcf68d MFC of import of OpenBSD's strtonum(3).
Approved by:	re
2006-04-04 19:56:46 +00:00
cvs2svn
4b6b4cf9d9 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-04-04 04:11:56 +00:00
gshapiro
f125642718 MFC: Add new libsm file from sendmail 8.13.6
Approved by:	re (kensmith)
2006-03-29 07:34:59 +00:00
ume
cc9b8b5396 MFC:
- When res_send() fails, we should reserve an error code.
  - When res_nquerydomain() returns SERVFAIL, we should try next domain.

	src/lib/libc/net/getaddrinfo.c:		1.75, 1.76
	src/lib/libc/resolv/res_query.c:	1.3

Approved by:	re (hrs)
2006-03-29 03:38:58 +00:00
cvs2svn
f67356168f This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-03-28 23:59:08 +00:00
jkoshy
813c792bf7 MFC {r1.9 libpmc.c, r1.10 pmc.3}: Add an alias 'unhalted-cycles'
denoting cycles where the CPU is not in a halt or sleep state. [1]
Increment the manual page date, bring the copyright year upto-date.

Approved by:	re (mux) [1]
2006-03-19 01:48:44 +00:00
deischen
32f6962a6f MFC: Relevent commit logs are below.
Only catch SIGINFO (for dumping thread states) when LIBPTHREAD_DEBUG
  is defined in the environment.

  Modify the code path of the ifdef NOTYET part of _kse_single_thread():

  o  Don't reinitialise the atfork() handler list in the child.  We
     are meant to call the child handler, and on subsequent fork()s
     should call all three functions as normal.
  o  Don't reinitialise the thread specific keyed data in the
     child after a fork.  Applications may require this for context.
  o  Reinitialise curthread->tlflags after removing ourselves from
     (and reinitialising) the various internal thread lists.
  o  Reinitialise __malloc_lock in the child after fork() (to balance
     our explicitly taking the lock prior to the fork()).

  With these changes, it is possible to enable the NOTYET code in
  thr_kern.c to allow the use of non-async-safe functions after
  fork()ing from a threaded program.

  Eliminate a race condition in timed waits (cv, mutex, and sleeps).

  Don't forget to initialize a tailq before using it.

  For the ``#ifdef NOTYET'' code that allows calling non-async-safe
  functions in the child after a fork() from a threaded process,
  use __sys_setprocmask() rather than setprocmask() to keep our
  signal handling sane.  Without this fix, signals are essentially
  ignored in said child and things such as protection violations
  result in an endless busy loop.

  Allocate a thread's tcb last so it is easier to handle failures to
  malloc() siginfo.

  Include needed headers that were obtained through <pthread.h>.  Sort headers
  while here.

  amd64
  -----
  Fix a race condition introduced when redzones were added.  Use an
  atomic operation to return and adjust the stack (amd64).

  test
  -----
  o  Include <string.h>
  o  Make this ILP32/LP64 clean: cast pointers to long.

Approved by:	re (scottl)
2006-03-16 23:29:08 +00:00
yar
8c3ef7986c MFC:
Some years ago handling login.access(5) was moved from login(1) to
pam_login_access(8) completely and unconditionally.  This patch is
to finalize the move by deleting unused files and defines, and by
updating the manpages.  In addition, login.access.5 will be installed
from the pam_login_access src directory, to where it belongs and
where it has lived for quite a while, too.

Besides satisfying general purism, this patch should stop ongoing
attempts to fix the dead code.

Approved by:	re (mux)
2006-03-09 22:18:07 +00:00
gnn
d6e8824dad Merge manual pages from HEAD to RELENG_6
1.21      src/lib/libipsec/ipsec_set_policy.3
1.14      src/lib/libipsec/ipsec_strerror.3
1.17,1.18 src/share/man/man4/ipsec.4

Clean up some descriptions and remove ambiguities in the language.
Add explanations to the examples.

Approved by: re (scottl)
2006-03-09 12:41:34 +00:00
brueffer
b516f2fc6f MFC: rev. 1.30
Remove a useless word.

Approved by:	re (hrs)
2006-03-09 09:18:52 +00:00
ume
faaa6758db MFC: Handle the errors returned by res_querydomain() in same manner.
lib/libc/net/getaddrinfo.c:	1.72
	lib/libc/net/res_query.c:	1.32

Approved by:	 re (mux)
2006-03-09 09:06:44 +00:00
cvs2svn
9cb23632cc This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-03-08 18:03:10 +00:00
ume
16942a990d MFC: Sync inet_net_pton() and inet_net_ntop() with latest BIND9's
includes an IPv6 support.

	lib/libc/net/inet_net.3:	1.3
	lib/libc/net/inet_net_ntop.c:	1.8
	lib/libc/net/inet_net_pton.c:	1.10

Approved by:	re (scottl)
2006-03-06 14:55:48 +00:00
ume
e70f9bb8b0 MFC:
- Just query 'as is', if there is a trailing dot in the name.
- Don't query 'as is' twice.

	lib/libc/net/getaddrinfo.c:	1.71
	lib/libc/net/res_query.c:	1.31

Approved by:	re (scottl)
2006-03-04 17:44:27 +00:00
yar
9ee4d90385 MFC rev. 1.17:
Tell the truth about a) how to get the first fileid, and
  b) what return values from kldstat(2) can be expected.

Approved by:	re (mux)
2006-02-26 16:18:29 +00:00
rwatson
c399fba0fe Merge Makefile:1.4 from HEAD to RELENG_6:
Add missing shared library interdependencies.

Approved by:	re (mux)
2006-02-24 17:17:09 +00:00
davidxu
272a5d8381 MFC revision 1.6.
Approved by: re (scottl)
2006-02-23 03:56:03 +00:00
cvs2svn
34436ebdd7 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-02-22 21:51:10 +00:00
rwatson
f9a413bf3e Merge memstat_uma.c:1.17 from HEAD to RELENG_6:
Update copyright for 2006.

Approved by:	re (scottl)
2006-02-14 03:38:31 +00:00
rwatson
c2f1fc6b2c Merge memstat_uma.c:1.16 from HEAD to RELENG_6:
The uma_zone data structure defines the size of its uz_cpu[] array as 1,
  but then sizes the containing data structure at run-time to make room
  for per-cpu cache data.  Modify libmemstat to separately allocate a
  buffer to hold per-cpu cache data, sized based on the run-time mp_maxid
  variable when using libkvm to access UMA data.  This avoids reading
  invalid cache data from beyond the end of the uma_zone data structure
  on the stack, which can result in invalid statistics and/or reads from
  invalid kernel addresses.

Approved by:	re (scottl)
2006-02-14 03:37:12 +00:00
rwatson
dfedbdbb8a Merge memstat_uma.c:1.15 from HEAD to RELENG_6:
When reporting an error reading from UMA per-cpu cache pointers using KVM,
  return a KVM error rather than an out of memory error, so that the caller
  reports the KVM error state.  This replaces a misleading error message
  with a more accurate although equally confusing one.

Approved by:	re (scottl)
2006-02-14 03:36:21 +00:00
rwatson
8a6e1d37f3 Merge memstat_uma.c:1.14 from HEAD to RELENG_6:
Read all_cpus variable out of kmem, and validate CPUs against the all_cpus
  cpu mask before looking at the cache entries for the CPU.  For systems
  with sparse CPU id arrays, this skips otherwise uninitialized cache
  structures.

Approved by:	re (scottl)
2006-02-14 03:35:26 +00:00
rwatson
837a6e1c15 Merge memstat_uma.c:1.13 from HEAD to RELENG_6:
Correct a typo in the extraction of zone information from UMA using kmem:
  bytes = allocated - freed, not bytes = allocated = freed.

Approved by:	re (scottl)
2006-02-14 03:33:06 +00:00