freebsd-skq/lib/libc
peter 8de1f8b9b5 This is kind of a hack, but it should work. Currently, world is broken
because libc/rpc/key_call.c references uname(), and ps/print.c also
defines uname(), and ps is linked statically.  This leads to a symbol
clash.  The userland uname(3) kinda sucked anyway as the hostname
etc was too short.  And since the libc rpc interface now uses
the utsname.nodename which gets truncated, I was tempted into doing
something about it.  Create a new userland uname function, called
__xuname() which takes an extra argument that allows you to change
the size of the fields.  uname() becomes a static inline function
in sys/utsname.h that passes the extra argument in.  struct utsname
has its field members expanded by default now in userland.
We still provide a 'uname' externally linkable function for things
that either think that they ``know'' the utsname format and assume
32 character strings and bypass the include file, or objects that
are linked against old libcs.  ie: just about every plausible
case that I can think of is covered.  Should we ever change the
default lengths again, a libc major bump should not be required
as the size is now passed to the function.

XXX the uname(2) in the kernel is for FreeBSD 1.1 binary compatability!
All the uname(3) functions that are exported to userland are actually
implemented in libc with sysctl.  uname(1) uses sysctl directly and
does not call uname(3).

PR:		bin/4688
2001-03-24 04:40:49 +00:00
..
alpha Clean up syscall generation in libc by removing HIDDEN_SYSCALLS 2001-01-29 03:23:46 +00:00
amd64 Clean up syscall generation in libc by removing HIDDEN_SYSCALLS 2001-01-29 03:23:46 +00:00
compat-43 Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
db mdoc(7) cleanup. 2001-02-12 15:16:24 +00:00
gen This is kind of a hack, but it should work. Currently, world is broken 2001-03-24 04:40:49 +00:00
gmon Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
i386 Clean up syscall generation in libc by removing HIDDEN_SYSCALLS 2001-01-29 03:23:46 +00:00
ia64 Use relative paths to find byte_swap_*.S to make it easier to use these 2001-03-06 16:08:19 +00:00
include Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) and 2001-03-19 12:50:13 +00:00
locale Implement D_MD_ORDER (local extension) to get month/day order from locale 2001-03-19 11:55:12 +00:00
mips
mipseb
mipsel
net IPv4 address is not unsigned int. This change introduces in_addr_t. 2001-03-23 18:59:31 +00:00
nls Use .Rv macro instead of hardcoded message 2001-02-12 08:42:56 +00:00
posix1e mdoc(7) police: fix markup. 2001-03-23 14:01:28 +00:00
quad
regex mdoc(7) police: fixed the weird construct. 2001-02-09 09:08:53 +00:00
rpc Fix rcsid/$FreeBSD$. 2001-03-24 00:22:13 +00:00
stdio Fix style nit. 2001-03-05 11:10:12 +00:00
stdlib Make tdelete(3), tfind(3), and twalk(3) links to tsearch(3). 2001-03-15 01:53:17 +00:00
stdtime Get rid of non-standard %E[Ff] formats, userland apps already fixed 2001-03-21 14:52:12 +00:00
string .St -ansiC -> .St -isoC 2001-02-26 13:23:47 +00:00
sys Make it clear who can and can't set the UF_NODUMP, UF_OPAQUE, and 2001-03-19 23:51:09 +00:00
xdr Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) and 2001-03-19 12:50:13 +00:00
yp Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
Makefile Fix the current libc breakage in current: 2001-02-16 06:11:22 +00:00
Makefile.inc