Andrey A. Chernov
b9fb13f573
Cosmetic fixes to prev. commit.
...
Change first MAXPATHLEN to more standard PATH_MAX
Change second MAXPATHLEN to 1024 (it is temp buffer not related)
Change comment to reflect that.
Suggested by: bde
2005-09-15 17:25:52 +00:00
Andrey A. Chernov
dedaf3ca1f
Remove any hardcoded assumptions about malloc's way of allocating,
...
just use MAXPATHLEN. It prevents potential buffer overflow with other
malloc implementations.
(this change based on submitted patch)
PR: 86135
Submitted by: Trevor Blackwell <tlb@tlb.org>
2005-09-14 20:35:46 +00:00
Andrey A. Chernov
369316a848
Don't reuse *pl to skip [], it is already used for {} parts in the loop above
...
(submitted patch slightly modified)
PR: 86038
Submitted by: Gerd Rausch <gerd@juniper.net>
2005-09-14 19:14:32 +00:00
Stefan Farfeleder
613100918d
Include a couple of headers to ensure consistency between the prototype and
...
the function definition.
2005-09-12 19:52:42 +00:00
Stefan Farfeleder
a3b5200e71
- Add prototypes for __cmpdi2() and __ucmpdi2().
...
- Remove GCC 1 stuff.
2005-09-12 16:16:12 +00:00
Stefan Farfeleder
69053d669e
Use prototypes for CHIN1() and CHIN().
2005-09-12 16:02:54 +00:00
Stefan Farfeleder
2ba64027bc
Move the declaration of __cleanup to libc_private.h as it is used in both
...
stdio/ and stdlib/. Don't define __cleanup twice.
2005-09-12 13:46:32 +00:00
Stefan Farfeleder
f5365e2a65
Add a couple of missing MLINKS.
2005-09-11 20:59:52 +00:00
Stefan Farfeleder
4af29928b4
The arguments for time2posix() and posix2time() are time_t values, not
...
pointers.
2005-09-11 17:09:50 +00:00
Robert Watson
f0dc021549
Add mkfifo(2) to the man page SEE ALSO list for umask(2) -- it's
...
mentioned in the description.
MFC after: 2 days
2005-09-10 20:47:02 +00:00
Stefan Farfeleder
35a4bf1ce0
Add an MLINK for devname_r().
2005-09-10 14:09:37 +00:00
Stefan Farfeleder
442a7dde61
The header and the man page say that sethostid() returns void, so make the
...
definition match. Include <unistd.h>.
2005-09-10 13:54:42 +00:00
Stefan Farfeleder
16ca32b39f
Fix parameter types of close and get members in DB.
2005-09-10 12:40:51 +00:00
Tim J. Robbins
6595b51a7f
Remove references to nonexistent "FreeBSD Security Architecture" document.
2005-09-05 09:49:33 +00:00
Gary W. Swearingen
669fe42db9
Added a sentence to explain what "span" means.
...
PR: docs/84850
Submitted by: garys
MFC after: 3 days
Approved by: keramida
2005-08-29 20:41:58 +00:00
Gleb Smirnoff
83c83f3e46
- 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
2005-08-29 10:23:46 +00:00
Andre Oppermann
6050c8fe05
Add the function memmem(3) as found in glibc and others.
...
It is the binary equivalent to strstr(3).
void *memmem(const void *big, size_t big_len,
const void *little, size_t little_len);
Submitted by: Pascal Gloor <pascal.gloor at spale.com>
MFC after: 3 days
2005-08-25 18:26:58 +00:00
Stefan Farfeleder
d8f77b4529
Include <sys/types.h> and <limits.h> ourselves, don't assume they are included
...
through <pthread.h>.
gen/sem.c: Prerequisite for <_semaphore.h>
net/getprotoent.c: USHRT_MAX
net/getservent.c: USHRT_MAX
stdio/ungetwc.c: MB_LEN_MAX
stdio/vfwscanf.c: MB_LEN_MAX
2005-08-20 07:59:13 +00:00
Tim J. Robbins
1ee0dbee57
Fix a boundary condition error in slow() and fast() in multibyte locales:
...
we must allow the character beginning at "p" to be converted to a wide
character for the purposes of EOL processing and word-boundary matching.
2005-08-17 11:37:38 +00:00
Tim J. Robbins
0eac054729
Document the fact that word-boundary matching does not work
...
properly in multibyte locales.
2005-08-17 11:21:15 +00:00
Tim J. Robbins
d62e8d4c7c
Add an implementation of the semi-standard wcsdup() function, as found
...
on Microsoft and GNU systems.
2005-08-13 05:54:33 +00:00
Tim J. Robbins
0853006ff1
Change OUT from -2 to CHAR_MIN-1, making it impossible for it to
...
inadvertently match a negative char in the RE being compiled.
This fixes compilation of "\376" (as an ERE) and "\376\376" (as a BRE).
PR: 84740
MFC after: 1 week
2005-08-13 02:30:15 +00:00
Simon L. B. Nielsen
05fe2c1cb6
Add missing links from getgrent_r.3, getgrnam_r.3, and getgrgid_r.3 to
...
getgrent.3.
Submitted by: Ulf Lilleengen <lulf@kerneled.org>
MFC after: 3 days
2005-08-12 22:46:15 +00:00
Poul-Henning Kamp
3d86554c20
Respect the YES_HESIOD build variable.
2005-08-06 16:53:55 +00:00
Daniel Eischen
ed0b0abcf7
Make syslog() use the internal (non-cancellation point) _usleep().
...
Prior to this it was calling the cancellable usleep() while holding
a lock.
2005-08-03 00:45:58 +00:00
Daniel Eischen
8450917472
Make usleep() overridable by the thread libraries so they can provide
...
cancellation points.
Noticed by: phk
2005-08-03 00:44:25 +00:00
Daniel Eischen
78956f2474
Add namespace #defines for usleep.
2005-08-03 00:43:14 +00:00
Giorgos Keramidas
6fb9b618f5
Fix all the spelling mistakes I could find in the man pages for words
...
that have at least 3 characters.
MFC after: 1 week
Thanks to: Music band ``Chingon''
for keeping me company while searching for these.
2005-07-31 03:30:48 +00:00
Diomidis Spinellis
87a236caf5
Document the ECONNRESET errno value.
2005-07-29 07:42:10 +00:00
Hajimu UMEMOTO
5495564735
don't accept invalid form of an address like 1:2:3:4:5:6:7::8.
...
PR: bin/84106
Obtained from: BIND9
MFC after: 2 days
2005-07-27 14:33:36 +00:00
Matthew N. Dodd
50007d443b
Move initialization above point of first possible reference to
...
avoid overwriting ty_status values set from the 'type' field.
Previously TTY_DIALUP and TTY_NETWORK flags did not match
specified type.
2005-07-25 17:57:15 +00:00
Tim J. Robbins
d48c77b534
Speed up __wcsconv() (and hence the printf() %ls format):
...
- use wcsrtombs() instead of a wcrtomb() loop where possible.
- avoid wcrtomb() loop when output precision is small.
2005-07-24 12:12:44 +00:00
Pawel Jakub Dawidek
9975a9a287
Better translation.
2005-07-23 21:30:35 +00:00
Jonathan Chen
c5a096e0e0
fix innetgr() returning false positives and negatives when reverse netgroup
...
matching is used.
PR: 35506
MFC after: 3 days
2005-07-22 22:20:26 +00:00
Hajimu UMEMOTO
85a71a15c8
Remove padding for ABI compatibility of ai_addrlen member
...
from struct addrinfo. This change break ABI compatibility
on 64 bit arch.
2005-07-22 18:21:28 +00:00
Tim J. Robbins
d2a57b3026
Add HISTORY section.
2005-07-21 10:53:27 +00:00
Tim J. Robbins
9376b9d71a
Add cross-reference to nextwctype(3).
2005-07-21 10:32:17 +00:00
Tim J. Robbins
5a94ee1180
Add COMPATIBILITY and HISTORY sections. Fix typo.
2005-07-21 10:27:45 +00:00
Hajimu UMEMOTO
d84e21303c
refer RFC 3542 rather than RFC 2292bis.
...
Submitted by: Keiichi SHIMA <keiichi__at__iijlab.net>
Obtained from: KAME
2005-07-19 18:13:58 +00:00
Hajimu UMEMOTO
d5cbe1abb0
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
2005-07-19 18:09:44 +00:00
John-Mark Gurney
5ba593de9e
remove the supposed max of 2^31, it hasn't been this small in a very
...
long time... i.e. since this file was imported... (ufs1 supports much
larger files then this)...
Submitted by: Ivan Voras
MFC after: 1 week
2005-07-18 22:27:41 +00:00
Tim J. Robbins
a385e04b47
Remove confusing "single C char locales" phrase; arguments to these
...
functions and must now be either an unsigned char or EOF, regardless of
locale.
2005-07-17 04:11:06 +00:00
Tim J. Robbins
5b86168f54
Remove confusing "single C char locales" phrase; arguments to tolower()
...
and toupper() must now be either an unsigned char or EOF, regardless of
locale.
2005-07-17 03:37:00 +00:00
Jung-uk Kim
a0f887f4f3
Use better Korean translation for `trap'
...
Requested by: many Korean users from bsdforum.or.kr
Submitted by: perky
Approved by: anholt (mentor)
2005-07-16 05:40:14 +00:00
Maxim Sobolev
9c007cf29e
Document the fact that if MAP_FIXED request has been successful it
...
replaces any previous mapping to the same address.
Obtained from: IEEE Std 1003.1, 2004 Edition
2005-07-15 11:37:25 +00:00
Robert Watson
7a6d1e6f69
Cross-reference sem_getvalue(3) from several other semaphore-related
...
functions.
MFC after: 3 days
2005-07-13 13:15:22 +00:00
John Baldwin
bcd9e0dd20
- 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
Joe Marcus Clarke
a617a18a23
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
Xin LI
1c70a91b10
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
Hiten Pandya
a1601503f5
Use 'manual page' instead of 'man page' for consistency.
...
Approved by: re (hrs)
2005-06-30 13:18:15 +00:00