Commit Graph

30998 Commits

Author SHA1 Message Date
jb
bdd99ad743 Make this internal build tool static to avoid trying to use shared
libraries before the shared loader has been installed.
1998-08-17 11:56:22 +00:00
jb
efa82e7822 Remove the PATH setting. 1998-08-17 11:43:25 +00:00
des
c08f5296c3 Cross my fingers and enable libfetch. 1998-08-17 09:32:07 +00:00
des
b315880890 Commit a bunch of patches that have been accumulating:
- Fix the README to reflect the new status of the ftp code.
 - Change tons of 'if (xxx < 0)' to 'if (xxx == -1)'
 - Add two new interface functions
 - Fix the Makefile so it actually works (yay!)

Now the manpage is lagging even further behind... :( Next on the todo
list is to clean up the http code.
1998-08-17 09:30:19 +00:00
dfr
277f8e55a3 Don't use unaligned accesses when printing extended sense codes. 1998-08-17 09:24:31 +00:00
dfr
c4be7fbe0d Add macros for accessing device memory. 1998-08-17 08:57:05 +00:00
dfr
2cfb34146c Update to use the new elf headers. 1998-08-17 08:47:19 +00:00
dfr
571e764758 Add Miata system type and pull in the LOCATE_PCS macro from NetBSD. 1998-08-17 08:26:12 +00:00
dfr
9892f6ef43 Add breakpoint() for BREAK_TO_DEBUGGER. 1998-08-17 08:21:31 +00:00
kato
752b7f7829 Sync with sys/i386/isa/lpt.c revision 1.70. 1998-08-17 08:21:09 +00:00
dfr
988c605cbc Update to work with the new elf headers. 1998-08-17 08:06:31 +00:00
dfr
e6912eb9df Update to use elf_generic.h. 1998-08-17 08:05:55 +00:00
dfr
c6e0f3c5a9 Disable some unnecessary debugging code. 1998-08-17 08:04:42 +00:00
dfr
72c760c68b Teach disklabel how to install a bootstrap on an alpha with SRM console. 1998-08-17 07:43:54 +00:00
gpalmer
8f925ed929 lorder is needed on the alpha too 1998-08-17 07:37:55 +00:00
brian
ab64c29a02 Don't lose an allocated pointer if realloc() fails.
Free it instead.
Pointed out by: Theo de Raadt
1998-08-17 06:42:40 +00:00
jb
49f35df526 Remove a cast and print the pointer value with %p instead of %x. 1998-08-17 06:16:59 +00:00
jb
e68854cf15 Ad #include stdlib.h to get the prototype for malloc(). 1998-08-17 06:05:55 +00:00
gpalmer
f4add9d96c We need config to build on the alpha also ... kinda difficult to build
kernels without it :)
1998-08-17 05:48:22 +00:00
jdp
0d5b915ae3 Add "-C" to INSTALLFLAGS to install atomically. An elf->elf
installworld dies at this point otherwise, leaving the system
without a dynamic linker.
1998-08-17 04:59:15 +00:00
jb
542d7ab6fb Remove support for NetBSD syscalls. 1998-08-17 03:46:10 +00:00
jb
87c7d8300d Remove the comment about how to get NetBSD syscalls since there are
now programs built on alpha that _must_ use FreeBSD syscalls to work.
1998-08-17 03:35:09 +00:00
jkoshy
14da528054 Remove hardcoded constant in favour of login.conf value.
PR: 	6529
Submitted by:	Dan Lukes <dan@obluda.cz>
1998-08-17 03:25:07 +00:00
bde
08a3400100 Fixed printf format errors. 1998-08-17 01:05:25 +00:00
bde
e36ab6ee5e Fixed printf format errors. sppp_dotted_quad() was yet another private,
broken, version of inet_ntoa().  It should go away.
1998-08-17 00:29:34 +00:00
bde
962153c89f FIxed printf format errors. Most of them were exposed by our ntohl()
returning long.  There would be many more if int_32_t were not int.
1998-08-17 00:08:07 +00:00
bde
62f78df80f Fixed printf format and spelling errors. Didn't fix related
description of DPT_SHUTDOWN_SLEEP in LINT.  Didn't add timestamps
so that the (combined?) sleep interval can be printed as intended
in the original printf.
1998-08-16 23:37:54 +00:00
jb
2a0559f121 Alpha is now native and bootstrapping from NetBSD is no longer supported. 1998-08-16 23:35:49 +00:00
wpaul
7d27aa48db Ack! I edited the MLINKS entry but forgot to add xl.4 to the MAN$=
line. *hangs head in shame*
1998-08-16 19:54:20 +00:00
wpaul
ec2970db84 Whoops... really add the man page and update the Makefile this
time.
1998-08-16 17:19:58 +00:00
wpaul
0dafb8f420 Mention XL driver and that 3c905B cards are now supported. Also add
xl entry to the interfaces config table.
1998-08-16 17:17:46 +00:00
wpaul
c688848d99 Mention that XL driver and that 3c905B cards are not supported. 1998-08-16 17:16:07 +00:00
wpaul
e55024e4a5 Import the (Fast) Etherlink XL driver. I'm reasonally confident in its
stability now. ALso modify /sys/conf/files, /sys/i386/conf/GENERIC
and /sys/i386/conf/LINT to add entries for the XL driver. Deactivate
support for the XL adapters in the vortex driver. LAstly, add a man
page.

(Also added an MLINKS entry for the ThunderLAN man page which I forgot
previously.)
1998-08-16 17:14:59 +00:00
des
62d97a08f1 Enable kernel dumps on SLICE systems. 1998-08-16 11:27:19 +00:00
des
7259d16a8d Fix typo in previous commit.
PR:		7621
Submitted by:	Mark Huizer
1998-08-16 10:38:02 +00:00
jkh
6dec0a8cf5 Add new zh_TW.BIG5 locale 1998-08-16 10:32:15 +00:00
jdp
dfd721300d Make ELF kernels build again. 1998-08-16 04:19:03 +00:00
jdp
d1ce81d497 Revamp the ELF include files to better support architecture-independent
applications.  Here's how it works.

The kernel should include <machine/elf.h> to get the definitions
for the native architecture.  It can reference the various ELF
structures with generic names like Elf_Sym, Elf_Shdr, etc.  A define
__ELF_WORD_SIZE is also available with the value 32 or 64 as
appropriate for the native architecture.

Generic applications should include <elf.h>, which is just a wrapper
for <machine/elf.h>.

Applications such as object file dumpers that need to deal with
foreign ELF files can include <sys/elf32.h> and/or <sys/elf64.h>.
Both can be included from the same source file if desired.  The
structure names must be referenced using wordsize-specific names
like Elf32_Sym, Elf64_Shdr, etc.

I haven't change the alpha stuff, but I haven't broken it either.
1998-08-16 03:03:38 +00:00
bde
b48943eaac Fixed a style bug (a long line) in the previous commit. 1998-08-16 01:47:19 +00:00
jkh
6d5ffb0b01 Make provisions for a pre-build script that one can use to frob the
chroot tree right after everything has been checked out and we're ready
to go.
1998-08-16 01:24:40 +00:00
bde
9e27b29fba Use [u]intptr_t instead of [u_]long for casts between pointers and
integers.  Don't forget to cast to (void *) as well.
1998-08-16 01:21:52 +00:00
bde
e14b44bbf3 Cast an int to (intptr_t) before casting it to (void *).
Don't cast a pointer to a long just to print it.
1998-08-16 01:04:48 +00:00
jkh
ae29a59a45 Add BINFORMAT awareness. 1998-08-16 00:57:08 +00:00
bde
0277aae350 Fixed yet more ioctl breakage due to the type of the `cmd' arg chaninging
from int to u_long but not changing here.
1998-08-16 00:57:07 +00:00
jkh
bdc9587444 Trim more out of the boot floppy so that it fits in 1.44MB again. 1998-08-16 00:44:29 +00:00
bde
9fa8a2d794 pmap.c:
Cast pointers to (vm_offset_t) instead of to (u_long) (as before) or to
(uintptr_t)(void *) (as would be more correct).  Don't cast vm_offset_t's
to (u_long) just to do arithmetic on them.

mp_machdep.c:
Cast pointers to (uintptr_t) instead of to (u_long).  Don't forget
to cast pointers to (void *) first or to recover from integral
possible integral promotions, although this is too much work for
machine-dependent code.

vm code generally avoids warnings for pointer vs long size mismatches
by using vm_offset_t to represent pointers; pmap.c often uses plain
`unsigned int' instead of vm_offset_t and didn't use u_long elsewhere,
but this style was messed up by code apparently imported from mp_machdep.c.
1998-08-16 00:41:40 +00:00
bde
8814b380eb Use an array of uintptr_t's instead of an array of u_longs to hold
address constants.  This fixes some warnings for conversions from
64-bit integers to 32-bit pointers on i386's with 64-bit longs.
vm86 still uses too many u_longs.
1998-08-16 00:05:05 +00:00
bde
c96f169902 Cast to `char *' instead of to u_long to help add byte offsets to
pointers.  Neither is portable, but "correct" casts to integral
types are much uglier - they lead to expressions like

        ptr = (struct struct_with_too_long_a_name *)(void *)(uintptr_t)
	    ((uintptr_t)(void *)ptr + offset);

Here the cast to the struct pointer is to match the surrounding
style of this file (and not depend on C's feature of properly
converting `void *' on assignment or cast), the `void *' casts are
because uintptr_t is only specified to work on `void *' pointers
(I missed this in about 100 lines of previous changes from [u]long
to [u]intptr_t), the outer cast to a uintptr_t is in case the
addition promoted the type, and the inner cast to a uintptr_t
corresponds to the one cast to an integer in the original code.

Don't depend on gcc's feature of casting lvalues.
1998-08-15 23:06:38 +00:00
bde
a1f9eb2f92 Oops, the printf format error fixes confused curp->area with a pointer. 1998-08-15 22:42:20 +00:00
bde
5f7c8e3023 Oops, the previous fix confused Linux's sigset_t with a pointer type.
It can be integral or a struct in POSIX, so it is difficult to print,
but it is actually declared as unsigned long.  Assume that it is
unsigned integral.
1998-08-15 22:29:43 +00:00