Bruce M Simpson
7b7b32179e
Document SO_ACCEPTCONN.
...
Submitted by: Vlad GALU (with changes)
MFC after: 3 days
2007-03-08 12:57:12 +00:00
Bruce M Simpson
9dba3fec85
Fix license. Clause 4 is still required (UCB materiel).
...
Submitted by: rwatson
Pointy hat to: bms
2007-03-07 13:38:11 +00:00
Bruce M Simpson
13f35fd9be
use 2-clause BSD license as per hoskins strike-off july 22 1999.
...
use wording of FreeBSD License.
2007-03-07 11:06:46 +00:00
John Baldwin
5e41bd2cd2
Only reject file descriptors higher than FD_SETSIZE if we are not using
...
poll(2) or kqueue(2). Previously we rejected fd's higher than FD_SETSIZE
for kevent(2), and larger than sysconf(_SC_OPEN_MAX) for poll(2). However,
the check for poll(2) wasn't really needed. open(2) and socket(2) won't
return an fd you can't pass to either poll(2) or kevent(2). This fixes
a but where gethostbyname() would fail if you had more than 1023 files
open in a process.
MFC after: 1 week
Reviewed by: ume
Found by: ps
2007-03-05 19:39:51 +00:00
Ruslan Ermilov
ff91121ada
Apply my patch properly.
2007-03-05 15:44:00 +00:00
Bruce M Simpson
693099c53f
Fix markup.
...
Submitted by: ru
MFC after: 2 days
2007-03-05 13:52:01 +00:00
Bruce M Simpson
491deb49c4
.Xr nit.
...
Submitted by: brueffer
2007-03-05 12:54:03 +00:00
Bruce M Simpson
4802040ebf
Update shutdown() manual page to reflect actual behaviour of code.
...
Add IMPLEMENTATION NOTES section explaining in detail the effect this
system call has in common use cases involving PF_INET and PF_INET6 sockets.
PR: kern/84761
MFC after: 2 days
2007-03-05 12:39:53 +00:00
Xin LI
2f1b6e8bb5
Test cases for back references.
...
Obtained from: OpenBSD
2007-03-05 09:44:41 +00:00
Xin LI
082063a051
Only stop evaluation of a back reference if the match length is
...
zero and the recursion level is too deep.
Obtained from: OpenBSD
2007-03-05 09:43:55 +00:00
Xin LI
0f4481c5e4
Avoid infinite recursion on:
...
echo "foo foo bar bar bar baz" | sed 's/\([^ ]*\)\( *\1\)*/\1/g'
Obtained from: OpenBSD via NetBSD (rev. 1.18)
2007-03-05 03:07:36 +00:00
Simon L. B. Nielsen
3dd425f70b
Disable RPC exponential back-off for FreeBSD.org systems (IE. hidden
...
behind _FREEFALL_CONFIG). This is done mainly to make NIS even more
resistant to packet loss.
This is not enabled by default for "normal" FreeBSD since it might cause
the server providing the RPC service to be hit heavily with RPC traffic
in case of problems. freefall.FreeBSD.org and hub.FreeBSD.org have been
running with a patch similar to this for a couple of weeks.
MFC after: 1 week
Discussed with: peter
2007-03-04 12:25:03 +00:00
Simon L. B. Nielsen
2861f68d48
- Bump _yplib_timeout limit from 10 to 20 seconds to better handle
...
packet loss when talking to a NIS server.
- Set 1 second retry timeout to further realistically handle UDP
packet loss for yp_next packet bursts. If the packet hasn't come
back within 1 second its rather unlikely to come back at all. There
is still back-off mechanism in RPC so if there is another reason
than packet loss for the lack of response within 1 second, the NIS
server will not be totally bombarded with requests.
This reduces the risk of NIS failing with:
yp_next: clnt_call: RPC: Timed out
considerably. This is mainly a problem if you have larger NIS maps
(like at FreeBSD.org) since enumerations of the lists will cause a UDP
packet bursts where a few packets being lost once in a while do
happen.
MFC after: 1 week
Discussed with: peter
Problem mainly diagnosed by: peter
2007-03-04 10:30:43 +00:00
Bruce M Simpson
160a2e5504
Document the AF_LINK extension which was imported from NetBSD.
2007-02-28 21:28:33 +00:00
Bruce M Simpson
67228c4621
Nuke ascii2addr() and addr2ascii(). They have no consumers anywhere
...
in FreeBSD, and originated from INRIA IPv6.
Stub out netstat reference to addr2ascii() I mistakenly introduced.
Update misleading man page sections.
Merge NetBSD's getnameinfo() AF_LINK extensions for a portable way to
print link-layer addresses given a sockaddr_dl(), minus the IEEE 1394
bits which don't map directly to our code.
Obtained from: NetBSD (getnameinfo.c)
Discussed on: current (March 2006)
2007-02-28 21:18:38 +00:00
Randall Stewart
7c3768006d
Fix include declaration it was sys/sctp.h should be netinet/sctp.h,
...
reported by pluknet@gmail.com .
2007-02-26 12:23:32 +00:00
Tim Kientzle
4813511138
Move _posix1e_acl_name_to_id out of acl_support.c and into
...
acl_from_text.c. Since acl_from_text.c is the only place it
is used, we can now make this internal utility function "static."
As a bonus, acl_set_fd() no longer pulls in getpwuid() for no reason.
MFC after: 7 days
2007-02-26 02:07:02 +00:00
Tim Kientzle
0031cdf4d7
Don't assert() the TLS allocation requested is big enough; just
...
fix the argument.
In particular, this is a step towards breaking crt1's dependence on stdio.
2007-02-25 21:23:50 +00:00
Jason Evans
a326064e24
Modify chunk_alloc() to prefer mmap()ed memory over sbrk()ed memory.
...
This has no impact unless USE_BRK is defined (32-bit platforms), in
which case user allocations are allocated via mmap() if at all possible,
in order to avoid the possibility of unreclaimable chunks in the data
segment.
Fix an obscure bug in base_alloc() that could have allowed undefined
behavior if an application were to use sbrk() in conjunction with a
USE_BRK-enabled malloc.
2007-02-22 19:10:30 +00:00
Randall Stewart
2cbcccc774
Fixes build breakage.. invalid type casts.. and invalid
...
type for size in one place.
2007-02-22 14:48:12 +00:00
Randall Stewart
d8b5fd91b9
First cut of the sctp man pages. Still need work.
2007-02-22 14:32:39 +00:00
Randall Stewart
2c0d559d1e
Fixes __FreeBSD__ being present (they should not)
...
and also trailing garbage on undef of magic numbers.
2007-02-22 13:39:57 +00:00
Randall Stewart
804cf64147
Adds a performance improvement for when sctp_sendx is
...
called with only one address, we then can call the
generic system call. Also fixes some socket api
type issues and cleans up the "magic" numbers that
were being used in the code.
Reviewed by: gnn
2007-02-22 12:42:43 +00:00
Tom Rhodes
13d8c69070
Fix mis-reference of incorrect manual page in ERRORS section.
...
Noticed by: Harlan Stenn <stenn@ntp.isc.org>
2007-02-17 01:54:00 +00:00
Christian Brueffer
db47cc8851
New sentence -> new line. While here, fix apostrophe abuse.
2007-02-14 07:38:39 +00:00
Julian Elischer
973884f038
Change the date.
2007-02-13 23:06:39 +00:00
Julian Elischer
d712ee4985
Make the kse man page reflect the removal of the KSEGRP kernel abstraction.
2007-02-13 23:02:15 +00:00
Maxim Konovalov
af48594d13
o s/cgetseq/cgetset/
...
Obtained from: DragonFly
2007-02-11 18:14:49 +00:00
Mike Pritchard
cbd21da6b2
Docment the acceptable values for the id parameter.
2007-02-01 02:31:02 +00:00
Jason Evans
38cc6e0a82
Fix a utrace(2)-related bug in calloc(3).
...
Integrate various pedantic cleanups.
Submitted by: Andrew Doran <ad@netbsd.org>
2007-01-31 22:54:19 +00:00
Peter Wemm
1fc6f17a31
Remove getobjformat() from libc's symbol map. It probably should have been
...
in the private area anyway. Nothing in FreeBSD uses it any more anyway.
2007-01-25 22:36:36 +00:00
Peter Wemm
cddf85e01e
Retire more remnants of a.out support, as threatened in 2002.
...
Laughed-at-by: kris
2007-01-25 22:25:59 +00:00
Bruce M Simpson
50c317ac7c
Docuemnt exactly which functions access which NSS databases.
...
Point out that FreeBSD libc has compat stubs for GNU glibc NSS
modules which access NSDB_PASSWD/NSDB_GROUP, but not NSDB_HOSTS;
based on painful experience porting nss_mdns.
Reviewed by: ru
2007-01-22 11:45:25 +00:00
Maxim Konovalov
ba5b74d001
o Remove duplicate includes.
...
Obtained from: Slava Semushin via NetBSD
2007-01-20 08:24:02 +00:00
Warner Losh
9685457382
On FreeBSD/arm, any value > 50 bits will result in a rediculously huge
...
number being returned for mktime and timegm calls. Choose 48 because
that works well. This does reduce the dynamic range of tm_year from
about 2 billion years down to "only" about 9 million years. Please
contact me if this restriction poses a problem.
Due to the complexity of the code, I admit that I didn't trace down
what, exactly, was overflowing with longer bits. This fixes software
that we run on the embedded systems we have.
2007-01-19 01:16:35 +00:00
Pawel Jakub Dawidek
e9f0620b9f
When we try to set set-gid bit with chmod(2) on a file, which we own, but our
...
effective group ID (and any of our group) doesn't match the group ID of the
file, we get EPERM. This doesn't conform POSIX. POSIX requires that we should
return 0, but silently clear the set-gid bit.
2007-01-16 15:17:27 +00:00
Warner Losh
7dcf45c07b
Remove 3rd clause, renumber, ok per email
2007-01-12 07:31:30 +00:00
Maxim Konovalov
eb15e82311
o Document SO_TIMESTAMP and SO_BINSTAMP socket options.
...
PR: docs/107696
Submitted by: Rob Robertson
Reviewed by: ru
Obtained from: NetBSD (mostly)
MFC after: 1 week
2007-01-11 18:45:41 +00:00
Warner Losh
3110d6efa2
Remove silly n that crept in
2007-01-09 00:38:24 +00:00
Warner Losh
c879ae3536
Per Regents of the University of Calfornia letter, remove advertising
...
clause.
# If I've done so improperly on a file, please let me know.
2007-01-09 00:28:16 +00:00
Pawel Jakub Dawidek
155d1456f5
Be more specific in ENXIO description:
...
- O_NONBLOCK flag has to be set, if it is not set, open(2) will wait for
another process opening the fifo for reading,
- Use O_WRONLY which implies that the file has to be opened _only_ for write.
2007-01-07 23:06:53 +00:00
Pawel Jakub Dawidek
bc87da10b6
open(2) returns EROFS when O_CREAT is specified and the named file would
...
reside on a read-only file system.
2007-01-07 23:01:32 +00:00
Pawel Jakub Dawidek
5a05b91821
- POSIX mentions that EACCES can be returned when O_TRUNC is specified
...
separately. Do the same.
- Document when EPERM can be returned.
2007-01-07 17:55:19 +00:00
Pawel Jakub Dawidek
6a8780971a
Prefer "to be modified" over "to be opened for writing".
...
This is quite tricky situation, because we allow to open a file with
O_RDONLY|O_TRUNC. O_TRUNC modifies a file, but we actually don't open
it for writing. EISDIR is also returned when we try to open a directory
O_RDONLY|O_TRUNC, which is correct.
POSIX says that "The result of using O_TRUNC with O_RDONLY is undefined.",
we choose to accept it (Solaris did the same), that's why "to be modified"
seems more accurate to me.
2007-01-07 17:32:16 +00:00
David Schultz
58d6b4605f
Handle inf/nan correctly.
2007-01-06 21:50:04 +00:00
David Schultz
266cb5ad57
The distinction between quiet and signaling NaN formats is
...
machine-dependent; these files tell the latest version of gdtoa
what to do.
2007-01-03 05:00:03 +00:00
David Schultz
ac9913a749
Fix rounding of 0xf for hex fp formats.
...
PR: 90333
2007-01-03 04:57:58 +00:00
Simon L. B. Nielsen
d076b71719
Bump modification date for last update.
2006-12-28 17:15:21 +00:00
Simon L. B. Nielsen
42d5d7751a
Catch up struct cmsghdr and struct msghdr in the manual page with the
...
actual structures in socket.h (which were updated 7 years ago).
MFC after: 1 week
2006-12-28 17:10:23 +00:00
Marius Strobl
63067c1af8
Fix a typo in __fpu_ftox() that caused long double to long (and long long)
...
conversion of negative numbers to always result in -1.
While at it, rearrange the nearby comment so it fits in 80 chars per line,
like the rest of this file does.
PR: 107130
MFC after: 1 day
2006-12-24 22:24:39 +00:00
Jason Evans
ee0ab7cd86
Implement chunk allocation/deallocation hysteresis by caching one spare
...
chunk per arena, rather than immediately deallocating all unused chunks.
This fixes a potential performance issue when allocating/deallocating
an object of size (4kB..1MB] in a loop.
Reported by: davidxu
2006-12-23 00:18:51 +00:00
John-Mark Gurney
87a1c270c6
add a missing the...
...
MFC after: 3 days
2006-12-19 20:20:39 +00:00
Craig Rodrigues
066f54d831
Consistently use a socklen_t type where required, and eliminate
...
GCC warning "dereferencing type-punned pointer will
break strict-aliasing rules".
Reviewed by: rrs
2006-12-16 06:03:43 +00:00
Hajimu UMEMOTO
2cd19db26a
Merge BIND9 9.3.3 into main chunk.
...
Obtained from: ISC
MFC after: 1 week
2006-12-15 20:59:55 +00:00
Hajimu UMEMOTO
3f25740ec6
Vendor import of BIND 9.3.3
2006-12-15 20:49:44 +00:00
Hajimu UMEMOTO
994f330564
This commit was generated by cvs2svn to compensate for changes in r165254,
...
which included commits to RCS files with non-trunk default branches.
2006-12-15 20:49:44 +00:00
Pawel Jakub Dawidek
b613495e3c
chflags(2) returns EPERM when user tries to set or remove the SF_SNAPSHOT flag.
2006-12-15 19:23:27 +00:00
Randall Stewart
d6dda9b282
This adds the "system calls"
...
sctp_getaddrlen()
sctp_connectx()
sctp_bindx()
sctp_opt_info()
sctp_getpaddrs()
sctp_freepaddrs()
sctp_getladdrs()
sctp_freeladdrs()
sctp_sendmsg()
sctp_getassocid()
sctp_send()
sctp_sendx()
sctp_sendmsgx()
sctp_recvmsg()
sctp_peeloff()
Manual pages will be forthcoming (and the commit to porters-handbook)
2006-12-15 12:01:50 +00:00
Warner Losh
a7e88f95bd
band-aide until _SC_PHYS_PAGES actually is defined
2006-12-14 22:14:14 +00:00
Pawel Jakub Dawidek
93a8a97ce9
Add support for _SC_PHYS_PAGES, which is not standard, but can be found in
...
Solaris and Linux.
2006-12-14 14:32:59 +00:00
Pawel Jakub Dawidek
e5d6d64110
Document _SC_PAGESIZE. There are still 85 undocumented variables.
...
Obtained from: NetBSD
2006-12-14 14:27:15 +00:00
Pawel Jakub Dawidek
0b0bc2bb7c
- truncate(2) returns EFBIG if the length argument was greater than the
...
maximum file size.
- truncate(2) returns EINVAL if the length argument was less than 0.
2006-12-13 22:51:23 +00:00
Pawel Jakub Dawidek
10873dafaf
Append-only flag also denies chown(2).
2006-12-13 22:17:58 +00:00
Pawel Jakub Dawidek
a4319b6585
Much more correct EFTYPE description.
2006-12-13 13:46:01 +00:00
Pawel Jakub Dawidek
9b76b9d9b7
Better wording.
2006-12-13 13:26:32 +00:00
Pawel Jakub Dawidek
3bb2bdaef6
Append-only flag also denies chmod(2). Is this correct behaviour?
2006-12-13 13:22:57 +00:00
Pawel Jakub Dawidek
0b149517f3
Be more precise with EPERM description. When chown(2) is a no-op, it will
...
return 0.
2006-12-13 11:46:38 +00:00
Pawel Jakub Dawidek
e4c1f0293f
Write permission if of course only needed for the parent directory of
...
the object beeing created.
Pointed out by: bde
2006-12-13 11:26:03 +00:00
Pawel Jakub Dawidek
e67ec1d4a1
mkfifo(2) returns EACCES when write permission is denied for a component of
...
the path prefix.
2006-12-13 09:58:49 +00:00
Pawel Jakub Dawidek
1619e03af7
Be more specific when ELOOP can be returned.
2006-12-12 20:06:52 +00:00
Pawel Jakub Dawidek
a2b7d92ad6
symlink(2) return EACCES if a component of the name2 path prefix denies
...
write permission.
2006-12-12 20:05:04 +00:00
Pawel Jakub Dawidek
554bc5f287
Correct ENOENT description.
2006-12-12 19:57:17 +00:00
Pawel Jakub Dawidek
b8f5525f70
The 'name1' argument to symlink(2) is only limited to 1023 characters,
...
its components are not checked.
2006-12-12 19:48:15 +00:00
Pawel Jakub Dawidek
1212ac8123
mkdir(2) creates directory, not file.
2006-12-12 15:00:08 +00:00
Julian Elischer
558c08c358
Remove reference to confusing behaviour just removed from
...
the kse_exit() syscall. Describe the correct behaviour.
2006-12-12 08:13:02 +00:00
Pawel Jakub Dawidek
ba4b9e0121
When directory is given as an argument for unlink(2), EPERM is returned
...
not matter if this is regular directory or a mount point.
2006-12-10 13:04:36 +00:00
Pawel Jakub Dawidek
e799094d84
If the named file has its immutable or append-only flag set, utimes(2)
...
returns EPERM.
2006-12-09 23:13:05 +00:00
Pawel Jakub Dawidek
b10ec4d0dc
If the parent directory of the named file has its immutable flag set,
...
mkfifo(2) returns EPERM.
2006-12-09 23:06:01 +00:00
Pawel Jakub Dawidek
2f51879266
If the parent directory of the destination file has its immutable flag set,
...
symlink(2) returns EPERM.
2006-12-09 23:01:38 +00:00
Pawel Jakub Dawidek
46db118b7e
- If the source file has its immutable or append-only flag set, link(2)
...
returns EPERM.
- If the parent directory of the destination file has its immutable flag set,
link(2) returns EPERM.
2006-12-09 22:56:40 +00:00
Pawel Jakub Dawidek
9becb00c0a
If the named file has its immutable or append-only flag set, truncate(2)
...
and ftruncate(2) return EPERM.
Note, that if the append-only flag is set even increasing size of the file
is not permitted.
2006-12-09 22:49:28 +00:00
Pawel Jakub Dawidek
442cc490fd
If the named file has its immutable flag set, chown(2) returns EPERM.
2006-12-09 22:41:26 +00:00
Pawel Jakub Dawidek
54ec563e0d
If the named file has its immutable flag set, chmod(2) returns EPERM.
2006-12-09 22:41:01 +00:00
Pawel Jakub Dawidek
4e3f043c22
Add reference to chflags(2).
2006-12-09 22:39:28 +00:00
Pawel Jakub Dawidek
93dbfff0f9
If the parent directory of the named file has its immutable flag set,
...
mkdir(2) returns EPERM.
2006-12-09 22:35:55 +00:00
Pawel Jakub Dawidek
3e6f3ff080
- If the directory to be removed has its immutable, undeletable or append-only
...
flag set, rmdir(2) returns EPERM.
- If the parent directory of the directory to be removed has its immutable or
append-only flag set, rmdir(2) returns EPERM.
2006-12-09 19:44:38 +00:00
Pawel Jakub Dawidek
b7715d3d86
- If the parent directory of the file pointed at by the from argument has its
...
immutable or append-only flag set, rename(2) returns EPERM.
- If the parent directory of the file pointed at by the to argument has its
immutable flag set, rename(2) returns EPERM.
2006-12-09 19:42:58 +00:00
Pawel Jakub Dawidek
483a0e04d8
Correct last commit. The parent directory of the file to be removed can
...
have undeletable flag set.
2006-12-09 19:40:24 +00:00
Pawel Jakub Dawidek
d1eb7b96e7
When immutable, undeletable or append-only flag is set, rename(2)
...
return EPERM.
2006-12-09 19:19:46 +00:00
Pawel Jakub Dawidek
858e6c9cbd
When undeletable flag is set, unlink(2) return EPERM.
2006-12-09 19:18:39 +00:00
Ruslan Ermilov
a82e937c0b
Grammar.
...
OK'ed by: sam
2006-12-04 20:34:25 +00:00
Sam Leffler
78e3a7fdd5
document recent change to return ECONNRESET for tcp sockets
...
MFC after: 1 month
2006-12-04 18:39:11 +00:00
Hajimu UMEMOTO
909e7467d8
Use _kevent() instead of kevent().
...
Requested by: nork
2006-12-04 17:08:43 +00:00
Diomidis Spinellis
aeecffebe5
Minor clarification.
2006-12-03 19:26:17 +00:00
Maxim Konovalov
88ce725781
o As POSIX requires confstr(3) returns zero on errors, not -1.
...
PR: misc/106234
Submitted by: Guy Harris
MFC after: 1 week
2006-12-03 08:22:36 +00:00
Yaroslav Tykhiy
df19774d2f
Note that, thanks to the work by Alan Cox et al, some arch'es
...
don't need sendfile() buffers any more.
The report on the work referenced can be found at
http://usenix.org/events/usenix05/tech/general/elmeleegy.html
MFC after: 1 week
2006-11-24 11:44:19 +00:00
John Baldwin
8cc7b0f93d
Document that the data field for NOTE_EXIT holds the process exit status.
...
Submitted by: Jared Yanovich -phirerunner at comcast.net-
MFC after: 2 weeks
2006-11-20 22:20:04 +00:00
Tom Rhodes
c74824fe88
Add an entry for PT_GETLWPLIST.
...
Nudged by: jhb
Reviewed by: davidxu
2006-11-09 11:27:18 +00:00
Olivier Houchard
c0b6c4a212
Cleanup: we always have to use __error() now, and we shouldn't provide a
...
errno symbol, so completely remove the !_REENTRANT case.
Spotted out by: ru
2006-11-09 01:28:16 +00:00
Ruslan Ermilov
7c11ac3da0
Remove a forgotten file.
2006-11-08 21:29:20 +00:00
Olivier Houchard
05b432d2d1
Instead of re-implementing hton[ls] and friends for each arch, add a new MI
...
file, net/ntoh.c, which just implement them using the inline functions from
<sys/endian.h>.
Suggested by: bde
2006-11-06 22:07:47 +00:00
Olivier Houchard
9cef667a1a
Provide definitions suitable for arm big-endian.
2006-11-06 20:49:23 +00:00
Robert Watson
21f62f0771
Remove sys/uio.h include -- this is no longer required by the extattr
...
system call API.
MFC after: 3 weeks
2006-11-06 15:12:43 +00:00
Sam Lawrance
6b0a380f6d
Document return values for res_query and res_search.
...
h_errno is not an extern int, just a macro providing an integer lvalue.
PR: doc/50573
Submitted by: Ronald F.Guilmette <rfg@monkeys.com>
Reviewed by: trhodes
MFC after: 3 days
2006-11-04 09:42:22 +00:00
Daniel Gerzo
137e54d3db
- clock_gettime is in time.h instead of sys/time.h
...
Approved by: trhodes (mentor), keramida (mentor)
PR: docs/104707
MFC-after: 3 days
2006-11-04 09:35:36 +00:00
Kip Macy
7b5cdd4faf
- change ABI for user trap handler for sun4v (eventually will sync sparc64 no
...
hardware set up to test at the moment)
Approved by: scottl (standing in for mentor rwatson)
2006-11-03 23:43:18 +00:00
Ruslan Ermilov
f19110addc
Replace the SEE ALSO xrefs with a more reasonable set stolen from POSIX.
2006-11-02 14:10:56 +00:00
Pawel Jakub Dawidek
a722f8df9e
Document MNT_GJOURNAL option.
2006-11-01 23:40:44 +00:00
Bruce Evans
81f2acfc06
Backed out rev.1.10 (a special case for amd64). The amd64 mcount code
...
never needed any frame pointers for itself.
2006-10-28 13:34:35 +00:00
Ruslan Ermilov
0f0eddbb01
Add missing markup bits.
...
Submitted by: Emil Mikulic
2006-10-28 13:05:10 +00:00
Hajimu UMEMOTO
b021e5e1ed
Merge res_send.c of BIND9 9.3.3rc2 into main chunk. It includes
...
following fix:
Retransmission timeouts should be based on which attempt
it is to the nameserver and not the nameserver itself.
Obtained from: ISC
MFC after: 3 days
2006-10-24 14:41:43 +00:00
Hajimu UMEMOTO
7c35eabcb2
Import of BIND 9.3.3rc2
2006-10-24 14:25:49 +00:00
Konstantin Belousov
525cd732f9
Revert the rev. 1.4, it causes breakage on most arches except i386.
...
Remove the const qualifier from ap argument for __v2printf, that induced
that breakage, and seems to be the real reason for bad code. ap is modified
inside the __v2printf body by va_arg macro.
Pointy hat to: kib
Approved by: pjd (mentor)
2006-10-23 07:25:25 +00:00
Simon L. B. Nielsen
27111d392c
Minor markup fix: A comma should be seperated by space from macro
...
argument. This resulted in "pwritev,()" instead of the intended
"pwritev()," in the output.
MFC after: 3 days
2006-10-21 20:36:50 +00:00
Ruslan Ermilov
2aeccd6ea7
Avoid a potential hard sentence break.
2006-10-21 18:03:53 +00:00
Konstantin Belousov
129ccff2fb
Workaround for (what seems to be) compiler error for gcc 3.4.6. On
...
i386 with default optimization level (-O2), va_list pointer ap in the
__v2printf function is advanced before the use. That cause argument
shift and garbage instead last argument in printf-family when xprintf is
activated.
The nsswitch is easy victim of the bug.
Reviewed by: kan
Approved by: kan (mentor)
MFC after: 1 week
2006-10-21 11:49:07 +00:00
Andrey A. Chernov
b0bf75c83c
file == NULL:
...
Issue __sflush() before possible setting O_APPEND mode or ftruncate(),
write to wrong place may occurse oserwise.
Use simplified _sseek() to the start, if no O_APPEND is set, instead
of _fseeko() (_sseek() to the end, if O_APPEND, occurse later, as for
file != NULL).
Don't check seek error return, as original fopen() and freopen() never
does.
file != NULL:
Add missing _sseek() to the end.
2006-10-16 14:31:56 +00:00
Andrey A. Chernov
5a8d08f52b
Honor errno obtained from __sflags
...
Move errno restoring after FUNLOCKFILE in one case
2006-10-16 09:57:15 +00:00
Andrey A. Chernov
6f8d08b39a
Back out ftruncate error handling. There can some file tipes
...
f.e. sockets when ftruncate normally fail.
2006-10-16 09:39:15 +00:00
Andrey A. Chernov
b48be86ce1
Do real seek
...
Catch ftruncate errors
PR: 104295
Submitted by: ru (seek)
2006-10-15 16:24:31 +00:00
Ruslan Ermilov
08e9f8c84f
Forgot to bump the document date.
2006-10-13 20:34:44 +00:00
Ruslan Ermilov
531ba7c084
Some word smithing adopted from the PR.
...
PR: docs/54451
Originally by: Andreas Fuchs
Adopted by: jhb
MFC after: 3 days
2006-10-13 20:28:58 +00:00
Ruslan Ermilov
9a29fb3baf
Add missing comma.
2006-10-13 16:11:12 +00:00
Ruslan Ermilov
b13b4f6ffd
Use normal parentheses.
...
PR: docs/84549
Submitted by: Gary W. Swearingen
MFC after: 3 days
2006-10-12 20:50:26 +00:00
Ruslan Ermilov
948ec60d36
Don't say "rightmost" when referring to the least significant bit.
...
PR: docs/94803
MFC after: 3 days
2006-10-12 15:08:41 +00:00
Ruslan Ermilov
e965ede2b5
More accurately document the implementation details of internal storage.
...
PR: docs/82508
2006-10-12 14:31:17 +00:00
Ruslan Ermilov
17cba6de53
Link select(2) to FD_CLR(3), FD_ISSET(3), FD_SET(3), and FD_ZERO(3).
...
PR: docs/57974
MFC after: 3 days
2006-10-12 13:46:33 +00:00
Ruslan Ermilov
942bfcd744
Document S_IRWXU and permission bits for group/other.
...
PR: docs/57153
MFC after: 3 days
2006-10-12 13:35:07 +00:00
Ruslan Ermilov
09bd310c91
Document what "msgsz" argument really denotes. [1]
...
Don't say that "msgsz" can be less than 0, it cannot
as it's unsigned (POSIX has the same bug).
PR: docs/101145 [1]
MFC after: 3 days
2006-10-12 11:42:41 +00:00
Tom Rhodes
79d9a182ab
Note that the value from getenv() should not be modified by applications.
...
PR: 60544
Reviewed by: ru
2006-10-12 08:39:24 +00:00
Kip Macy
5fe4c0e842
fix bus error in newsyslog by making sure that fields in struct fpemu
...
that are accessed as 8 byte quantities are 8 byte aligned
2006-10-12 04:38:41 +00:00
Maxim Konovalov
1be947e9f8
o Follow the trend and try to explain what the slow device is.
...
Not ideal but better than nothing.
Obtained from: OpenBSD, NetBSD
2006-10-11 13:33:02 +00:00
Maxim Konovalov
5c35171af3
o From kern_prot.c::p_cansignal():
...
UNIX signalling semantics require that processes in the same
session always be able to deliver SIGCONT to one another,
overriding the remaining protections.
Fix SIGCONT special case description similar to rev. 1.22 kill.2.
PR: docs/58710
Submitted by: Ryan Younce
MFC after: 2 weeks
2006-10-10 11:37:41 +00:00
Kip Macy
b84c7a797c
Fix TLS on sparc64 for statically and dynamically linked binaries
...
Approved by: rwatson (mentor)
Reviewed by: jmg and marcel
2006-10-08 02:50:34 +00:00
Tom Rhodes
0b0ea94893
getenv.3: Put "is" on a line with other words
...
getobjformat.3: "takes precedence over" is not an envrionment variable.
PR: 75545
Submitted by: n-kogane@syd.odn.ne.jp
MFC after: 3 days
2006-10-07 21:27:21 +00:00
Tom Rhodes
dfe25dc456
Reword previous delta a little bit.
...
Submitted by: ru
2006-10-07 10:49:20 +00:00
Tom Rhodes
1ae5dc92c0
Fix ambiguity in description. Note that the aio_return() system call should
...
only be called once after failure or completion of an AIO request. Bump doc
date while I'm here.
Noticed by: Samy Al Bahra
2006-10-07 05:34:51 +00:00
Tom Rhodes
ef5566e8fc
Add missing word "returns."
...
Noticed by: Samy Al Bahra
2006-10-07 05:13:32 +00:00
Andrey A. Chernov
f68412f927
Automatically re-stir every 400000 calls
...
Obtained from: OpenBSD
2006-10-04 01:17:23 +00:00
Ruslan Ermilov
ad136d1e29
Revise markup in recently added manpages.
2006-09-30 10:34:13 +00:00
Ruslan Ermilov
bb4b8a9dd4
Fix markup, language, function prototype, and example code.
2006-09-30 10:24:00 +00:00
Ruslan Ermilov
64437d397b
Markup nit.
2006-09-29 22:57:22 +00:00
Vasil Dimov
23883885a3
Fix typo
...
PR: docs/103666
Submitted by: vd
Approved by: maxim
2006-09-26 09:47:46 +00:00
Andrey A. Chernov
d3ff3b5f2f
Keep compatible parts in sync with OpenBSD v1.21, add some comments.
...
No functional changes.
2006-09-23 14:48:31 +00:00
Andrey A. Chernov
6843acf8ac
Remove code #ifndef'ed in prev. commit to stay in sync with OpenBSD
...
v1.21 which just do that.
2006-09-22 18:59:03 +00:00
Andrey A. Chernov
f27c7b4713
Be more GNU compatible:
...
don't be greedy on the GNU "::" extension when arg separated by whitespace
and POSIX_CORRECTLY is set. From POSIX point of view this is unclear
situation, so minimal assumption looks right.
2006-09-22 17:01:38 +00:00
Alexander Kabaev
714b79b953
Do not declare __evOptMonoTime static in one place and extern
...
in another. GCC4 does not like that.
2006-09-22 01:52:26 +00:00
Alexander Kabaev
500b77c7ed
Use correct type in va_arg argument.
2006-09-21 14:40:20 +00:00
David Xu
d31279c4e7
remove thr_getscheduler, thr_setscheduler, thr_setschedparam,
...
add rtprio_thread.
2006-09-21 04:22:46 +00:00
Maxim Konovalov
0ba6effc8c
o Don't fseek() on closed file.
...
Submitted by: pgollucci@p6m7g8.com , Mark Costlow
MFC after: 3 weeks
2006-09-18 09:34:48 +00:00