Andrey A. Chernov
598bb4cb30
Add originally missing __sinit() call.
2001-08-31 20:36:19 +00:00
Andrey A. Chernov
c4b2cc78e3
Simplify offset underflow checks even more
2001-08-31 20:17:32 +00:00
Andrey A. Chernov
711b11769d
Describe that we disallow ungetc at offset 0 now.
2001-08-31 20:03:49 +00:00
Andrey A. Chernov
4db40fd143
Disallow ungetc at offset 0 (to prevent negative offset happens), so simplify
...
checks in ftell.
2001-08-31 19:50:25 +00:00
Andrey A. Chernov
7cf30ace84
Drop buffer first, _then_ ask for real position
2001-08-31 18:54:44 +00:00
Andrey A. Chernov
2ff678f5bb
The same big piece of ftell code repeated in 3 places. Simplify things moving
...
it into one subfunction instead.
Try to use real offset in strange cases.
2001-08-31 18:23:29 +00:00
Andrey A. Chernov
ee75810413
If file offset is smaller than internal buffer character left count, just drop
...
internal buffer and trust offset, not return error.
2001-08-31 14:11:14 +00:00
Andrey A. Chernov
1dfa423639
Initialize _offset to 0 in fopen(), it helps to optimize fseek/ftell
2001-08-31 13:14:49 +00:00
Andrey A. Chernov
ca934ebcae
Detect fp->_offset overflow on read
...
Use errno to catch negative seek with -1 offset
2001-08-31 12:55:22 +00:00
Ruslan Ermilov
81a3cb97a5
Add manpage for inet_net_ntop(3) and inet_net_pton(3).
...
Obtained from: NetBSD
2001-08-31 10:54:44 +00:00
Ruslan Ermilov
d6002fef6f
Use ``.Rv -std'' wherever possible.
...
Submitted by: yar
2001-08-31 09:57:38 +00:00
Robert Watson
ab2ba9fac8
o Use .Fx to refer to FreeBSD
...
Submitted by: tmm
Obtained from: TrustedBSD Project
2001-08-31 02:12:54 +00:00
Robert Watson
cbc25559e4
o Remove definition of CAP_MAX_BUF_LEN since it is defined in
...
sys/capability.h now.
Submitted by: tmm
Obtained from: TrustedBSD Project
2001-08-31 02:11:59 +00:00
Robert Watson
7bb862d793
Introduce implementations of POSIX.1e non-portable form capability
...
support functions:
cap_subset_np() - Is cap1 a subset of cap2
cap_equal_np() - Is cap1 equal to cap2
o Introduce implementations of POSIX.1e capability support functions:
cap_copy_ext() - Externalize capability
cap_copy_int() - Internalize capability
cap_size() - Determine size required for cap_copy_ext()
Submitted by: tmm
Obtained from: TrustedBSD Project
2001-08-31 02:07:48 +00:00
Alexander Langer
a102b12e67
Add Xref to make.conf(5).
2001-08-30 21:44:46 +00:00
Andrey A. Chernov
57935eeb3d
Try to discard some ungetc data in saved internal buffer checks too,
...
if offset tends to be negative.
2001-08-30 20:49:47 +00:00
Andrey A. Chernov
77f71bc5ac
goto dumb; if can't obtain curoff for whence != SEEK_CUR cases, as supposed
2001-08-30 20:19:45 +00:00
Andrey A. Chernov
e54bc118c1
Add more EOVERFLOW checks.
...
When file offset tends to be negative due to internal and ungetc buffers
additions counted, try to discard some ungetc data first, then return EBADF.
Later one can happens if lseek(fileno(fd),...) called f.e. POSIX says that
ungetc beyond beginning of the file results are undefined, so we can just
discard some of ungetc data in that case.
Don't rely on gcc cast when checking for overflow, use OFF_MAX.
Cosmetique.
2001-08-30 19:54:04 +00:00
Mike Barcroft
03516cfeb0
o Remove some GCCisms in src/powerpc/include/endian.h.
...
o Unify <machine/endian.h>'s across all architectures.
o Make bswapXX() functions use a different spelling of u_int16_t and
friends to reduce namespace pollution. The bswapXX() functions
don't actually exist, but we'll probably import these at some
point. Atleast one driver (if_de) depends on bswapXX() for big
endian cases.
o Deprecate byteorder(3) prototypes from <sys/types.h>, these are
now prototyped indirectly in <arpa/inet.h>.
o Deprecate in_addr_t and in_port_t typedefs in <sys/types.h>, these
are now typedef'd in <arpa/inet.h>.
o Change byteorder(3) prototypes to use standards compliant uint32_t
(spelled __uint32_t to reduce namespace pollution).
o Document new preferred headers and standards compliance.
Discussed with: bde
PR: 29946
Reviewed by: bmilekic
2001-08-30 00:04:19 +00:00
Robert Watson
fca41b9c6f
o src/sys/capability.h provides a number of support macros that are not
...
documented by POSIX.1e, and understand the opaque capability structures.
Introduce support in the userland POSIX.1e library for a
_CAPABILITY_NEEDMACROS define to remove these macros from the normal
namespace, but allow the libc functions to use them.
Submitted by: tmm
Obtained from: TrustedBSD Project
2001-08-29 17:53:45 +00:00
Bruce Evans
1643f03d5f
Fixed namespace pollution related to `warn' in libc (but not in other
...
libraries or for other members of the err() family).
This fixes world breakage in bc and rcs/* for NOSHARED worlds.
2001-08-29 13:52:27 +00:00
Dima Dorfman
03c32490dd
There shuldn't be whitespace before a question mark.
2001-08-27 09:34:39 +00:00
Ruslan Ermilov
f0200e9cf1
mdoc(7) police: removed whitespace at EOL.
2001-08-27 08:37:35 +00:00
Ruslan Ermilov
ab1adff6a9
mdoc(7) police: markup and spelling fixes.
2001-08-27 08:26:57 +00:00
Ruslan Ermilov
0fa666e5e5
mdoc(7) police: removed whitespace at EOL, sorted SEE ALSO xrefs.
2001-08-27 08:12:37 +00:00
Maxim Sobolev
fee4285612
Remove grammatical bogon.
2001-08-27 08:00:15 +00:00
Andrey A. Chernov
b0eeb07b5b
Cosmetique fixes from bde
2001-08-26 10:38:29 +00:00
Robert Watson
4b7e521b26
o s/violate/override/ Capabilities are part of the system policy, not
...
an exception to it.
Submitted by: tmm
Obtained from: TrustedBSD Project
2001-08-25 14:37:01 +00:00
Matthew Dillon
5cb74fd363
Ok, third time is the charm. VM_INHERIT_XXX -> INHERIT_XX (use the same
...
semantics as PROT_XXX vs VM_PROT_XXX separating user-space defines from
kernel defines).
2001-08-24 19:45:59 +00:00
Matthew Dillon
5ccdd64f42
Oops, minherit() uses VM_INHERIT_XXX as the argument, not MAP_XXX. Properly
...
document minherit().
2001-08-24 19:43:45 +00:00
Matthew Dillon
dbad546ba7
Update the mmap.2 and minherit.2 manual pages. Add a short explanation and
...
referal from mmap to minherit for MAP_INHERIT. Fully document the
minherit.2 manual page (because frankly, my dear, however you think it
currently works is almost certainly wrong!). I may soon re-implement
MAP_COPY because I believe we can support it properly now, but I will have
to call it something else and that is for a later time.
2001-08-24 19:28:00 +00:00
Andrey A. Chernov
f0e093f298
Fd is macro too, so use \&Fd
2001-08-24 11:12:58 +00:00
Andrey A. Chernov
aa0b534660
Fildes -> Fd too (started from big letter)
2001-08-24 11:05:11 +00:00
Andrey A. Chernov
a5b1af6c71
Change
...
start means ...
to
.Fa l_start
means ...
2001-08-24 10:59:32 +00:00
Sheldon Hearn
56b38b7bc7
Fix up English from previous 3 revisions.
...
There is no such argument 'fildes' in the SYNOPSIS. It's called 'fd'.
2001-08-24 10:36:29 +00:00
Dima Dorfman
dae32f31ab
begin executed --> being executed
...
Obtained from: NetBSD
2001-08-24 00:18:37 +00:00
David Greenman
dfa902ee24
Killed reference to MAP_INHERIT which is not supported in FreeBSD.
2001-08-23 22:39:52 +00:00
Andrey A. Chernov
471b172744
Now we implement l_len<0 per POSIX, describe it.
2001-08-23 19:00:34 +00:00
Andrey A. Chernov
f0d5097e06
Cosmetique: correct English in comments
2001-08-23 14:49:02 +00:00
Andrey A. Chernov
bb0871a73f
Rephrasing prev. commit a bit.
2001-08-23 09:55:10 +00:00
Andrey A. Chernov
21c6d67fad
Describe EOVERFLOW, EOPNOTSUPP and reaction to negative l_len
2001-08-23 09:42:30 +00:00
Ruslan Ermilov
265c01df49
mdoc(7) police: Fixed broken xrefs.
2001-08-22 14:16:31 +00:00
Andrey A. Chernov
2d2857f480
Document new EINVAL, EOVERFLOW cases. Sort ERRORS
2001-08-21 21:44:48 +00:00
Dima Dorfman
2c0dd4d134
Use .In, .Ux, and .Rv where appropriate. Also consistently call this
...
a "function" instead of a "routine".
Submitted by: ru
2001-08-21 19:32:47 +00:00
Dima Dorfman
ccbe835258
Expand the ?: construct into an if/else.
...
Submitted by: nectar
2001-08-21 19:27:07 +00:00
Dima Dorfman
c9fa8f40fe
The setprogname() function sets the name of the program to be the last
...
component of the progname argument.
2001-08-21 18:49:58 +00:00
Dima Dorfman
f7bec57b78
Fix style bug.
2001-08-21 18:46:33 +00:00
Ruslan Ermilov
c45f3b47c8
Fixed warnings.
2001-08-21 17:28:39 +00:00
Jacques Vidrine
80578ef3c9
Pass the pointy hat, please.
...
Submitted by: ru
2001-08-21 17:16:32 +00:00
Jacques Vidrine
dbdb228cf7
setprogname() should set __progname to the last component of the given
...
path.
2001-08-21 16:55:34 +00:00
Kris Kennaway
6dac8ac9e5
Mark some functions as __printflike() and/or taking const char * arguments
...
instead of char *.
MFC after: 2 weeks
2001-08-20 12:53:36 +00:00
Brian Somers
3c321a686f
Handle snprintf() returning -1
...
MFC after: 2 weeks
2001-08-20 12:41:36 +00:00
Brian Somers
a53a9f6906
Handle snrintf() returning -1.
...
MFC after: 2 weeks
2001-08-20 12:31:13 +00:00
Andrey A. Chernov
c5981656ea
Add about rewind+errno, describe ESPIPE, minor formatting.
2001-08-19 08:24:50 +00:00
Dima Dorfman
e6063dd1a6
Implement getpeereid(3), a front-end to the LOCAL_PEERCRED
...
socket option for the Unix domain. It's weaker than the
socket option (this only returns the uid and gid, while the
socket opt. can return the entire group list), and is
implemented mostly for compatibility with OpenBSD.
2001-08-17 22:09:15 +00:00
Dima Dorfman
06a4bf789c
Xref raise(3).
2001-08-17 21:04:42 +00:00
Ruslan Ermilov
e822b43712
mdoc(7) police: collapse multiple spaces.
2001-08-17 15:25:55 +00:00
Ruslan Ermilov
e1aaa82284
mdoc(7) police: fixed the fatal.
2001-08-17 15:18:49 +00:00
Andrey A. Chernov
98aa5183a2
Simplify overflow calculations a bit
2001-08-17 11:08:56 +00:00
Andrey A. Chernov
4a9f1ee4e5
Remove extra check, already done in upper level caller, i.e. in
...
_fseeko()
2001-08-17 10:43:03 +00:00
Andrey A. Chernov
5fdaf178ae
Mention ftell & ftello in EOVERFLOW section too.
2001-08-17 10:29:09 +00:00
Andrey A. Chernov
b98ba4224b
Add more overflow checks in case of fseek()
2001-08-17 10:22:03 +00:00
Andrey A. Chernov
68ce9bfb10
Don't clear "we have offset" flag even if long is overflow for fseek(),
...
there is no harm to have it, it will reduce next call efforts.
2001-08-17 10:06:46 +00:00
Andrey A. Chernov
71b5a4326d
fseek.c:
...
Resulting fseek() offset must fit in long, required by POSIX (pointed by bde),
so add LONG_MAX and final tests for it.
rewind.c:
1) add missing __sinit() as in fseek() it pretends to be.
2) use clearerr_unlocked() since we already lock stream before _fseeko()
3) don't zero errno at the end, it explicitely required by POSIX as the
only one method to test rewind() error condition.
4) don't clearerr() if error happens in _fseeko()
2001-08-17 09:57:11 +00:00
Ruslan Ermilov
9916c5d299
mdoc(7) police: replace \*(Ba' with a simple
|', it's handled specially.
2001-08-16 11:09:00 +00:00
Joseph Koshy
2f46ebcdb7
If the string specifying the allowed options starts with a leading `:',
...
`getopt(3)' should not print a warning for missing argument values.
PR: bin/29625
Reviewed by: mikeh
MFC after: 1 week
2001-08-16 03:27:03 +00:00
Dima Dorfman
7bc6682520
Explain the relation of getchar() to getc() in less words.
...
Submitted by: ru
2001-08-16 03:09:33 +00:00
Andrey A. Chernov
74b2772824
Use smarter overflow tests
...
Suggested by: bde
2001-08-15 20:10:38 +00:00
Andrey A. Chernov
d9e3eff33a
1) Disallow negative seek as POSIX require for fseek{o} (but not for lseek):
...
"[EINVAL] ... The resulting file-position indicator would be set to a
negative value."
Moreover, in real life negative seek in stdio cause EOF indicator cleared
and not set again forever even if EOF returned.
2) Catch few possible off_t overflows.
Reviewed by: arch discussion
2001-08-15 02:07:47 +00:00
Yaroslav Tykhiy
a2a0a4dc2a
Use the ".Rv" mdoc(7) macro where appropriate.
...
Reviewed by: ru
2001-08-14 14:20:35 +00:00
Yaroslav Tykhiy
2fa4b9b3d6
Isolate the ERRORS section from the RETURN VALUES one.
...
Reviewed by: ru
2001-08-14 14:10:01 +00:00
Ruslan Ermilov
753d686d34
mdoc(7) police: s/BSD/.Bx/ where appropriate.
2001-08-14 10:01:54 +00:00
Peter Wemm
2b618987fe
Rip out the old __stdin/out/err stuff. It was completely 100% useless. :-(
...
It was foiled because of dynamic copy relocations that caused compile-time
space to be reserved in .bss and at run time a blob of data was copied to
that space and everything used the .bss version.. The problem is that
the space is reserved at compile time, not runtime... So we *still* could
not change the size of FILE. Sigh. :-(
Replace it with something that does actually work and really does let us
make 'FILE' extendable. It also happens to be the same as Linux does in
glibc, but has the slight cost of a pointer. Note that this is the
same cost that 'fp = fopen(), fprintf(fp, ...); fclose(fp);' has.
Fortunately, actual references to stdin/out/err are not all that common
since we have implicit stdin/out/err-using versions of functions
(printf() vs. fprintf()).
2001-08-13 21:48:44 +00:00
Ruslan Ermilov
ed2879a5cf
mdoc(7) police: s;BSD/OS;.Bsx; where appropriate.
2001-08-13 17:07:40 +00:00
Ruslan Ermilov
d013e3f544
mdoc(7) police: s/NetBSD/.Nx/ where appropriate.
2001-08-13 17:00:36 +00:00
Ruslan Ermilov
04da392069
mdoc(7) police: s/OpenBSD/.Ox/ where appropriate.
2001-08-13 16:43:02 +00:00
Ruslan Ermilov
c5e7e03a14
Spell "FreeBSD" with "F" and "BSD" in uppercase.
2001-08-13 16:33:00 +00:00
Ruslan Ermilov
8af1452cf8
Removed duplicate VCS ID tags, as per style(9).
2001-08-13 14:06:34 +00:00
Ian Dowse
cd0ada9d94
Cross-reference io(4).
2001-08-12 21:16:41 +00:00
Hajimu UMEMOTO
8e67a60053
Fill _res.sort_list with harmless entry. sortlist for IPv6/IPv4
...
is stored in _res_ext.sort_list, and sortlist for IPv4 is stored in
_res.sort_list for backward compatibility. However, both sort_list's
are maintaind by just one index _res.nsort. So, when IPv6 address is
specified to sortlist, empty entry was created in _res.sort_list. It
broke sortlist facility of gethostbyname().
Discussed on users@jp.ipv6.org .
2001-08-11 15:01:12 +00:00
Dima Dorfman
7f55e48eb1
Use .Fn, .Fa, and .Dv where appropriate.
2001-08-10 20:49:38 +00:00
Ruslan Ermilov
94ba280c59
mdoc(7) police: join split punctuation to macro calls.
2001-08-10 17:35:21 +00:00
Ruslan Ermilov
c75526d5a0
mdoc(7) police: fixed the "new sentence" bogons.
2001-08-10 15:03:10 +00:00
Ruslan Ermilov
57e4378bf6
mdoc(7) police: protect trailing full stops of abbreviations
...
with a trailing zero-width space: `e.g.\&'.
2001-08-10 13:45:36 +00:00
Ruslan Ermilov
b3ebbab8d3
Fixed style bugs (dot `.' at the end of error and warning messages).
...
Noticed by: bde
2001-08-10 11:46:37 +00:00
Ruslan Ermilov
a9bef12a45
Markup nits: use diagnostic type lists for error and warning messages.
...
Backout previous revision. We should not expand plain text xrefs if
they appear in the literal text, e.g. in the error or warning message
of the library function. (Submitted by: bde)
Moved "out of memory" from warning to errors section.
2001-08-10 11:41:55 +00:00
Ruslan Ermilov
8e42cf1a46
mdoc(7) police: add xref to intro(2).
2001-08-10 10:11:55 +00:00
Mike Barcroft
fcd3401ece
o Remove some misleading and incomplete information about search
...
permissions.
o Add a reference to intro(2) where it is properly documented.
Reviewed by: bde
MFC after: 3 days
2001-08-09 17:29:46 +00:00
Mike Barcroft
107d3f78b0
o Various mdoc fixes.
...
o Replace strncpy examples with less confusing ones from
OpenBSD. These examples give more detail and also suggest
using strlcpy(3).
Reviewed by: des, ru, sheldonh
Obtained from: OpenBSD
MFC after: 3 days
2001-08-09 17:10:48 +00:00
Maxim Sobolev
5d25d75662
Fix xrefs.
...
times.3: gettimeofday(3) --> gettimeofday(2)
rc.conf.5: isndn(8) --> isdnd(8)
idsnd(8) --> isdnd(8)
MFC after: 2 weeks
2001-08-09 15:46:53 +00:00
Yaroslav Tykhiy
b1250632c5
Use the ``.Rv -std'' mdoc(7) macro in appropriate cases.
...
Reviewed by: ru
2001-08-09 13:32:13 +00:00
Mike Heffner
785ead5062
typo: patched->matched
2001-08-09 00:34:57 +00:00
Ruslan Ermilov
6575e6daae
mdoc(7) police: expand plain text xrefs.
2001-08-08 11:48:28 +00:00
Ruslan Ermilov
3bc371d25d
Urge the reader to start using getaddrinfo(3) and getnameinfo(3)
...
protocol-independant functions that don't use static memory area.
Suggested by: nik
Liked by: ume, brian
2001-08-08 11:05:47 +00:00
Ruslan Ermilov
936c7c034e
mdoc(7) police: remove whitespace at EOL.
2001-08-08 10:28:18 +00:00
Ruslan Ermilov
71b67d931a
mdoc(7) police: markup nits.
2001-08-08 08:51:03 +00:00
Peter Wemm
20f9910b18
Update ptrace(2) re: PT_READ_U and PT_WRITE_U
2001-08-08 05:28:09 +00:00
Ruslan Ermilov
c4d9468ea0
mdoc(7) police:
...
Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text.
Not only this slows down the mdoc(7) processing significantly, but it also
has an undesired (in this case) effect of disabling hyphenation within the
entire enclosed block.
2001-08-07 15:48:51 +00:00
Ruslan Ermilov
44220250d0
mdoc(7) police: sort xrefs.
2001-08-07 12:33:11 +00:00
Ruslan Ermilov
f61004566c
mdoc(7) police: markup nits.
2001-08-07 12:17:32 +00:00
Dima Dorfman
557b792532
varargs -> stdarg
2001-08-05 05:39:16 +00:00
Bruce Evans
a7dff00b1e
Don't clobber the default for CFLAGS.
2001-08-03 21:45:54 +00:00
Ian Dowse
e73bb7f1e2
In getclnthandle(), if the address is found in the cache we need
...
to strdup() the address string before returning it via *targaddr
because the caller will free the string.
Change the comment at the top of getclnthandle() to clarify that
the caller is responsible for freeing *targaddr.
Noticed by: sobomax
2001-08-02 21:31:21 +00:00
Dima Dorfman
d81b7e782a
mdoc(7) police: remove hard sentence breaks.
2001-08-01 16:07:50 +00:00
Sheldon Hearn
86f478757a
MFS: in HISTORY section, fix release number of first appearance
2001-08-01 12:15:21 +00:00
Sheldon Hearn
b47d4cf924
Fix broken Fn calls; Fn doesn't take a manual page section as an
...
argument.
Terminate the last sentence with a period.
2001-08-01 12:04:32 +00:00
Mark Peek
545d32087b
Only pull in the MD files if they exist. This allows for progressive
...
implementation and compilation when bringing up a new architecture.
2001-07-31 16:34:52 +00:00
Brian Somers
74bd6d9d66
Mention the sa_handler and sa_sigaction #defines in the synopsis.
...
Mark sa_sigaction consistently.
MFC after: 1 week
2001-07-31 09:33:08 +00:00
Jeroen Ruigrok van der Werven
6a0fc191fb
FreeBSD now also defines EIDRM and uses it.
...
Inspired by PR: 22470
Which was submitted by: Bjorn Tornqvist <bjorn@west.se>
MFC after: 1 week
2001-07-30 19:30:26 +00:00
Jeroen Ruigrok van der Werven
2341e86854
Remove bogus BUGS section.
...
FreeBSD _does_ define ENOMSG as per SVID when IPC_NOWAIT is set.
PR: 22470
Submitted by: Bjorn Tornqvist <bjorn@west.se>
MFC after: 1 week
2001-07-30 19:25:16 +00:00
Thomas Moestl
d35bce02ee
Correct the old length argument passed to sysctlbyname to be a pointer
...
to a size_t (not to an int).
MFC after: 2 days
2001-07-29 22:01:55 +00:00
Sheldon Hearn
549c291915
Avoid any chance of being misunderstood as having libelled developers
...
or developers' vendors without compromising the importance of warning
against bad practice.
Reported by: mjacob
MFC after: 1 week
2001-07-29 15:08:14 +00:00
Dima Dorfman
c569c0b5d2
Don't xref mt(1) just because it mentions ioctl.
...
Submitted by: Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de>
2001-07-29 09:17:54 +00:00
Dima Dorfman
f4c69d4b4d
Don't capitalize variable names.
2001-07-29 09:17:16 +00:00
Dima Dorfman
43b8c5db92
ioctl(2) can return EFAULT from copyin.
...
PR: 29285
Submitted by: Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de>
2001-07-29 09:16:07 +00:00
Mike Heffner
75dc5f1a82
Rename the GLOB_MAXPATH flag of glob(3) to GLOB_LIMIT to be compatible
...
with NetBSD and OpenBSD. glob(3) will now return GLOB_NOSPACE with
errno set to 0 instead of GLOB_LIMIT when we match more than `gl_matchc'
patterns. GLOB_MAXPATH has been left as an alias of GLOB_LIMIT to
maintain backwards compatibility.
Reviewed by: sheldonh, assar
Obtained from: NetBSD/OpenBSD
2001-07-29 00:52:37 +00:00
Chris Costello
3fb49e7db7
Add cross-references for the new kldsym(2) man page.
2001-07-27 03:03:36 +00:00
Chris Costello
bd2e4334e1
Add a new kldsym(2) man page.
2001-07-27 02:56:16 +00:00
Sheldon Hearn
745b20f712
The previous delta duplicated a significant amount of information
...
already found in the sigaction(2) manual.
As discussed with the committer of that delta, cross-reference the list
in sigaction(2) instead of duplicating the list of functions that are
safe for use within signal handlers.
2001-07-24 11:37:33 +00:00
Kris Kennaway
6979f76ff6
Sync to OpenBSD (update comment and minor style change).
...
Obtained from: OpenBSD
MFC after: 1 week
2001-07-24 11:34:22 +00:00
Kris Kennaway
af13ede905
Sync to OpenBSD:
...
Clarify that if strlcat() does not find a NUL within siz byte it
will not NUL terminate either.
Document boundary condition when size < strlen(dst).
"of", not "on" (from Henric Jungheim)
Obtained from: OpenBSD
MFC After: 1 week
2001-07-24 11:32:29 +00:00
Sheldon Hearn
b2b50712a6
The delta introduced in the previous revision and attributed to the
...
OpenBSD project had grammar problems and made no attempt to motivate
the practice of saving errno. Replace it with something better.
2001-07-24 11:15:13 +00:00
Sheldon Hearn
1d8ffb440b
Finish the sweep of changes that fix doubled 'the'.
2001-07-24 08:30:55 +00:00
Kris Kennaway
fd9139a04e
Add the list of signal-handler safe functions here too, so people can
...
find it more easily
Obtained from: OpenBSD
MFC After: 1 week
2001-07-24 08:26:37 +00:00
Kris Kennaway
057136d2c5
Add a few more functions which are safe to call from signal handlers,
...
and give a bit of advice.
Obtained from: OpenBSD
MFC After: 1 week
2001-07-24 08:24:50 +00:00
Yaroslav Tykhiy
4bc14ac2f8
Unify SEE ALSO sections of the kld*.2 and mod*.2 manpages.
...
Previously, some useful xrefs were missing.
Now each of the pages refers to all remaining section 2 pages,
to the kld(4) page, and to a related utility's (section 8) page.
2001-07-24 07:59:54 +00:00
Mike Pritchard
b21b2f313e
Fix some man page xrefs.
...
PR: docs/26065
MFC after: 1 week
2001-07-22 11:51:11 +00:00
Jonathan Lemon
e725a1299a
Document EVFILT_TIMER.
...
MFC after: 1 week
2001-07-19 18:35:19 +00:00
Dima Dorfman
df523897ea
Don't claim that strncpy() is the same as strcpy().
...
PR: 29002
Submitted by: Joseph Mallett <jmallett@xMach.org>
2001-07-19 11:26:52 +00:00
Ruslan Ermilov
97e1bac189
mdoc(7) police: fix markup.
2001-07-18 15:55:34 +00:00
Ruslan Ermilov
e3745c75e6
mdoc(7) police: Add strncpy() to the NAME section.
2001-07-16 12:47:34 +00:00
Kris Kennaway
54b8fe08cf
Remove unnecessary #include <stdlib.h>
...
Obtained from: NetBSD
MFC After: 1 week
2001-07-16 04:48:28 +00:00
Kris Kennaway
5e2aa25bcf
Oops, commit the version which actually works
...
Obtained from: NetBSD
MFC After: 1 week
2001-07-16 04:04:22 +00:00
Kris Kennaway
bcef131fb8
Avoid a compile-time format string warning
...
Obtained from: NetBSD
MFC After: 1 week
2001-07-16 03:55:47 +00:00
Dima Dorfman
7ebcc426ef
Remove whitespace at EOL.
2001-07-15 07:53:42 +00:00
Ian Dowse
52353da871
Fix a memory leak in __rpcb_findaddr(), avoid compiler warnings.
...
Submitted by: Martin Blapp <mb@imp.ch>
2001-07-14 18:18:23 +00:00
Dima Dorfman
427fc5ed6f
Recognize the %s format.
...
Submitted by: Thomas Zenker <thz@lennartz-electronic.de> and
Maxim Konovalov <maxim@macomnet.ru>, respectively
Reviewed by: -audit
2001-07-13 13:59:24 +00:00
Ruslan Ermilov
eb89426722
mdoc(7) police: removed punctuation after the last SEE ALSO xref.
2001-07-10 18:00:19 +00:00
David E. O'Brien
c34d5912ba
style nits
2001-07-10 17:48:07 +00:00
Ruslan Ermilov
a307d59838
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 13:41:46 +00:00
David E. O'Brien
8dfd7bcddf
MFS: add the FreeBSD history.
2001-07-10 00:12:50 +00:00
David E. O'Brien
6e6c8a08c8
Give the FreeBSD history also.
2001-07-10 00:11:00 +00:00
Anton Berezin
b5b2871f9d
Document more resolver(3) routines: dn_skip() from resolv.h, and
...
ns_get16(), ns_get32(), ns_put16(), and ns_put32() from arpa/nameser.h.
Markup by: ru
OK'ed by: markm
2001-07-09 20:46:00 +00:00
Ruslan Ermilov
e25e8ab41c
mdoc(7) police: eliminate -ww warnings.
2001-07-09 15:54:36 +00:00
Dima Dorfman
70d51341bf
mdoc(7) police: remove extraneous .Pp before and/or after .Sh.
2001-07-09 09:54:33 +00:00
Mike Heffner
0bada8603d
Attempt to use the environment variable TMPDIR for the temporary
...
directory, defaulting to /tmp.
PR: bin/16924
Reviewed by: dd
MFC after: 2 weeks
2001-07-07 04:08:32 +00:00
Ruslan Ermilov
5521ff5a4d
mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2).
2001-07-06 16:46:48 +00:00
Yaroslav Tykhiy
be5eadbc1b
Use the .Rv macro to describe the return value.
...
Suggested by: ru
MFC after: 5 days
2001-07-04 13:07:38 +00:00
Ruslan Ermilov
f1db1f07ba
mdoc(7) police: added missing newline after .Dv macro call,
...
removed hard sentence breaks.
2001-07-04 12:39:22 +00:00
Ruslan Ermilov
9d87be43f8
mdoc(7) police: use .Rv -std.
2001-07-04 12:32:43 +00:00
Ruslan Ermilov
62205fee40
mdoc(7) police: mark NULL with .Dv.
2001-07-04 12:04:25 +00:00
Ruslan Ermilov
4988599f44
mdoc(7) police: fixed/simplified formatting.
2001-07-04 11:59:14 +00:00
Ruslan Ermilov
b23e7b410b
mdoc(7) police: sort xrefs.
2001-07-04 11:02:10 +00:00
Ruslan Ermilov
c155ff5cdd
mdoc(7) police: print some example text with literal font.
2001-07-04 10:59:30 +00:00
Ruslan Ermilov
f80eb0cb14
mdoc(7) police: fixed bugs in rev. 1.19, split section headers names.
2001-07-04 10:53:15 +00:00
Ruslan Ermilov
3d1455a39d
mdoc(7) police: compact VFCF_ list.
2001-07-04 10:42:03 +00:00
Dima Dorfman
368c2034f0
Describe the condition when EACCES is returned more explicitly.
...
Submitted by: bde
2001-07-04 06:29:36 +00:00
Dima Dorfman
f9eeb822d0
mdoc(7) police: fix spacing issue
...
Submitted by: ru
2001-07-03 21:16:34 +00:00
Yaroslav Tykhiy
e2a7d2044a
First, fix a leftover of the cut'n'paste from the kld* pages:
...
change the name of the page (.Nm) from "kldstat" to "modstat".
Second, don't claim that modstat(2) always returns 0. Actually,
it behaves as most syscalls do - returns 0 on success, or -1
on failure.
MFC after: 5 days
2001-07-03 14:56:08 +00:00
Dima Dorfman
9e12bdbd79
EACCES may be returned if write permission was denied as well.
...
PR: 28553
Submitted by: Ronald F. Guilmette <rfg@monkeys.com>
2001-07-02 22:53:40 +00:00
Dima Dorfman
ff5f0dbc41
Fix a one-byte overrun.
...
PR: 28472
Submitted by: David Xu <davidx@viasoft.com.cn>
Obtained from: OpenBSD
2001-06-28 21:50:53 +00:00
Dima Dorfman
9351f51fd8
getcwd(3) is defined by POSIX, not ISO C.
...
Approved by: bde
2001-06-28 19:27:02 +00:00
Dima Dorfman
9a66daa5d4
Document the existing vfc_flags.
...
PR: 25837
Submitted by: Tony Finch <dot@dotat.at>
2001-06-28 06:50:19 +00:00
Dima Dorfman
0e35d76ec4
event.h -> sys/event.h
...
Submitted by: David Hill <david@phobia.ms>
2001-06-27 19:55:57 +00:00
Chris Costello
2f05bd957f
Remove an extra word "fo" in the sentence "there is no process whose
...
process ID equals fo pid".
PR: 28436
Submitted by: Gregory Bond <gnb@itga.com.au>
2001-06-27 04:21:28 +00:00
Andrey A. Chernov
d118fd8a39
Return "" if reallocf() fails
2001-06-25 20:56:59 +00:00
Andrey A. Chernov
ecffe71379
Describe success return value
2001-06-25 20:50:06 +00:00
Andrey A. Chernov
4e86aa7f9d
Add transition period hack allowing old locale names return proper codeset too
2001-06-25 09:03:10 +00:00
Dima Dorfman
2b47b55f69
Add RETURN VALUES and ERRORS sections.
2001-06-25 01:25:01 +00:00
Dima Dorfman
53950232dd
Minor cleanup: sort includes, fix name.
2001-06-25 01:21:13 +00:00
Dima Dorfman
ce1e308f7a
Add a link to extattr.2 (from extattr_get_file.2). The other names
...
are too specific and too long, and extattr.2 makes a nice point of
reference for "extattr-related syscalls".
2001-06-24 23:58:27 +00:00
Dima Dorfman
444a2d61e8
Add a manual page for extattr_string_to_namespace and
...
extattr_namespace_to_string.
Reviewed by: rwatson
2001-06-24 23:54:46 +00:00
Dima Dorfman
44fe68c421
mdoc(7) police: the BUGS section should go after HISTORY and AUTHORS.
2001-06-24 20:58:20 +00:00
Dima Dorfman
17011fc056
The fact that phk wrote this is not a bug!
2001-06-24 20:56:39 +00:00
Dima Dorfman
acaa9950a4
Reword a sentence to make it proper English.
2001-06-24 18:11:42 +00:00
Dima Dorfman
a910f192bb
Remove duplicate words.
2001-06-24 01:34:38 +00:00
Ian Dowse
32de72d27f
Add a new clnt_control() request `CLSET_CONNECT' that controls
...
whether or not connect(2) is used for UDP client sockets. The default
is not to connect(), so existing clients will see no change in
behaviour.
The use of connect(2) for UDP clients has a number of advantages:
only replies from the intended address are received, and ICMP errors
pertaining to the connection are reported back to the application.
2001-06-23 19:43:21 +00:00
Ruslan Ermilov
10ae6ece36
Document "normalizing" behavior of mktime(3).
...
PR: bin/28313
Reviewed by: bde, wollman
MFC after: 1 week
2001-06-23 08:57:40 +00:00
Jonathan Lemon
4dd2af159e
Bring in fix from rev 1.32 that got lost during the conversion to kqueue.
...
This prevents an indefinte timeout in case the kevent call is interrupted
for some reason.
PR: 26665
MFC in: 2 weeks
2001-06-23 06:54:28 +00:00
Dima Dorfman
12985df355
Fix a grammar bogon.
2001-06-20 22:03:10 +00:00
Garrett Wollman
3f22a03fa6
Fix spelling of `errno' and add cross-references.
2001-06-18 22:26:31 +00:00
Garrett Wollman
5813675eed
Document _SC_IOV_MAX. Add cross-references to pathconf(2), confstr(3), and
...
getconf(1). This document still needs to be sorted and to have other missing
parameters described.
2001-06-18 22:18:08 +00:00
Garrett Wollman
37336173d3
After one too many PRs on the subject, bite the bullet and define IOV_MAX
...
and its associated constants. Implement _SC_IOV_MAX in the usual way.
Be a bit sloppy about the namespace question; this should get cleared up
in time for 5.0.
MFC after: 1 month
2001-06-18 20:24:54 +00:00
David Malone
75328eca8d
If the username we are trying to look up in the db files won't fit into
...
the buffer then act like it doesn't exist. The buffer is always big enough
for any valid username.
PR: 27860
Reviewed by: nectar
2001-06-18 16:09:24 +00:00
Assar Westerlund
1866adc54f
(cantwrite): do not allocate memory for a NULL string
...
PR: misc/26044
MFC after: 1 week
Submitted by: bde
2001-06-18 04:44:23 +00:00
Assar Westerlund
a52532c91a
revert freeing of memory that gets allocated when str == NULL
...
(this will be fixed in a better way)
PR: misc/26044
2001-06-18 04:40:52 +00:00
Mike Heffner
224e22e6c6
Fix typo: clnt_destroy() only takes one arg.
...
MFC after: 2 weeks
2001-06-18 00:45:31 +00:00
Assar Westerlund
207d92d043
free memory that gets allocated by vfprintf when str == NULL
...
PR: misc/26044
MFC after: 1 week
2001-06-16 05:37:57 +00:00
Jens Schweikhardt
32b21f091e
Add description for the 'll' modifier for long long. In essence a copy
...
from the 'l' description with s/long/long long/g.
PR: 27017
Submitted by: Guy Harris <guy@alum.mit.edu>
MFC after: 2 weeks
2001-06-13 19:05:12 +00:00
Ruslan Ermilov
589ee357a4
Complete prototype for fts_compar.
2001-06-13 14:59:57 +00:00
Ian Dowse
f9f6897972
Make the non-threaded stub for pthread_sigmask() a no-op instead
...
of calling sigprocmask(). This matches the behaviour of thr_sigsetmask()
on Solaris; _pthread_sigmask_stub was added purely for compatibility
with Solaris (for TI-RPC), so it might as well do the same thing.
This fixes the problem where client RPC calls ignored all signals
for the complete duration of the RPC. This behaviour is currently
necessary in the threaded case due to locking issues, but was never
intended to occur in non-threaded programs.
Reviewed by: deischen
2001-06-11 23:18:22 +00:00
Jonathan Lemon
add0681213
Fix small bogon.
...
Submitted by: Anton Berezin <tobez@tobez.org>
2001-06-11 18:15:31 +00:00
Andrey A. Chernov
75d03a7f04
Handle "ASCII" and "US-ASCII" aliases
2001-06-10 23:22:31 +00:00
Hajimu UMEMOTO
ce6282db3b
Implement EDNS0 support, as EDNS0 support will be made mandatory for
...
IPv6 transport-ready resolvers/DNS servers. Need careful configuration
when enable it. (default config is not affected).
See manpage for details.
XXX visible symbol __res_opt() is added, however, it is not supposed to be
called from outside, libc minor is not bumped.
Obtained from: KAME/NetBSD
2001-06-10 20:25:24 +00:00
Maxim Sobolev
000d56193c
Fix cross-references:
...
xntpd.8 --> ntpd.8
acl_delete_perms.3 --> acl_delete_perm.3
getname.2 --> getsockname.2
MFC after: 1 week
2001-06-10 12:06:54 +00:00
Dima Dorfman
4088069c3a
Xref dladdr(3).
...
Requested by: -hackers
2001-06-08 22:50:33 +00:00
Maxim Sobolev
8657581bfd
Correct cross-reference:
...
portmap.8 --> rpcbind.8
Submitted by: .Xr testing script
2001-06-07 16:59:19 +00:00
Ruslan Ermilov
7125977be7
s/format/byte order/ (for clarity).
2001-06-07 15:15:38 +00:00
Dima Dorfman
a7d81577d6
urandom(4) -> random(4) in comments.
...
PR: 27858
Submitted by: Yoshihiro Koya <Yoshihiro.Koya@math.yokohama-cu.ac.jp>
Reviewed by: md5(1)
Approved by: markm
2001-06-07 02:32:18 +00:00
Dima Dorfman
df49b8e2ab
urandom(4) -> random(4)
...
PR: 27858
Submitted by: Yoshihiro Koya <Yoshihiro.Koya@math.yokohama-cu.ac.jp>
Approved by: markm
2001-06-07 02:31:03 +00:00