Hajimu UMEMOTO
a87b3988c9
rename the NIS related fields to have yp_ prefix.
...
Suggested by: delphij
2005-04-18 18:34:58 +00:00
Xin LI
ffe49790ef
Do not check whether a pointer is NULL, since free(3) already takes care of
...
this case.
Reviewed by: ume
2005-04-18 03:45:23 +00:00
David Schultz
fe769cdd95
Add a sysctl that returns the full path of a process' text file.
...
This information is needed by things like `gdb -p' and Sun's javac,
and previously it could only be obtained via procfs
2005-04-18 02:10:37 +00:00
Tim Kientzle
48a54ddbd0
Portability enhancement: MS Windows won't restore metadata if the file
...
is still open, so close the file as soon as we've written the
file contents, before we attempt to restore metadata.
Thanks to: Kees Zeelenberg
2005-04-17 22:49:00 +00:00
Andrey A. Chernov
db7354df52
Fix truncl.3 MLINKS
2005-04-17 19:57:52 +00:00
Tim Kientzle
fec57dbcd5
Update "make distfile" to use newest automake/autoconf from ports.
...
Thanks to: Juergen Lock
2005-04-17 17:51:05 +00:00
Xin LI
6d44c5c74b
Fix build for !YP case.
...
BTW. Shall we change these fields to have yp_ prefix? That will make the
code easier to read.
2005-04-17 15:10:30 +00:00
Hajimu UMEMOTO
109e5709c0
libc-internal interfaces should have two underscores in front
...
of their names.
Pointed out by: das
2005-04-17 14:42:52 +00:00
Xin LI
5c83bb4912
Wrong working directory, sorry. The previous patch was what I have
...
seen in NetBSD's tree, and this one is what I have submitted for review.
Pointy hat to: me
2005-04-17 04:00:55 +00:00
Xin LI
f5d25e4900
Remove a check about whether sa->sa_len is equal to salen from
...
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
2005-04-17 03:56:07 +00:00
David Schultz
1be5319a76
Be bug-for-bug compatible with the C standard with respect to
...
printf("%#.0o", 0). Cite an amusing passage from a defect report.
2005-04-16 22:36:51 +00:00
David Schultz
a4ca7ca8ac
More optimized math functions.
2005-04-16 21:12:55 +00:00
David Schultz
2f2ee27de4
Implement truncl() based on floorl().
2005-04-16 21:12:47 +00:00
Robert Watson
a6c2bc8bcb
When parsing the second {uid,gid} in an identity phrase for ugidfw,
...
check the password or group database before attempting to parse as an
integer, as is done for the first {uid,gid} in an identity phrase.
Obtained from: TrustedBSD Project
Sponsored by: SPAWAR, SPARTA
2005-04-16 11:58:55 +00:00
Robert Watson
89afecd482
In practice, you need to include <sys/types.h> and
...
<security/mac_bsdextended/mac_bsdextended.h> in order to include
<ugidfw.h>, so document that.
MFC after: 3 days
2005-04-16 11:32:46 +00:00
Hajimu UMEMOTO
62e8b17d72
Now, our getservbyname(3) is thread-safe. So, we don't need
...
to protect it with mutex lock.
2005-04-15 18:15:12 +00:00
Hajimu UMEMOTO
96f79dca76
- add getserv{byname,byport,ent}_r for internal use within libc.
...
- make getserv{byname,byport,ent} thread-safe.
Reviewed by: gnn
2005-04-15 18:09:39 +00:00
Hajimu UMEMOTO
159d2a98c5
hostalias() is not thread-safe. So, introduce _res_hostalias()
...
and use it.
Obtained from: BIND9
2005-04-15 14:42:29 +00:00
Hajimu UMEMOTO
f35528f852
remove needless res_init() call.
...
Inspired by: NetBSD
2005-04-14 11:44:43 +00:00
Peter Wemm
c050415d18
Adapt the libpthread patch for using i386_set_gsbase() to libthr.
2005-04-14 00:44:07 +00:00
Peter Wemm
72a79166ea
Use the i386_set_gsbase() syscall if it is implemented in the kernel.
...
This is a little hairy here because the allocation and usage of this
functionality is split into two places in libpthread.
2005-04-14 00:13:20 +00:00
Peter Wemm
4453c6dc67
Attempt i386_set_gsbase() before using the user_ldt code. Unimplemented
...
sysarch() calls return EINVAL, not SIGSYS.. so we can trivially adapt.
2005-04-14 00:02:37 +00:00
Peter Wemm
53193c146a
Add stubs for the %fs/%gs base management calls.
2005-04-14 00:01:35 +00:00
Yoshihiro Takahashi
365971ecad
Merge two slice_type_name() functions.
2005-04-13 13:42:38 +00:00
David Xu
787e88a3ac
o Code cleanup, eliminate private thread id map, directly
...
use lwpid as thread id.
o Export tls pointer.
2005-04-13 04:57:38 +00:00
David Xu
b9da3fd798
Fill traceme and events fields.
2005-04-12 23:33:08 +00:00
David Xu
7a4cd8d366
Conditionally report initial thread event.
2005-04-12 03:13:49 +00:00
David Xu
4faae5e992
Add missing event reporting code.
2005-04-12 03:08:11 +00:00
David Xu
a80845eab1
Sync with debugger code in libthr.
2005-04-12 03:03:16 +00:00
David Xu
d245d9e13f
Add debugger event reporting support, current only TD_CREATE and TD_DEATH
...
events are reported.
2005-04-12 03:00:28 +00:00
Alan Cox
7e266fcd1f
Add a machine-specific, optimized implementation of strcat.
...
PR: 73111
Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD)
MFC after: 3 weeks
2005-04-10 18:58:49 +00:00
Alan Cox
fb41e04787
Eliminate a conditional branch and as a side-effect eliminate a branch to
...
a return instruction. (The latter is discouraged by the Opteron
optimization manual because it disables branch prediction for the return
instruction.)
Reviewed by: bde
2005-04-10 18:12:07 +00:00
Xin LI
13c273c81a
Remove duplicated "bytes".
...
Submitted by: Wojciech A. Koszek [dunstan freebsd czest pl]
PR: 79747
2005-04-10 12:15:25 +00:00
Alan Cox
6524eb94a1
Add a machine-specific, optimized implementation of strcpy.
...
PR: 73111
Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD)
MFC after: 3 weeks
2005-04-10 05:11:06 +00:00
Alan Cox
e5dd4df84c
Add a machine-specific, optimized implementation of strcmp.
...
PR: 73111
Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD)
MFC after: 3 weeks
2005-04-09 20:47:08 +00:00
Hajimu UMEMOTO
e8ffd81605
unbreak build without YP defined.
...
Submitted by: Andrea Campi <andrea+freebsd_cvs_at_webcom.it>
2005-04-09 14:20:18 +00:00
Stefan Farfeleder
cf00abe993
Remove unused variables and assignments.
2005-04-08 21:24:23 +00:00
Stefan Farfeleder
fd42c4d829
Use prototypes in the function definitions.
2005-04-08 21:15:38 +00:00
Stefan Farfeleder
e413b7d2f8
Remove unused variable.
2005-04-08 20:58:47 +00:00
Alan Cox
26f6218be9
Add machine-specific, optimized implementations of bcmp and memcmp.
...
PR: 73111
Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD)
MFC after: 3 weeks
2005-04-08 05:15:55 +00:00
Alan Cox
b5c9ad687a
Eliminate unneeded instructions that are a vestige of mechanical
...
translation from i386.
2005-04-08 05:10:18 +00:00
David Schultz
07f3bc5b9c
Add roundl(), lroundl(), and llroundl().
2005-04-08 01:24:08 +00:00
David Schultz
4bb190a74b
These files should include s_lround.c instead of s_lrint.c.
...
This only matters for efficiency, not for correctness.
2005-04-08 00:52:27 +00:00
David Schultz
fc87986708
Fix a (coincidentally harmless) bug.
2005-04-08 00:52:16 +00:00
Olivier Houchard
e0d6cac076
Use the new atomic_cmpset_32().
2005-04-07 22:06:05 +00:00
David Xu
62a2d99ce5
Adjust hash function for smaller pthread structure size.
2005-04-07 06:09:17 +00:00
Alan Cox
0417d4e3e9
Eliminate an unneeded instruction that is a vestige of mechanical
...
translation from i386.
2005-04-07 05:46:46 +00:00
Peter Wemm
8d6f45f534
Fix strict-alias warnings by removing excessive (and wrong) casts.
2005-04-07 04:33:15 +00:00
Alan Cox
91c09a383a
Add machine-specific, optimized implementations of bcopy, bzero, memcpy,
...
memmove, and memset.
PR: 73111
Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD)
MFC after: 3 weeks
2005-04-07 03:56:03 +00:00
Hajimu UMEMOTO
2424b11851
- we are no longer shareing any resources to be locked between
...
getaddrinfo(3) and getipnodeby*(3).
- use definitions in reentrant.h.
- remove obsolete comment.
2005-04-06 15:36:34 +00:00