Commit Graph

4998 Commits

Author SHA1 Message Date
simon
d7c50e2dcb MFC 1.46:
Do not explicitly state how many bytes an argument list can be in the
description of E2BIG, since it's now larger on some platforms.
2005-11-22 19:13:09 +00:00
ume
40cbc7d159 MFC 1.55: The KAME's getipnodebyaddr() code honor the
MULTI_PTRS_ARE_ALIASES define also, but res_config.h was not
included into libc/net/name6.c.  So getipnodebyaddr() ignored
the multiple PTRs.
2005-11-18 02:32:32 +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
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
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
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
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
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
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
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
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
mdodd
96f0ea74d4 MFC: 1.13
Move initialization above point of first possible reference to
avoid overwriting ty_status values set from the 'type' field.
Approved by:	 re (scottl)
2005-07-25 20:19:39 +00:00
ume
34d108ce3b MFC: Remove padding for ABI compatibility of ai_addrlen member
from struct addrinfo.  This change break ABI compatibility on
64 bit arch.

	include/netdb.h:		1.39
	lib/libc/net/getaddrinfo.c:	1.70

Approved by:	re (kensmith)
2005-07-22 20:17:30 +00:00
rwatson
221c29195b Merge sem_init.3:1.18, sem_post.3:1.15, sem_wait.3:1.13 from HEAD to
RELENG_6:

  Cross-reference sem_getvalue(3) from several other semaphore-related
  functions.

Approved by:	re (hrs)
2005-07-17 19:28:55 +00:00
cvs2svn
dd2adf2c10 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-07-11 04:14:43 +00:00
jhb
cf15cbb1b6 - Add two new system calls: preadv() and pwritev() which are like readv()
and writev() except that they take an additional offset argument and do
  not change the current file position.  In SAT speak:
  preadv:readv::pread:read and pwritev:writev::pwrite:write.
- Try to reduce code duplication some by merging most of the old
  kern_foov() and dofilefoo() functions into new dofilefoo() functions
  that are called by kern_foov() and kern_pfoov().  The non-v functions
  now all generate a simple uio on the stack from the passed in arguments
  and then call kern_foov().  For example, read() now just builds a uio and
  calls kern_readv() and pwrite() just builds a uio and calls kern_pwritev().

PR:		kern/80362
Submitted by:	Marc Olzheim marcolz at stack dot nl (1)
Approved by:	re (scottl)
MFC after:	1 week
2005-07-07 18:17:55 +00:00
marcus
979be5a2e1 Fix ptsname(3) by converting it to use devname(3) to obtain the name of
a tty device instead of the legacy minor number approach.  This is known to
fix gnome-vfs' sftp module as well as kio_sftp and kdesu on -CURRENT.

Thanks to scottl for the snprintf() approach idea.

Reviewed by:	phk
Tested by:	pav
		mich
Approved by:	re (scottl)
2005-07-07 17:48:40 +00:00
delphij
13171c48a1 Minor grammar fix
Submitted by:	Wojciech A. Koszek [dunstan at freebsd czest pl]
Approved by:	re (hrs)
2005-07-03 12:35:11 +00:00
hmp
9149713184 Use 'manual page' instead of 'man page' for consistency.
Approved by:	re (hrs)
2005-06-30 13:18:15 +00:00
peter
db8830bc2d Clean out the leftovers from the i386_set_gsbase() TLS conversion.
Like on libthr, there is an i386_set_gsbase() stub implementation here
to avoid libc.so.5 issues.  This should likely be a weak symbol and I
expect this will be fixed soon.

Approved by:	re
2005-06-29 23:15:36 +00:00
stefanf
36185b0946 Add the functions _Qp_cmp() and _Qp_cmpe() as described in the Sparc
Compliance Definition.  On sparc64, GCC emits _Qp_cmp() calls for its
__builtin_isfoo() functions which are used for C99's isfoo() macros.

Approved by:	re(dwhite)
PR:		73782
2005-06-21 21:13:07 +00:00
ru
7cec114952 Markup fixes.
Approved by:	re
2005-06-16 19:01:07 +00:00
ru
38fc91ca96 Assorted markup fixes.
Approved by:	re
2005-06-15 19:04:04 +00:00
ru
5c7da11689 When IPC_NOWAIT is set and there is no message, msgrcv() fails
with errno set to ENOMSG.

PR:		docs/82217
Submitted by:	delphij
Approved by:	re (blanket)
2005-06-14 10:56:02 +00:00
nectar
a23214e059 Remove rexecd(8), a server that implements a particularly insecure
method of executing commands remotely.  There are no rexec clients in
the FreeBSD tree, and the client function rexec(3) is present only in
libcompat.  It has been documented as "obsolete" since 4.3BSD, and its
use has been discouraged in the man page for over 10 years.
2005-06-10 20:52:36 +00:00
rodrigc
a2da5f36da Fix the wording in this man page so that it
reflects the actual behavior of the API
for listing extended attributes.

PR:		docs/79261
Submitted by:	rodrigc
Reviewed by:	rwatson, kan
Approved by:	das (mentor)
2005-06-10 16:54:17 +00:00
alc
c92da1a153 Update .Dd value. 2005-06-04 19:44:09 +00:00
alc
369cab6800 Eliminate the original method of requesting notification of aio_read(2) and
aio_write(2) completion through kevent(2).  This method does not work on
64-bit architectures.  It was deprecated in FreeBSD 4.4.  See revisions
1.87 and 1.70.2.7.

Change aio_physwakeup() to call psignal(9) directly rather than indirectly
through a timeout(9).  Discussed with: bde

Correct a bug introduced in revision 1.65 that could result in premature
delivery of a signal if an lio_listio(2) consisted of a mixture of
direct/raw and queued I/O operations.  Observed by: tegge

Eliminate a field from struct kaioinfo that is now unused.

Reviewed by: tegge
2005-06-04 19:16:33 +00:00
imp
98f9fb48ad Missed rwatson's redundancy 2005-06-03 15:50:55 +00:00
ume
b1d9bded13 reflect type change of n_net and getnetbyaddr(3). 2005-06-03 04:44:54 +00:00
ume
0d8a6fcf73 - Remove padding for ABI compatibility of n_net member from struct
netent.
- Change 1st argument of getnetbyaddr() to an uint32_t on 64 bit
  arch as well to confirm to POSIX-2001.

These changes break ABI compatibility on 64 bit arch.
There is similar padding issue for ai_addrlen of struct addrinfo.
However, it is leaved as is for now.

Discussed on:	arch@, standards@ and current@
X-MFC after:	never
2005-06-03 03:32:06 +00:00
ume
2829864228 reduce cast.
MFC after:	1 week
2005-05-27 20:44:57 +00:00
stefanf
194c67c3c8 Fix long (and long long) to long double, unsigned to long double and unsigned
long (and unsigned long long) to long double conversions.
- Add a parameter that specifies the position of the sign bit to the _QP_TTOQ
  macro, previously it always looked at bit 31.  Pass a negative number to
  disable sign inspection for unsigned types.  This fixes _Qp_xtoq(),
  _Qp_uitoq() and _Qp_uxtoq().
- In the functions __fpu_itof() and __fpu_xtof(), look at the sign bit to
  decide whether we're doing a conversion from an unsigned type.  If so, don't
  negate the mantissa if the integer exceeds the biggest signed number.

PR:		55773
Patch by:	Stephen Paskaluk (based upon)
MFC after:	2 weeks
2005-05-27 10:00:22 +00:00
ume
1fe380f848 reduce strlen() call. 2005-05-20 15:39:20 +00:00
ume
b618326a09 use reentrant.h and simplify. 2005-05-20 15:17:08 +00:00
ume
cd2864eb2e check return value of ttyname_r(). 2005-05-20 14:59:20 +00:00
ume
e0c02ed147 ttyname_r() didn't pass correct buffer size to devname_r(). 2005-05-20 14:56:55 +00:00
ru
86758e8895 Make <runefile.h> internal to libc.
Suggested by:	phantom
2005-05-16 09:32:41 +00:00
ume
7a6cd620d0 - The ai_addrlen of a struct addrinfo used to be a size_t, per
RFC 2553.  In XNS5.2, and subsequently in POSIX-2001 and RFC
  3493, it was changed to a socklen_t.  And, the n_net of a
  struct netent used to be an unsigned long integer.  In XNS5,
  and subsequently in POSIX-2001, it was changed to an uint32_t.
  To accomodate for this while preserving ABI compatibility with
  the old interface, we need to prepend or append 32 bits of
  padding, depending on the (LP64) architecture's endianness.
- Correct 1st argument of getnetbyaddr() to uint32_t on 32
  bit arch.  Stay as is on 64 bit arch for ABI backward
  compatibility for now.

Reviewed by:	das, peter
MFC after:	2 weeks
2005-05-15 20:15:15 +00:00