Commit Graph

2292 Commits

Author SHA1 Message Date
jb
f49610cadf 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
bde
e27017f09d Fixed the usual missing dependencies on headers generated by rpcgen. 1998-05-10 15:54:22 +00:00
bde
4c940db692 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
0f3c94a21f 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
bde
151aaf93dd Simplified by using new yacc rules. 1998-05-08 06:43:07 +00:00
jb
0963eb5597 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
jb
185a79fd64 Remote the NetBSD kludge for vfprintf.c 1998-05-08 05:17:11 +00:00
jb
2bfdc76a9f 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
jb
e51e3f6a89 Use the thread-aware errno definition all the time. 1998-05-05 22:07:02 +00:00
jb
d6ec07b4f4 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
jb
7e146968d9 Remove extern int errno and #include <errno.h> to get the proper definition. 1998-05-05 22:04:13 +00:00
jb
59f991b3e7 Remove leading underscores from the FILE lock functions that POSIX
specifies.
1998-05-05 22:02:29 +00:00
jb
abb1e4e78f Remove leading underscores for the functions (weak symbols here) that
POSIX defines.
1998-05-05 21:56:42 +00:00
jb
9d8bc2de84 The __set_ospeed() function is coded against the speed_t type declared
in termios.h, but it's prototype in termcap.h and the main file use
the underlying definition (which is now an int, not a long for
compatibility with NetBSD). Really termcap.h should use speed_t too,
but I guess that this might break sources that don't include termios.h
first.
1998-05-05 21:54:26 +00:00
jb
7a3940c104 Treat the lock value as volatile. 1998-05-05 21:47:58 +00:00
jb
deeed33999 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
rnordier
8eaf407618 Fix a few nits in quoted code fragments and elsewhere. 1998-05-04 23:16:50 +00:00
jb
9cd9104a87 Force BOOTSTRAP mode all the time while the headers are broken on alpha
as the result of i386 changes.
1998-05-04 02:06:09 +00:00
jraynard
ed117dff86 Typo fixes 1998-05-03 22:59:47 +00:00
jraynard
1656507891 Typo fix. 1998-05-03 22:50:14 +00:00
jraynard
9211c4d512 Pedantry (NULL -> NUL). 1998-05-03 22:42:45 +00:00
jraynard
c7cff2d20c Don't imply sigset_t == int. 1998-05-03 22:27:29 +00:00
peter
5bb1ec446d Add libbind 1998-05-03 05:06:13 +00:00
peter
459fe62b97 Build libbind for named and friends (not installed in /usr/lib) 1998-05-03 05:04:21 +00:00
peter
fedfb91291 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
2e115675f8 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
jb
badd156592 Cleanup in the child, not the parent.
Submitted by: Tor Egge <Tor.Egge@idi.ntnu.no>
1998-05-02 03:42:20 +00:00
brian
7c4b920246 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
bde
7c748f97a7 Fixed disordering and other style bugs in rev.1.50. 1998-05-01 15:46:06 +00:00
brian
7187f6a9c3 connect() returns -1 on error - not 0. 1998-05-01 01:16:39 +00:00
jb
0d33dcfa10 Fix the incremental priority increment.
PR: bin/6467 Marino Ladavac <lada@pc8811.gud.siemens.at>
1998-04-30 21:50:29 +00:00
ache
4dfc17e28f Add reference to setlocale(3) 1998-04-30 16:11:50 +00:00
ache
eb0bd19233 Add reference to catopen(3) 1998-04-30 16:07:54 +00:00
ache
17b2dd915a Return -1 for invalid descriptor in catclose 1998-04-30 13:15:31 +00:00
ache
f1053fff57 If passed catgets descriptor is NULL or -1, return default string immediately 1998-04-30 12:25:05 +00:00
ache
49e36af497 Force loadType to 0 1998-04-30 11:39:08 +00:00
ache
218d8dfdad Implement NL_CAT_LOCALE
Manpages cleanup
1998-04-30 11:06:12 +00:00
ache
58873d7886 Prototypes/typedefs cleanup
Fix error return codes
1998-04-30 10:14:55 +00:00
jb
96a1d834ad 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
jb
0969c323e8 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
jb
4460aad9b5 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
jb
8d4e711fea 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
jb
9c1691d11b 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
jb
fe3e52614e Change the name of this source file so that libc_r builds it instead
of the one in libc that contains the weak symbol for __error. FreeBSD's
make accumulates paths to the point that it can find *anything*, possibly
including the car keys.
1998-04-30 09:04:10 +00:00
jmz
fad1137798 Resurrect exit.c
PR:		misc/6433
1998-04-29 22:43:18 +00:00
ache
dd508b2f30 Basic support for LC_MESSAGES 1998-04-29 22:39:56 +00:00
jb
49642f714d Add spinlock. 1998-04-29 11:03:34 +00:00
jb
e9b0f7892b Change signal model to match POSIX (i.e. one set of signal handlers
for the process, not a separate set for each thread). By default, the
process now only has signal handlers installed for SIGVTALRM, SIGINFO
and SIGCHLD. The thread kernel signal handler is installed for other
signals on demand. This means that SIG_IGN and SIG_DFL processing is now
left to the kernel, not the thread kernel.

Change the signal dispatch to no longer use a signal thread, and
call the signal handler using the stack of the thread that has the
signal pending.

Change the atomic lock method to use test-and-set asm code with
a yield if blocked. This introduces separate locks for each type
of object instead of blocking signals to prevent a context
switch. It was this blocking of signals that caused the performance
degradation the people have noted.

This is a *big* change!
1998-04-29 09:59:34 +00:00
jb
a3285d96fe Don't need wrappers for longjmp/setjmp anymore. 1998-04-29 09:40:51 +00:00
jb
c809fdbdc5 Remove empty files that were renamed some time ago. 1998-04-29 09:39:34 +00:00