kan
efa3870bbf
Do not try to store 64 bits into 32 bit errno variable. With the changed libc
...
data layout, this was corrupting _PathLocale variable leading to programs
dumping core in non-default locales.
2005-04-21 12:47:08 +00:00
jkoshy
f721107265
Add event aliases for P6 and K8 PMCs.
2005-04-21 05:50:25 +00:00
marcel
c7673a8a31
Build libpmc on all architectures (FWIW :-)
...
Ok'd by: jkoshy@
2005-04-20 20:50:32 +00:00
marcel
24142cab5d
o Do not include <machine/pmc_mdep.h>. It's automaticly included for
...
us when <sys/pmc.h> is included.
o Replace "#if __i386__" and "#if __amd64__" with the equivalent of
"#ifdef __i386__" and "#ifdef __amd64__" (resp.) These tokens are
not defined on all platforms.
o Conditionally compile pmc_parse_mask() on i386 and amd64 only. It's
only referenced there. This will change when support for other
platforms is added, of course.
Ok'd by: jkoshy@
2005-04-20 20:48:24 +00:00
jkoshy
19ca551dc4
Remove extra Id keyword.
2005-04-20 05:36:43 +00:00
jkoshy
0e598d84b7
Remove superfluous CFLAGS lines. Use the conditional '?=' construct
...
for WARNS lines.
Submitted by: ru
2005-04-19 14:43:59 +00:00
ume
9af2b42712
- add getproto{byname,bynumber,ent}_r for internal use within libc.
...
- make getproto{byname,bynumber,ent} thread-safe.
2005-04-19 14:41:13 +00:00
ume
6164476dea
- nuke deprecated and unused getnodeby(3).
...
- remove unused variable.
Obtained from: KAME
2005-04-19 12:28:17 +00:00
jkoshy
dc3444cd91
Bring a working snapshot of hwpmc(4), its associated libraries, userland utilities
...
and documentation into -CURRENT.
Bump FreeBSD_version.
Reviewed by: alc, jhb (kernel changes)
2005-04-19 04:01:25 +00:00
ume
6dfe72cfb9
rename the NIS related fields to have yp_ prefix.
...
Suggested by: delphij
2005-04-18 18:34:58 +00:00
delphij
3460f32839
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
das
5aec008257
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
kientzle
a46546658e
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
ache
60e7539065
Fix truncl.3 MLINKS
2005-04-17 19:57:52 +00:00
kientzle
877f4c482e
Update "make distfile" to use newest automake/autoconf from ports.
...
Thanks to: Juergen Lock
2005-04-17 17:51:05 +00:00
delphij
a524a21406
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
ume
04a684b008
libc-internal interfaces should have two underscores in front
...
of their names.
Pointed out by: das
2005-04-17 14:42:52 +00:00
delphij
ba35b6aa76
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
delphij
90a7ec34ec
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
das
bdb6987b1d
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
das
9c49c2a65a
More optimized math functions.
2005-04-16 21:12:55 +00:00
das
a9fd105354
Implement truncl() based on floorl().
2005-04-16 21:12:47 +00:00
rwatson
c2d86096e6
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
rwatson
74350013ae
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
ume
aedac4ef3a
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
ume
0e0eae8d50
- 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
ume
b8a79c699c
hostalias() is not thread-safe. So, introduce _res_hostalias()
...
and use it.
Obtained from: BIND9
2005-04-15 14:42:29 +00:00
ume
61d715cfa6
remove needless res_init() call.
...
Inspired by: NetBSD
2005-04-14 11:44:43 +00:00
peter
c1d476c931
Adapt the libpthread patch for using i386_set_gsbase() to libthr.
2005-04-14 00:44:07 +00:00
peter
03d84df307
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
3692814aa2
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
d07b2f1b2c
Add stubs for the %fs/%gs base management calls.
2005-04-14 00:01:35 +00:00
nyan
db5f8a5b7b
Merge two slice_type_name() functions.
2005-04-13 13:42:38 +00:00
davidxu
03aa59f2ee
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
davidxu
1f525cc190
Fill traceme and events fields.
2005-04-12 23:33:08 +00:00
davidxu
3093d067e4
Conditionally report initial thread event.
2005-04-12 03:13:49 +00:00
davidxu
bc36c64c8d
Add missing event reporting code.
2005-04-12 03:08:11 +00:00
davidxu
6b1b88e88d
Sync with debugger code in libthr.
2005-04-12 03:03:16 +00:00
davidxu
2cf5eeb001
Add debugger event reporting support, current only TD_CREATE and TD_DEATH
...
events are reported.
2005-04-12 03:00:28 +00:00
alc
b2ebe16689
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
alc
420be8df92
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
delphij
ecb578572b
Remove duplicated "bytes".
...
Submitted by: Wojciech A. Koszek [dunstan freebsd czest pl]
PR: 79747
2005-04-10 12:15:25 +00:00
alc
417aec058f
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
alc
654c522ae8
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
ume
1b9c36cc46
unbreak build without YP defined.
...
Submitted by: Andrea Campi <andrea+freebsd_cvs_at_webcom.it>
2005-04-09 14:20:18 +00:00
stefanf
d1df2201c0
Remove unused variables and assignments.
2005-04-08 21:24:23 +00:00
stefanf
edc96e2497
Use prototypes in the function definitions.
2005-04-08 21:15:38 +00:00
stefanf
460f9ad102
Remove unused variable.
2005-04-08 20:58:47 +00:00
alc
1ab7d22f97
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
alc
02ae1b51e3
Eliminate unneeded instructions that are a vestige of mechanical
...
translation from i386.
2005-04-08 05:10:18 +00:00