| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
- make getproto{byname,bynumber,ent} thread-safe.
|
|
|
|
|
|
| |
- remove unused variable.
Obtained from: KAME
|
|
|
|
| |
Suggested by: delphij
|
|
|
|
|
|
| |
this case.
Reviewed by: ume
|
|
|
|
|
| |
This information is needed by things like `gdb -p' and Sun's javac,
and previously it could only be obtained via procfs
|
|
|
|
|
| |
BTW. Shall we change these fields to have yp_ prefix? That will make the
code easier to read.
|
|
|
|
|
|
| |
of their names.
Pointed out by: das
|
|
|
|
|
|
| |
seen in NetBSD's tree, and this one is what I have submitted for review.
Pointy hat to: me
|
|
|
|
|
|
|
|
|
|
|
| |
getnameinfo(3). POSIX standard does not require a sa_len field
in sockaddr struct, hence such requirement will cause problem
for portability.
PR: standards/80008
Requested by: Xin Liu <lx@knight.6test.edu.cn>
Reviewed by: freebsd-standards (das)
MFC After: 2 weeks
|
|
|
|
| |
printf("%#.0o", 0). Cite an amusing passage from a defect report.
|
|
|
|
| |
to protect it with mutex lock.
|
|
|
|
|
|
| |
- make getserv{byname,byport,ent} thread-safe.
Reviewed by: gnn
|
|
|
|
|
|
| |
and use it.
Obtained from: BIND9
|
|
|
|
| |
Inspired by: NetBSD
|
|
|
|
| |
sysarch() calls return EINVAL, not SIGSYS.. so we can trivially adapt.
|
| |
|
|
|
|
|
|
| |
PR: 73111
Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD)
MFC after: 3 weeks
|
|
|
|
|
|
|
|
| |
a return instruction. (The latter is discouraged by the Opteron
optimization manual because it disables branch prediction for the return
instruction.)
Reviewed by: bde
|
|
|
|
|
|
| |
PR: 73111
Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD)
MFC after: 3 weeks
|
|
|
|
|
|
| |
PR: 73111
Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD)
MFC after: 3 weeks
|
|
|
|
| |
Submitted by: Andrea Campi <andrea+freebsd_cvs_at_webcom.it>
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
PR: 73111
Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD)
MFC after: 3 weeks
|
|
|
|
| |
translation from i386.
|
|
|
|
| |
translation from i386.
|
| |
|
|
|
|
|
|
|
|
| |
memmove, and memset.
PR: 73111
Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD)
MFC after: 3 weeks
|
|
|
|
|
|
| |
getaddrinfo(3) and getipnodeby*(3).
- use definitions in reentrant.h.
- remove obsolete comment.
|
|
|
|
| |
PTHREAD_MUTEX_INITIALIZER, here.
|
|
|
|
| |
Requested by: phantom
|
|
|
|
| |
Obtained from: NetBSD
|
|
|
|
| |
Inspired by: NetBSD
|
| |
|
|
|
|
| |
Obtained from: NetBSD
|
|
|
|
|
|
|
|
|
| |
implementations inspired by the ones in DragonFly. Unlike the
DragonFly versions, these have a small data cache footprint, and my
tests show that they're never slower than the old code except when the
charset or the span is 0 or 1 characters. This implementation is
generally faster than DragonFly until either the charset or the span
gets in the ballpark of 32 to 64 characters.
|
|
|
|
|
|
|
|
|
|
| |
these at the moment, but applications that test for them will now
have a better chance of compiling.
I have intentionally omitted errnos that are only good for STREAMS,
since apps that use STREAMS won't compile anyway. The exception is
EPROTO, which was apparently intended for STREAMS, but worth having
anyway because Linux (mis)uses it for other things.
|
|
|
|
|
| |
to improve getaddrinfo(3). but, it is not needed for a long time
since getaddrinfo(3) became providing its own res_*N() functions.
|
| |
|
| |
|
|
|
|
| |
MFC after: 3 days
|
|
|
|
| |
endian cases.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to mistakes from day 1, it has always had semantics inconsistent with
SVR4 and its successors. In particular, given argument M:
- On Solaris and FreeBSD/{alpha,sparc64}, it clobbers the old flags
and *sets* the new flag word to M. (NetBSD, too?)
- On FreeBSD/{amd64,i386}, it *clears* the flags that are specified in M
and leaves the remaining flags unchanged (modulo a small bug on amd64.)
- On FreeBSD/ia64, it is not implemented.
There is no way to fix fpsetsticky() to DTRT for both old FreeBSD apps
and apps ported from other operating systems, so the best approach
seems to be to kill the function and fix any apps that break. I
couldn't find any ports that use it, and any such ports would already
be broken on FreeBSD/ia64 and Linux anyway.
By the way, the routine has always been undocumented in FreeBSD,
except for an MLINK to a manpage that doesn't describe it. This
manpage has stated since 5.3-RELEASE that the functions it describes
are deprecated, so that must mean that functions that it is *supposed*
to describe but doesn't are even *more* deprecated. ;-)
Note that fpresetsticky() has been retained on FreeBSD/i386. As far
as I can tell, no other operating systems or ports of FreeBSD
implement it, so there's nothing for it to be inconsistent with.
PR: 75862
Suggested by: bde
|
| |
|
|
|
|
| |
Approved by: alfred
|
|
|
|
| |
Approved by: alfred
|
|
|
|
| |
Approved by: alfred
|
|
|
|
|
|
| |
Bump FreeBSD_version to note this change.
Reviewed by: sobomax
|
|
|
|
|
|
| |
Document ttyname_r().
Simplify threaded/unthreaded stuff a lot.
|