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
Warner Losh
656f411d33
Back out my changes describing how snprintf nul terminates. It
...
was from the iso standard. Keep the sentence that says it is always
NUL terminated to make sure that people understand that.
Requested by: bde
2001-06-05 23:39:45 +00:00
Garrett Wollman
80d444c883
Don't mung the user's tm_sec field if we don't need to. (Belt-and-suspenders
...
version.)
PR: bin/27630
Submitted by: Arthur David Olson <ado@nci.nih.gov>
Obtained from: Timezone mailing-list <tz@elsie.nci.nih.gov>
MFC after: 1 month
2001-06-05 20:13:28 +00:00
Warner Losh
7528c356f5
I neglected to notice that the change text had already been added in a
...
different place. Back out what I added since the other text is better.
Noticed by: nectar
2001-06-05 16:43:51 +00:00
Maxim Sobolev
76c6864951
Fix cross-references:
...
ipnat.8 --> ipnat.1
environ.5 --> environ.7
isssetugid.2 --> issetugid.2
MFC after: 1 week
2001-06-05 12:23:22 +00:00
Warner Losh
485839b9ee
Document what happens when the real id is changed.
...
I may have obtained this from NetBSD, but I don't recall. I do know that
I checked FreeBSD's implementation to make sure that it matched what I wrote.
2001-06-05 04:35:42 +00:00
Warner Losh
890d5b436d
Minor improvements:
...
o Explain snprintf's return value better.
o Document snprintf, et al, were defined in C-99
o Warn against %n.
2001-06-05 04:22:30 +00:00
Daniel Eischen
fcd70a7565
Properly initialize a temporary FILE that is allocated off the stack.
...
The change to reuse _up from FILE (to allow FILE to grow without changing
size) overlooked FILE being allocated off the stack.
Approved by: sobomax
2001-06-04 12:36:07 +00:00
Kris Kennaway
93a8551831
Fix another unprotected instance of chdir() by extending the
...
fts_safe_changedir() function and using that instead for both of the
chdir()s.
Partially submitted by: Todd Miller <millert@OpenBSD.org>, bde
2001-06-01 21:53:50 +00:00
Ian Dowse
a8634a0009
Copy the sockaddr from the netbuf data area, not from the netbuf
...
data pointer. This bug has been here since the ti-rpc import; it
apparently broke the clnt_control CLGET_SVC_ADDR options.
PR: misc/27813
Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
2001-06-01 15:20:45 +00:00
Ruslan Ermilov
0b381bf1fd
Remove vestiges of MFS.
2001-06-01 10:07:28 +00:00
Gregory Neil Shapiro
1259dd85eb
Correct the documentation for snprintf() and vsprintf() which actually
...
return the number of characters that would have been in the new string.
Obtained from: OpenBSD
MFC after: 3 days
2001-05-30 23:47:14 +00:00
Kris Kennaway
fdeb0156dd
When doing the chdir("..") in the !FTS_NOCHDIR case, stat() after we get
...
there and compare the inode and device numbers to the values we remember,
to guard against the directory having been moved around in the meantime.
Reported by: Nick Cleaton <nick@cleaton.net>
2001-05-30 20:35:44 +00:00
Eric Melville
2de2196026
Add warnings about trusting user-supplied data.
...
Reviewed by: ru
Approved by: murray
Obtained from: OpenBSD
2001-05-25 20:42:40 +00:00
David E. O'Brien
5864b79cd2
Make the rcsid and FreeBSD IDs more sane in the wcs* and wmem* files.
...
Do the same for the non-wcs*/wmem* files while I'm here.
2001-05-24 08:47:42 +00:00
Matthew Dillon
ac8f990bde
This patch implements O_DIRECT about 80% of the way. It takes a patchset
...
Tor created a while ago, removes the raw I/O piece (that has cache coherency
problems), and adds a buffer cache / VM freeing piece.
Essentially this patch causes O_DIRECT I/O to not be left in the cache, but
does not prevent it from going through the cache, hence the 80%. For
the last 20% we need a method by which the I/O can be issued directly to
buffer supplied by the user process and bypass the buffer cache entirely,
but still maintain cache coherency.
I also have the code working under -stable but the changes made to sys/file.h
may not be MFCable, so an MFC is not on the table yet.
Submitted by: tegge, dillon
2001-05-24 07:22:27 +00:00
Jim Pirzyk
d825ca42c9
Changed the clnt_perror string in yp_all because it was saying the
...
error came from yp_next
PR: bin/13254
Submitted by: Jim Pirzyk
Reviewed by: jkh
MFC after: 1 week
2001-05-23 15:37:10 +00:00
Ruslan Ermilov
6ad10804f7
Rename (after a repo-copy) some mount(8) programs:
...
mount_fdesc -> mount_fdescfs
mount_null -> mount_nullfs
mount_portal -> mount_portalfs
mount_umap -> mount_umapfs
mount_union -> mount_unionfs
2001-05-23 14:58:19 +00:00
Ruslan Ermilov
d4aac95ca2
Fix the range of the returned value.
...
PR: docs/27446
Submitted by: Tadayuki OKADA <tadayuki@mediaone.net>
2001-05-23 12:37:50 +00:00
Hajimu UMEMOTO
1022dd3dcc
Correct error message of an example.
...
Obtained from: KAME
2001-05-21 10:05:36 +00:00
Archie Cobbs
88c1867f5c
Document ECONNREFUSED.
...
Submitted by: Richard Hodges <rh@matriplex.com>
2001-05-20 00:12:06 +00:00
Ian Dowse
a9d09e93db
The function clnt_dg_call(), which is used for UDP RPC calls, could
...
accidentally clobber the server address if a stray packet arrived
at the client port. This would result in any further retransmits
going to the wrong address.
For now, fix this by not saving the source address of the reply; this
matches the pre-tirpc behaviour.
2001-05-18 19:43:18 +00:00
Ruslan Ermilov
58ceb60878
Suppress compiler warning by adding a type cast.
2001-05-17 12:51:43 +00:00
Ruslan Ermilov
45993e3bd4
... but we do provide .St -isoC-99, and it is not required to have the
...
history info as:
: .Sh STANDARDS If the command, library function or file adheres to a
: specific implementation such as IEEE Std 1003.2
: (``POSIX.2'') or ANSI X3.159-1989 (``ANSI C'') this
: should be noted here. If the command does not adhere
: to any standard, its history should be noted in the
: HISTORY section.
2001-05-17 08:22:43 +00:00
Ruslan Ermilov
9d3618b999
Unbreak world; _DIAGASSERT macro is not available in FreeBSD.
2001-05-16 14:34:47 +00:00
Ruslan Ermilov
9af42d27b1
mdoc(7) police: fix markup.
2001-05-16 09:50:12 +00:00
Dima Dorfman
cd18ccdc30
Introduce getprogname(3) and setprogname(3) library calls. These get
...
and set __progname, respectively.
Discussed on: -arch (Feb 2001), -audit
Reviewed by: -audit
Approved by: kris
Obtained from: (mostly) NetBSD
2001-05-15 23:41:01 +00:00
Takuya SHIOZAKI
01e281bd12
adapt to FreeBSD.
...
- enable locale-insensitive functions of wchar.h:
wcscat.c wcschr.c wcscmp.c wcscpy.c wcscspn.c wcslcat.c wcslcpy.c
wcslen.c wcsncat.c wcsncmp.c wcsncpy.c wcspbrk.c wcsrchr.c wcsspn.c
wcsstr.c wmemchr.c wmemcmp.c wmemcpy.c wmemmove.c wmemset.c
XXX: wcswidth.c is not enabled yet.
- enable wmemchr(3) man page.
XXX: FreeBSD lacks .St -isoC99 and .St -isoC-amd1.
2001-05-15 20:34:20 +00:00
Ruslan Ermilov
a289e937e3
mdoc(7) police: sort xrefs.
2001-05-15 15:57:05 +00:00
Ruslan Ermilov
ec7d12549c
Add new, from scratch implementation of hsearch() et al that actually works.
...
Obtained from: NetBSD
MFC after: 1 month
2001-05-15 07:08:20 +00:00
Takuya SHIOZAKI
9829d36a86
initial import of locale insensitive wcs* and wmem* functions.
...
Obtained from: NetBSD and Citrus.
2001-05-15 06:01:19 +00:00