Peter Wemm
f202e67dfe
Nuke signanosleep()
1998-05-14 11:36:16 +00:00
John Birrell
9a6a1cbee4
Cast a pointer to a long, not an int and make the arg passed to the function
...
a long too (it does have a proper prototype).
1998-05-11 09:10:38 +00:00
John Birrell
adaa81ba92
Cast a pointer to a long, not an int before masking it.
1998-05-10 21:22:47 +00:00
John Birrell
cc4473c104
Remove 'of type long' from a sentence talking about four 4-byte values
...
because that is wrong on alpha.
1998-05-10 21:21:01 +00:00
Bruce Evans
881b7b471b
Fixed the usual missing dependencies on headers generated by rpcgen.
1998-05-10 15:54:22 +00:00
Bruce Evans
ee4b699da3
Fixed the usual missing dependencies on headers generated by rpcgen.
...
Use rpcgen's -C option, although using it for non-headers breaks K&R
support. A local copy of yp.h is built to avoid adding
-I/usr/include/rpcsvc to CFLAGS. This version of yp.h differed from
<rpcsvc/yp.h> only in not declaring prototypes.
Fixed style bugs.
1998-05-09 15:10:53 +00:00
Brian Somers
ec791cadb1
Add a BUGS section and describe a problem I've been having for
...
a few weeks now.
1998-05-09 14:45:06 +00:00
John Birrell
184fcab826
This is a hack to workaround source that is coded to use long variables
...
but also assumes that they are 32-bits. This is one place where I don't
think it is appropriate to change 'long' to 'int'. I don't see why the
code couldn't be fixed so that using natural long variables does the
right thing. It's spaggetti code so it'll take some effort. Obviously
NetBSD thought so too because they change 'long' to 'int32_t' etc
and left it at that. As a temporary measure FreeBSD/Alpha can use the
NetBSD code and put this on the list of things to fix.
1998-05-08 05:41:57 +00:00
John Birrell
f9a8e5fafb
Remote the NetBSD kludge for vfprintf.c
1998-05-08 05:17:11 +00:00
John Birrell
77af5d1ac8
Don't assign the va_list variable 'ap' directly to the argtable because
...
va_list is not a pointer on alpha. Instead, use the va_arg() macro
to return the address that is stored in the argtable.
1998-05-08 05:10:32 +00:00
John Birrell
b2dd537249
Use the thread-aware errno definition all the time.
1998-05-05 22:07:02 +00:00
John Birrell
75831c5b8f
Build the syscalls (in libc, not libc_r) with weak symbols so that
...
libpthread can override them as required.
1998-05-05 22:06:16 +00:00
John Birrell
e659da100d
Remove extern int errno and #include <errno.h> to get the proper definition.
1998-05-05 22:04:13 +00:00
John Birrell
e095485cdb
Remove leading underscores from the FILE lock functions that POSIX
...
specifies.
1998-05-05 22:02:29 +00:00
John Birrell
4c717fd74d
Remove leading underscores for the functions (weak symbols here) that
...
POSIX defines.
1998-05-05 21:56:42 +00:00
John Birrell
f1daac6f22
In a threaded library, expect the lock field to be declared volatile,
...
so provide function prototypes that respect that, avoiding a gcc
warning that `volatile' is being thrown away.
1998-05-05 21:46:30 +00:00
Robert Nordier
a55fccb456
Fix a few nits in quoted code fragments and elsewhere.
1998-05-04 23:16:50 +00:00
James Raynard
b92f77cae9
Typo fix.
1998-05-03 22:50:14 +00:00
James Raynard
66c15901aa
Pedantry (NULL -> NUL).
1998-05-03 22:42:45 +00:00
James Raynard
e6488a0f2f
Don't imply sigset_t == int.
1998-05-03 22:27:29 +00:00
Peter Wemm
9e39714518
Resolve some unexpected differences when comparing with the 2.2 version.
...
One bug was relatively harmless (select's timeout had an uninitialized
tv_usec), the other I'm not so sure.. (neglected to catch select returns
less than zero). Both of these were irrelevant on kernels with poll().
1998-05-02 15:51:54 +00:00
Peter Wemm
c8d2fd6da8
Update libc dns code to 4.9.7-T1B level. This involved chopping out large
...
chunks of res_comp.c and replacing it with chunks of bind-8.1.1's resolver
code. (There are no interface changes though)
The other parts are better bounds checking related.
1998-05-02 13:11:02 +00:00
Brian Somers
8d41a9efa3
Go back to version 1.16 - it was correct the way it was.
...
Pointed out by: bde
1998-05-01 19:41:12 +00:00
Bruce Evans
daf5eba573
Fixed disordering and other style bugs in rev.1.50.
1998-05-01 15:46:06 +00:00
Brian Somers
e79dc52bbf
connect() returns -1 on error - not 0.
1998-05-01 01:16:39 +00:00
Andrey A. Chernov
d1793ae420
Add reference to setlocale(3)
1998-04-30 16:11:50 +00:00
Andrey A. Chernov
271632b02b
Add reference to catopen(3)
1998-04-30 16:07:54 +00:00
Andrey A. Chernov
e3b0c2a695
Return -1 for invalid descriptor in catclose
1998-04-30 13:15:31 +00:00
Andrey A. Chernov
e97ef24c18
If passed catgets descriptor is NULL or -1, return default string immediately
1998-04-30 12:25:05 +00:00
Andrey A. Chernov
9ad256ad65
Force loadType to 0
1998-04-30 11:39:08 +00:00
Andrey A. Chernov
c897062234
Implement NL_CAT_LOCALE
...
Manpages cleanup
1998-04-30 11:06:12 +00:00
Andrey A. Chernov
1adba262d7
Prototypes/typedefs cleanup
...
Fix error return codes
1998-04-30 10:14:55 +00:00
John Birrell
9b7c9bc4f8
Oops, backout the previous change having confused my underscores.
...
__thread_create is a syscall that uses the default asm. It is
_thread_create that contains specific asm code, but that lives in
libpthread.
1998-04-30 10:02:44 +00:00
John Birrell
26dac90648
Change the description of errno to match the thread-aware implementation
...
from 3.0 on. With 3.0 being a major release, now is a good time to do
this.
1998-04-30 09:49:59 +00:00
John Birrell
3fece7a1aa
Make cerror thread aware by calling __error() to get a pointer to the
...
thread-specific error variable. This change make libc use the same cerror
code that libc_r has been using.
1998-04-30 09:32:48 +00:00
John Birrell
68f87034f2
The syscall that creates a kernel thread is coming, but it doesn't use the
...
default syscall asm, so add it to NOASM. The other syscalls that manipulate
kernel threads use the default asm code, so they just get built
automatically.
1998-04-30 09:30:50 +00:00
John Birrell
cf6229a854
Build __error.c into libc, but not libc_r. The weak symbol in the
...
file works with libpthread, but when built into libc_r which has a non-weak
symbol of the same name, the linker behaves unpredicatably and sometimes
links the wrong symbol. The linker behaviour is a byproduct of what
the program calls from object to object so it is like winning a lottery
if the program actually works. The odds are quite good - 95:1, I think.
We need a sure thing, though, so weak symbols can't be used instead
of renaming things.
1998-04-30 09:13:48 +00:00
Andrey A. Chernov
0b5e953b91
Basic support for LC_MESSAGES
1998-04-29 22:39:56 +00:00
John Birrell
5178bcd1cf
Stop renaming these in libc_r because wrappered versions don't make sense.
...
PR: i386/4826, bin/5953
1998-04-29 09:14:35 +00:00
John Birrell
72b42edfd4
Replace the threaded locking with spinlock calls for both threaded
...
and non-threaded programs. This makes malloc thread safe for linking
with libpthread and kernel threads.
Reviewed by: phk
1998-04-29 09:10:58 +00:00
John Birrell
96c76d66db
Reference an external variable in threaded programs so that the
...
autoinitialiser gets linked in and therefore called before main().
1998-04-29 09:08:43 +00:00
John Birrell
7317e6b1fd
Use signal() in both the threaded and non-threaded cases.
1998-04-29 09:06:13 +00:00
John Birrell
f0f62729ee
Stubs are required in libc so that it can be used with libpthread
...
(and kernel threads), but weak symbols and non-weak symbols of the
same name built into libc_r result in unpredictable linking.
1998-04-29 09:02:16 +00:00
David Greenman
ec3a3b4594
Oops, revert part of a diff that wasn't supposed to have been committed.
1998-04-28 07:02:33 +00:00
David Greenman
214bed53a2
Cache the results of the ps_strings sysctl so that it doesn't have to be
...
redone for every call of setproctitle().
1998-04-28 06:59:14 +00:00
Poul-Henning Kamp
b37727fff9
sigprocmask()' man page references
sigmask()' in synopsis.
...
Note odd `sigmask()' line in synopsis. `sigsetops(3)' is better suited
for `sigprocmask' and is already referenced from the manual page.
(`sigmask()' is useful for the older (& deprecated) `sigsetmask()' API).
PR: 6395
Reviewed by: phk
Submitted by: Joseph Koshy <koshy@india.hp.com>
1998-04-26 06:19:24 +00:00
Andrey A. Chernov
1e0b4d8238
Make asctime_r static if !_THREAD_SAFE to prevent namespace pollution and
...
prototype mismatch
1998-04-25 00:00:57 +00:00
Robert Nordier
ac51e2822d
Improve description.
...
Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
1998-04-22 19:59:55 +00:00
Dima Ruban
b4d829b84f
indent
1998-04-20 22:13:50 +00:00
Poul-Henning Kamp
4f6eb9ceed
Add a #ifdef _THREAD_SAFE around ctime_r
1998-04-20 10:09:37 +00:00