Commit Graph

27791 Commits

Author SHA1 Message Date
jb
1078515ef6 Yikes, this is the worst of the lot. Bruce suggested doing this (!).
Include the architecture specific sys makefile like previously, but
what this contains differs. It defines MDASM which list architecture
specific asm code that *replaces* syscalls of the same name defined
in MIASM (which gets defined by the syscall.mk or netbsd_syscall.mk
dependent of NETBSD_SYSCALLS being defined). If a syscall has a
C source implementation or something funny done to it, or just doesn't
need default asm source generated for it, then it is listed in NOASM.

syscall.mk is generated by makesyscalls.sh with other syscall files.
netbsd_syscall.mk is a hand-generated equivalent. So if a new syscall
is added and no other makefiles are edited, it will automatically have
the default asm source generated for it (whether you want it or not).

Anything listed in MDASM gets added to SRCS and gets built. For
each syscall name in MIASM, if it doesn't exist in MDASM or NOASM,
it gets added to the ASM or ASMR lists to have code generated for it.
If the syscall name was listed in HIDDEN_SYSCALLS (intended for use
by libc_r, not libc which has it defined, but empty), then the name
is added to the ASMR list and gets renamed before being built;
otherwise it is added to the ASM list and gets built with the same
name.

I wonder if this is too complicated. But it works on both i386 and alpha.
1998-03-09 07:22:12 +00:00
jb
a949c65da4 Function to return a pointer to the non-threaded errno. This is declared
with a weak symbol so that it won't be linked when linking against
libc_r or libpthread.
1998-03-09 07:09:55 +00:00
jb
6fc77fcffa Compatibility functions for use when __NETBSD_SYSCALLS is defined. 1998-03-09 07:07:21 +00:00
jb
0e724de2cf Oops, we don't need NetBSD's malloc 'cause we can turn off utrace
in phk's malloc.
1998-03-09 07:03:06 +00:00
jb
1b6316f0e7 NetBSD doesn't have a utrace syscall, so don't define that if
__NETBSD_SYSCALLS is defined.
1998-03-09 07:00:38 +00:00
jb
aba00ab374 When forking a process, only the running thread gets to live. All
other threads never see the light of day and if they leave things
locked, blame POSIX.
1998-03-09 06:54:50 +00:00
jb
57eab44cdf Added #include <string.h> to get prototypes. 1998-03-09 06:51:23 +00:00
jb
b822200d69 Change MACHINE to MACHINE_ARCH.
Add _spinlock.c (stubs) to sources.

Nuke tahoe and vax.
1998-03-09 06:48:25 +00:00
jb
8571146da3 Stub functions for thread locking with weak symbols so that they are
only linked when not linking an application against libc_r or libpthread.
1998-03-09 06:46:21 +00:00
jb
a13044fdac This commit was generated by cvs2svn to compensate for changes in r34375,
which included commits to RCS files with non-trunk default branches.
1998-03-09 06:34:43 +00:00
jb
044863dc35 Import sources from NetBSD, tweaked for building in FreeBSD. 1998-03-09 06:34:43 +00:00
jb
fd80ee2265 MACHINE -> MACHINE_ARCH 1998-03-09 06:24:02 +00:00
jb
7bcfb2b05f Define empty variables in case no names are added to them. This avoids
substitution errors for variables that don't exist.

If a machine architecture dependent makefile exists, include it
to discover if libc or libc_r is being built with NetBSD syscalls
instead of FreeBSD ones.

Put a NO_QUAD thingy around the quad makefile so that 64-bit
architectures can ignore that sh*t.

In the test for MDSRCS being empty, add all MISRCS to SRCS, rather
than just ignoring them.
1998-03-09 06:21:41 +00:00
jb
19acd1aa26 Add an include path to private linc/libc_r/libpthread header files.
Define the HIDDEN_SYSCALLS macro as empty because libc doesn't have
renamed syscalls. This avoids an undefined macro error when
libc/sys/Makefile.inc goes to look though it. HIDDEN_SYSCALLS is
used by the equivalent makefile to this one in lib/libc_r to list
those syscalls that it needs to rename so that libc_r can provide
replacement functions.
1998-03-09 06:16:38 +00:00
jb
2d7cccd9cf We want ld in /usr/bin, not some weird and wonderful hiding place
that might be inspired by some creation from Intel. Doh.
1998-03-09 06:07:27 +00:00
jb
8cfaeb38b8 Updates to reflect differences in what NetBSD does and what FreeBSD
userland expects.
1998-03-09 05:53:13 +00:00
jb
5936ee903a Import NetBSD/Alpha headers needed to get the FreeBSD userland to compile
(and even run). These files don't necessarily make sense for a
FreeBSD/Alpha kernel build. That will come later and these files
will be changed accordingly.
1998-03-09 05:43:16 +00:00
jb
61880eb7f0 This commit was generated by cvs2svn to compensate for changes in r34368,
which included commits to RCS files with non-trunk default branches.
1998-03-09 05:43:16 +00:00
hosokawa
971d61ef3e Reviewed by: mike@smith.net.au
Submitted by:	nate@mt.sri.com
Removed global variables. (and style(9) fix.)
1998-03-09 05:18:59 +00:00
jb
50a31a7bd8 Add lib/libc/include as an directory to search for header files.
Change MACHINE references to MACHINE_ARCH.

Declare the names of the syscalls that need to be renamed to allow
for the functions that libc_r provides replacements for. This list
used to be in lib/libc/sys/Makefile.inc, but has been moved here
to keep that makefile tidy and remove the temptation for people to
add things to the list without adding a libc_r replacement function.
1998-03-09 05:09:43 +00:00
jb
18cde87bb0 Add a private (to libc, libc_r and libpthread) header file containing
prototypes for the spinlock functions that will be used for thread locks.
libc will have stubs declared with weak symbols. libpthread and libc_r
will have functions that really do something.
1998-03-09 05:05:32 +00:00
peter
b0d1291cc8 Both our a.out (hacked) gas and the binutils gas support .weak
Prompted by: bde
1998-03-09 04:47:58 +00:00
jb
ff740b6b07 Add FreeBSD/Alpha code to initialise a jmpbuf for a created thread.
Change a bunch of __alpha references to __alpha__.
1998-03-09 04:46:26 +00:00
jb
e96cb731c1 These files are very specific to FreeBSD kernels, so silently compile
no code when building a library with __NETBSD_SYSCALLS defined.
1998-03-09 04:42:19 +00:00
jb
c2a72d9ed9 NetBSD implements semctl using a __semctl syscall instead of the
semsys syscall that FreeBSD kernels use. Grumble. So make the call
dependent on if __NETBSD_SYSCALLS is defined.
1998-03-09 04:39:13 +00:00
jb
716f9dc369 getvfsbyname() doesn't existing NetBSD, so return ENOSYS if compiled
into a library with __NETBSD_SYSCALLS defined.
1998-03-09 04:36:07 +00:00
jb
632617caf9 Change a variable to type size_t to suit the sysctl prototype.
Add #include <string.h> to get prototypes.
1998-03-09 04:34:16 +00:00
jb
e08356d7d1 Cast pointer to a long instead of an int to keep a 64-bit compiler
happy. The code works either way, but I like a clean compile.
1998-03-09 04:29:00 +00:00
peter
b4375c6592 Only do a.out/elf switching on i386 family 1998-03-09 04:13:31 +00:00
jb
f79b9eb79a Add a file generated by makesyscalls.sh to the same directory that
the other syscall files are generated into. This new file is to be
included by src/lib/libc/sys/Makefile.inc to automatically pick up
syscall names.

The other file, netbsd_syscall.mk, is the hand-generated NetBSD
equivalent to be included by src/lib/libc/sys/Makefile.inc when
_NETBSD_SYSCALLS is defined during the build of libc/libc_r.
1998-03-09 04:05:45 +00:00
jb
a069106ffc Add statements to generate a sys/syscall.mk file for inclusion
during the libc/libc_r to automatically pick up syscall names on
the assumption that default asm code needs to generated for them.

In the up-coming changes to the libc makefiles, there is the option
to provide a machine dependent asm source file which will turn off
the automatic generation of the default. There is also an option
to just stop code being generated for a syscall. In most cases,
though, the default asm code is all that is required, so this
change makes that the most convenient was to do business.

Idea suggested by: bde
1998-03-09 04:00:42 +00:00
jb
dce663f91f This commit was generated by cvs2svn to compensate for changes in r34351,
which included commits to RCS files with non-trunk default branches.
1998-03-09 03:38:19 +00:00
jb
31cb88078d Import an extra source file from binutils 2.8.1 that is included on
alpha.
1998-03-09 03:38:19 +00:00
jb
64938d6e9c Add a FreeBSD entry for alpha-elf. 1998-03-09 03:34:53 +00:00
peter
b13939a64c Don't disable the use of $ in assembler labels.. It changes libstdc++
and libg++ so that they won't work with existing binaries (including
netscape!!).
1998-03-09 03:26:57 +00:00
steve
a1c51b8df5 Correct an ethernet framesize mismatch that caused poor
device performance among other things.

PR:		4989, 5910
Submitted by:	Yoshikazu Goto <gotoh@ae.anritsu.co.jp>
1998-03-09 03:07:54 +00:00
steve
46d271e654 Remove extraneous trailing \'s.
PR:		5949
Submitted by:	Studded@dal.net
1998-03-09 03:01:47 +00:00
steve
9c93b90fe6 Remove duplicate entries by changing tcp -> udp.
PR:		2882
1998-03-09 02:56:21 +00:00
jkh
f2ffce9385 Typo fixes.
PR:		5951
Submitted by:	Doug <Studded@dal.net>
1998-03-09 02:21:17 +00:00
jkh
d420ee7771 Nuke ircd entries - nobody can agree on what constitutes a reasonable
range for them and I'm %&#$%@! sorry I ever added them in the first place.
1998-03-09 02:16:58 +00:00
jb
78ec3b77f6 Import of alpha specific bits to configure binutils for FreeBSD/Alpha.
Other changes that affect the i386-elf work are on hold to avoid
stuffing up other work in progress.
1998-03-09 00:33:28 +00:00
jb
54b75d875f This commit was generated by cvs2svn to compensate for changes in r34336,
which included commits to RCS files with non-trunk default branches.
1998-03-09 00:33:28 +00:00
jb
403e7dc5b0 Update to build binutils (yay!), so that ar, ld, as, strip, nm, objcopy,
objdump all build out of the FreeBSD tree. At EDS we used to call this
a "significant emotional event".

Still using the lorder script from NetBSD until I can explain why the
is a difference in nm behaviour when the output looks the same.
1998-03-09 00:25:30 +00:00
dufault
6c0befce73 Preprocessor directives require a leading '#'
Submitted by:	ccsanady@friley585.res.iastate.edu
1998-03-09 00:15:08 +00:00
jdp
bf11b7e241 Fix a type mismatch between a scanf format string and the
corresponding argument.
1998-03-08 23:57:00 +00:00
brian
762d9b5e3c Explicitly call caused' an int'.
Sugested by: gcc-2.8
1998-03-08 23:39:33 +00:00
jb
05f2d83c90 Can build libc and libc_r on alpha now.
Changed MACHINE to MACHINE_ARCH with the expectation that pc98 will
use elf the same as i386.

Nuked tahoe and vax 'cause the files they reference aren't in the
tree. If you want vax goto NetBSD. If you want tahoe... tough.
1998-03-08 23:24:05 +00:00
dufault
b3bfa4c081 Remove AIO_LISTIO_MAX until it is done properly. 1998-03-08 22:29:56 +00:00
dufault
0f26b67c06 Put sigevent and AIO_LISTIO_MAX back in aio.h so
that kernels can be built.
1998-03-08 22:21:12 +00:00
jb
48d81656df My sched.h is getting walloped by Peter Dufault's. Nuke mine. Sorry. 1998-03-08 21:36:41 +00:00