43bsd.git
7 years agoAdd VAX and PDP-11 architecture reference manuals master origin/master
Nick Downing [Sat, 4 Feb 2017 14:52:00 +0000 (01:52 +1100)]
Add VAX and PDP-11 architecture reference manuals

7 years agoStarted to get VAX-targeted lib/libc build working, can build up to gen/abort.c
Nick Downing [Fri, 3 Feb 2017 17:07:29 +0000 (04:07 +1100)]
Started to get VAX-targeted lib/libc build working, can build up to gen/abort.c

7 years agoPost-ansification changes for lib/c2
Nick Downing [Fri, 3 Feb 2017 14:40:47 +0000 (01:40 +1100)]
Post-ansification changes for lib/c2

7 years agoAnsified lib/c2
Nick Downing [Fri, 3 Feb 2017 14:39:38 +0000 (01:39 +1100)]
Ansified lib/c2

7 years agoPre-ansification changes for lib/c2
Nick Downing [Fri, 3 Feb 2017 13:55:44 +0000 (00:55 +1100)]
Pre-ansification changes for lib/c2

7 years agoPost-ansification changes for lib/pcc
Nick Downing [Fri, 3 Feb 2017 12:58:42 +0000 (23:58 +1100)]
Post-ansification changes for lib/pcc

7 years agoAnsified lib/pcc
Nick Downing [Fri, 3 Feb 2017 12:58:00 +0000 (23:58 +1100)]
Ansified lib/pcc

7 years agoPre-ansification changes for lib/pcc
Nick Downing [Fri, 3 Feb 2017 11:02:49 +0000 (22:02 +1100)]
Pre-ansification changes for lib/pcc

7 years agoFix minor bugs in xified C compiler and linker scripts, tidy up argument vector
Nick Downing [Thu, 2 Feb 2017 14:29:41 +0000 (01:29 +1100)]
Fix minor bugs in xified C compiler and linker scripts, tidy up argument vector

7 years agoPost-ansification changes for lib/cpp
Nick Downing [Thu, 2 Feb 2017 13:49:35 +0000 (00:49 +1100)]
Post-ansification changes for lib/cpp

7 years agoAnsified lib/cpp
Nick Downing [Thu, 2 Feb 2017 13:46:55 +0000 (00:46 +1100)]
Ansified lib/cpp

7 years agoPre-ansification changes for lib/cpp
Nick Downing [Thu, 2 Feb 2017 12:34:18 +0000 (23:34 +1100)]
Pre-ansification changes for lib/cpp

7 years agoRemove the sed fixup of va_arg() after xification, as it's not needed for VAX
Nick Downing [Thu, 2 Feb 2017 12:30:32 +0000 (23:30 +1100)]
Remove the sed fixup of va_arg() after xification, as it's not needed for VAX

7 years agoXifier now discovers typedefs by itself, and doesn't require a wrapper script
Nick Downing [Thu, 2 Feb 2017 12:19:36 +0000 (23:19 +1100)]
Xifier now discovers typedefs by itself, and doesn't require a wrapper script

7 years agoMake xifier use #pragma keyword and #pragma typedef to discover special words
Nick Downing [Thu, 2 Feb 2017 10:54:15 +0000 (21:54 +1100)]
Make xifier use #pragma keyword and #pragma typedef to discover special words

7 years agoGet top level build script n.sh working again, improve path auto detect stuff
Nick Downing [Thu, 2 Feb 2017 10:17:05 +0000 (21:17 +1100)]
Get top level build script n.sh working again, improve path auto detect stuff

7 years agoChange xified C compiler and linker so that xification occurs after preprocessing...
Nick Downing [Thu, 2 Feb 2017 06:43:40 +0000 (17:43 +1100)]
Change xified C compiler and linker so that xification occurs after preprocessing instead of before, then host C compiler does its own preprocessing pass, with any preprocessor directives intended for host escaped with a #pragma prefix

7 years agoPost-ansification changes for usr.bin/lex
Nick Downing [Tue, 31 Jan 2017 12:56:22 +0000 (23:56 +1100)]
Post-ansification changes for usr.bin/lex

7 years agoAnsified usr.bin/lex
Nick Downing [Tue, 31 Jan 2017 12:36:08 +0000 (23:36 +1100)]
Ansified usr.bin/lex

7 years agoPre-ansification changes for usr.bin/lex
Nick Downing [Tue, 31 Jan 2017 11:26:07 +0000 (22:26 +1100)]
Pre-ansification changes for usr.bin/lex

7 years agoMake overriding of malloc() also include __malloc(), __libc_malloc(), etc
Nick Downing [Tue, 31 Jan 2017 11:16:41 +0000 (22:16 +1100)]
Make overriding of malloc() also include __malloc(), __libc_malloc(), etc

7 years agoPost-ansification changes for usr.bin/yacc
Nick Downing [Tue, 31 Jan 2017 10:36:37 +0000 (21:36 +1100)]
Post-ansification changes for usr.bin/yacc

7 years agoAnsified usr.bin/yacc
Nick Downing [Tue, 31 Jan 2017 10:22:25 +0000 (21:22 +1100)]
Ansified usr.bin/yacc

7 years agoPre-ansification changes for usr.bin/yacc
Nick Downing [Tue, 31 Jan 2017 09:17:01 +0000 (20:17 +1100)]
Pre-ansification changes for usr.bin/yacc

7 years agoPost-ansification changes for usr.bin/find
Nick Downing [Tue, 31 Jan 2017 07:53:53 +0000 (18:53 +1100)]
Post-ansification changes for usr.bin/find

7 years agoAnsified usr.bin/find
Nick Downing [Tue, 31 Jan 2017 07:40:42 +0000 (18:40 +1100)]
Ansified usr.bin/find

7 years agoPre-ansification changes for usr.bin/find
Nick Downing [Tue, 31 Jan 2017 07:23:21 +0000 (18:23 +1100)]
Pre-ansification changes for usr.bin/find

7 years agoPost-ansification changes for usr.bin
Nick Downing [Tue, 31 Jan 2017 05:51:14 +0000 (16:51 +1100)]
Post-ansification changes for usr.bin

7 years agoAnsified usr.bin
Nick Downing [Tue, 31 Jan 2017 05:43:42 +0000 (16:43 +1100)]
Ansified usr.bin

7 years agoPre-ansification changes for usr.bin
Nick Downing [Tue, 31 Jan 2017 04:50:46 +0000 (15:50 +1100)]
Pre-ansification changes for usr.bin

7 years agoGet csh working, add tests
Nick Downing [Tue, 31 Jan 2017 04:34:28 +0000 (15:34 +1100)]
Get csh working, add tests

7 years agoFix issue of host malloc() ruining the heap in bin/sh, fix pathnames in cc, diff...
Nick Downing [Tue, 31 Jan 2017 03:03:29 +0000 (14:03 +1100)]
Fix issue of host malloc() ruining the heap in bin/sh, fix pathnames in cc, diff, ld, add proper emulation of mode_t for stat and friends, add system calls

7 years agoFix minor bugs in linux/sys directory emulation and bin/sh filename globbing
Nick Downing [Mon, 30 Jan 2017 13:46:09 +0000 (00:46 +1100)]
Fix minor bugs in linux/sys directory emulation and bin/sh filename globbing

7 years agoAdditional system calls, can run bin/sh and use system quite reasonably now
Nick Downing [Mon, 30 Jan 2017 13:09:26 +0000 (00:09 +1100)]
Additional system calls, can run bin/sh and use system quite reasonably now

7 years agoChange isatty() emulation to (incomplete) TIOCGETP emulation, so sh displays $
Nick Downing [Mon, 30 Jan 2017 07:56:32 +0000 (18:56 +1100)]
Change isatty() emulation to (incomplete) TIOCGETP emulation, so sh displays $

7 years agoPost-ansification changes for bin/sh
Nick Downing [Mon, 30 Jan 2017 05:11:21 +0000 (16:11 +1100)]
Post-ansification changes for bin/sh

7 years agoAnsified bin/sh
Nick Downing [Mon, 30 Jan 2017 05:11:11 +0000 (16:11 +1100)]
Ansified bin/sh

7 years agoPre-ansification changes for bin/sh
Nick Downing [Mon, 30 Jan 2017 00:09:26 +0000 (11:09 +1100)]
Pre-ansification changes for bin/sh

7 years agoPost-demacification changes for bin/sh
Nick Downing [Mon, 30 Jan 2017 00:07:42 +0000 (11:07 +1100)]
Post-demacification changes for bin/sh

7 years agoDemacified bin/sh
Nick Downing [Mon, 30 Jan 2017 00:06:47 +0000 (11:06 +1100)]
Demacified bin/sh

7 years agoPre-demacification changes for bin/sh
Nick Downing [Sun, 29 Jan 2017 16:27:21 +0000 (03:27 +1100)]
Pre-demacification changes for bin/sh

7 years agoPost-ansification changes for bin/sed
Nick Downing [Sun, 29 Jan 2017 15:53:42 +0000 (02:53 +1100)]
Post-ansification changes for bin/sed

7 years agoAnsified bin/sed
Nick Downing [Sun, 29 Jan 2017 15:53:30 +0000 (02:53 +1100)]
Ansified bin/sed

7 years agoPre-ansification changes for bin/sed
Nick Downing [Sun, 29 Jan 2017 15:40:57 +0000 (02:40 +1100)]
Pre-ansification changes for bin/sed

7 years agoPost-ansification changes for bin/diff
Nick Downing [Sun, 29 Jan 2017 15:22:28 +0000 (02:22 +1100)]
Post-ansification changes for bin/diff

7 years agoAnsified bin/diff
Nick Downing [Sun, 29 Jan 2017 15:22:13 +0000 (02:22 +1100)]
Ansified bin/diff

7 years agoPre-ansification changes for bin/diff
Nick Downing [Sun, 29 Jan 2017 14:50:04 +0000 (01:50 +1100)]
Pre-ansification changes for bin/diff

7 years agoPost-ansification changes for bin/csh
Nick Downing [Sun, 29 Jan 2017 05:32:43 +0000 (16:32 +1100)]
Post-ansification changes for bin/csh

7 years agoAnsified bin/csh
Nick Downing [Sun, 29 Jan 2017 05:31:00 +0000 (16:31 +1100)]
Ansified bin/csh

7 years agoPre-ansification changes for bin/csh
Nick Downing [Sat, 28 Jan 2017 11:40:32 +0000 (22:40 +1100)]
Pre-ansification changes for bin/csh

7 years agoAdd syscalls, and implement an emulation of BSD-style directory files via a tempfile...
Nick Downing [Sat, 28 Jan 2017 05:29:49 +0000 (16:29 +1100)]
Add syscalls, and implement an emulation of BSD-style directory files via a tempfile, so that ls and tar work (need to implement utimes next, so tar can untar)

7 years agoFix in-core struct nlist and struct ranlib issue in ld and nm, add syscalls
Nick Downing [Fri, 27 Jan 2017 06:13:01 +0000 (17:13 +1100)]
Fix in-core struct nlist and struct ranlib issue in ld and nm, add syscalls

7 years agoImprove syscalls emulation on Linux, so bin/as can run and print sensible error
Nick Downing [Fri, 27 Jan 2017 01:48:39 +0000 (12:48 +1100)]
Improve syscalls emulation on Linux, so bin/as can run and print sensible error

7 years agoPost-ansification changes for bin/as
Nick Downing [Thu, 26 Jan 2017 14:48:16 +0000 (01:48 +1100)]
Post-ansification changes for bin/as

7 years agoPre-ansification changes for bin/as
Nick Downing [Wed, 25 Jan 2017 22:34:25 +0000 (09:34 +1100)]
Pre-ansification changes for bin/as

7 years agoPost-ansification changes for bin/adb
Nick Downing [Wed, 25 Jan 2017 12:41:24 +0000 (23:41 +1100)]
Post-ansification changes for bin/adb

7 years agoPost-ansification changes for bin/adb
Nick Downing [Wed, 25 Jan 2017 11:49:29 +0000 (22:49 +1100)]
Post-ansification changes for bin/adb

7 years agoAnsified bin/adb
Nick Downing [Wed, 25 Jan 2017 11:49:06 +0000 (22:49 +1100)]
Ansified bin/adb

7 years agoPre-ansification changes for bin/adb
Nick Downing [Wed, 25 Jan 2017 10:18:50 +0000 (21:18 +1100)]
Pre-ansification changes for bin/adb

7 years agoDemacify and uniqify bin/adb
Nick Downing [Wed, 25 Jan 2017 10:17:06 +0000 (21:17 +1100)]
Demacify and uniqify bin/adb

7 years agoCreate demac.sh, demac.sed, uniqify.sed to automatically fix up bin/adb stuff
Nick Downing [Wed, 25 Jan 2017 05:18:56 +0000 (16:18 +1100)]
Create demac.sh, demac.sed, uniqify.sed to automatically fix up bin/adb stuff

7 years agoPost-ansification changes for bin
Nick Downing [Tue, 24 Jan 2017 15:36:46 +0000 (02:36 +1100)]
Post-ansification changes for bin

7 years agoAnsified bin
Nick Downing [Tue, 24 Jan 2017 15:35:03 +0000 (02:35 +1100)]
Ansified bin

7 years agoPre-ansification changes for bin
Nick Downing [Tue, 24 Jan 2017 11:18:30 +0000 (22:18 +1100)]
Pre-ansification changes for bin

7 years agoPost-ansification changes for include, lib/libc, sys
Nick Downing [Tue, 24 Jan 2017 10:49:41 +0000 (21:49 +1100)]
Post-ansification changes for include, lib/libc, sys

7 years agoAnsified include, lib/libc, sys
Nick Downing [Tue, 24 Jan 2017 10:40:36 +0000 (21:40 +1100)]
Ansified include, lib/libc, sys

7 years agoPre-ansification changes for lib/libc
Nick Downing [Tue, 24 Jan 2017 08:05:22 +0000 (19:05 +1100)]
Pre-ansification changes for lib/libc

7 years agoRevert include, lib/libc, sys to 0126836 except for conversion scripts n.sh etc
Nick Downing [Tue, 24 Jan 2017 07:56:33 +0000 (18:56 +1100)]
Revert include, lib/libc, sys to 0126836 except for conversion scripts n.sh etc

7 years agoPre-ansification changes for bin
Nick Downing [Tue, 24 Jan 2017 02:34:04 +0000 (13:34 +1100)]
Pre-ansification changes for bin

7 years agoImprove ansify.sh, can now add DOSCCS/DOCOPYRIGHT stuff, add fixmake.sh which changes...
Nick Downing [Tue, 24 Jan 2017 02:30:22 +0000 (13:30 +1100)]
Improve ansify.sh, can now add DOSCCS/DOCOPYRIGHT stuff, add fixmake.sh which changes Makefiles to use ${CC} and ${LD}, fix bugs in ansify.sh if no *.h files

7 years agoPost ansification changes for bin/tp, program can run and print some messages
Nick Downing [Mon, 23 Jan 2017 15:42:18 +0000 (02:42 +1100)]
Post ansification changes for bin/tp, program can run and print some messages

7 years agoAnsified bin/tp
Nick Downing [Mon, 23 Jan 2017 15:13:58 +0000 (02:13 +1100)]
Ansified bin/tp

7 years agoNew scripts/ansify.sh, pre-ansification changes to bin/tp for data declarations
Nick Downing [Mon, 23 Jan 2017 15:06:43 +0000 (02:06 +1100)]
New scripts/ansify.sh, pre-ansification changes to bin/tp for data declarations

7 years agoTidy up xified C compiler to use relative paths and not fake out explicit paths
Nick Downing [Mon, 23 Jan 2017 10:26:13 +0000 (21:26 +1100)]
Tidy up xified C compiler to use relative paths and not fake out explicit paths

7 years agoPermanently apply manual edits (over the automatically applied ANSIfication transform...
Nick Downing [Mon, 23 Jan 2017 06:47:15 +0000 (17:47 +1100)]
Permanently apply manual edits (over the automatically applied ANSIfication transformation) previously in post.patch to include, libc, sys, delete from libx_c

7 years agoMake include/Makefile install the new header files like sys.h for each group
Nick Downing [Mon, 23 Jan 2017 06:32:29 +0000 (17:32 +1100)]
Make include/Makefile install the new header files like sys.h for each group

7 years agoPermanently apply the ANSIfication source code transformations to include, libc and...
Nick Downing [Mon, 23 Jan 2017 06:29:03 +0000 (17:29 +1100)]
Permanently apply the ANSIfication source code transformations to include, libc and sys, if we should want to run the scripts again we will have to branch at the previous commit, re-run the scripts, and then rebase following commits on top

7 years agoMove groups.txt, conflicts.txt, p.sh, q.sh, r.sh, s.sh, reinstate.sh in libx_c to...
Nick Downing [Mon, 23 Jan 2017 06:12:03 +0000 (17:12 +1100)]
Move groups.txt, conflicts.txt, p.sh, q.sh, r.sh, s.sh, reinstate.sh in libx_c to groups.txt, conflicts.txt, o.sh, p.sh, q.sh, r.sh, s.sh in libc respectively, update so that they can perform the libc source code transformations in place

7 years agoFix incorrect assignment of nlist.c to nlist.h (should be a.out.h), fix ordering...
Nick Downing [Mon, 23 Jan 2017 06:03:11 +0000 (17:03 +1100)]
Fix incorrect assignment of nlist.c to nlist.h (should be a.out.h), fix ordering of removing redundant headers that are pulled in anyway to make it predictable

7 years agoCorrect a bug in cproto path resolution, correct a missing include for sys/select...
Nick Downing [Mon, 23 Jan 2017 03:53:28 +0000 (14:53 +1100)]
Correct a bug in cproto path resolution, correct a missing include for sys/select.c that should have been in pre.patch before applying it to lib/libc, change make install routine for include directory to apply permission 644 not 444, correct a missing install of net.h that should have been in include/Makefile

7 years agoFix makefile in include and lib/libc to reflect recent changes (they have to be teste...
Nick Downing [Sun, 22 Jan 2017 11:29:51 +0000 (22:29 +1100)]
Fix makefile in include and lib/libc to reflect recent changes (they have to be tested), make build script n.sh (in root of repo) invoke the xified C compiler and linker using the PATH so makefile can use cc and ld not just ${CC} and ${LD}

7 years agoPermanently apply syscall stubs and pre.patch changes to various directories
Nick Downing [Mon, 23 Jan 2017 02:14:55 +0000 (13:14 +1100)]
Permanently apply syscall stubs and pre.patch changes to various directories

7 years agoMove pre.patch from n.sh into o.sh since o.sh is properly part of the n.sh syscalls...
Nick Downing [Mon, 23 Jan 2017 01:59:55 +0000 (12:59 +1100)]
Move pre.patch from n.sh into o.sh since o.sh is properly part of the n.sh syscalls stubs generation and we want the final stubs applied to lib/libc/sys, move "#endif XXX" and "XXX {" stuff again, from o.sh into p.sh, since objectionable

7 years agoMove most Makefile changes from post.patch to pre.patch to reflect the other restruct...
Nick Downing [Sun, 22 Jan 2017 09:39:17 +0000 (20:39 +1100)]
Move most Makefile changes from post.patch to pre.patch to reflect the other restructuring done in pre.patch, rationalize ntohl() and friends in a better way

7 years agoMove the "#endif XXX" and "XXX {" stuff from n.sh into o.sh changing pre.patch to...
Nick Downing [Sun, 22 Jan 2017 08:59:05 +0000 (19:59 +1100)]
Move the "#endif XXX" and "XXX {" stuff from n.sh into o.sh changing pre.patch to reflect this, since these changes are part of the ANSIfication and otherwise could seem objectionable, make syslog.c use varargs.h, provide default vopen()

7 years agoReinstate extra s.sh script to remove useless includes that are pulled in anyway...
Nick Downing [Sun, 22 Jan 2017 02:38:20 +0000 (13:38 +1100)]
Reinstate extra s.sh script to remove useless includes that are pulled in anyway, also reinstate the check that headers compile, but in a separate script t.sh, and using the xified C compiler rather than gcc -nostdinc which complains a lot

7 years agoMove bcopy() and friends into strings.h, move mkdir(), mknod() and friends into sys...
Nick Downing [Sun, 22 Jan 2017 01:41:18 +0000 (12:41 +1100)]
Move bcopy() and friends into strings.h, move mkdir(), mknod() and friends into sys/stat.h, make <stdint.h> and XintXX_t non-xified, tidy up Xintptr_t stuff

7 years agoNow have a scheme to delete stale xified sources as we traverse the include path...
Nick Downing [Sun, 22 Jan 2017 00:43:35 +0000 (11:43 +1100)]
Now have a scheme to delete stale xified sources as we traverse the include path not finding the original source, to prevent gcc finding stale ones by accident

7 years agoNow have proper xification of dependencies even if main file hasn't changed
Nick Downing [Sun, 22 Jan 2017 00:21:05 +0000 (11:21 +1100)]
Now have proper xification of dependencies even if main file hasn't changed

7 years agoAutomatic xification of dependencies using a pipe to receive dependencies from xifyfi...
Nick Downing [Sat, 21 Jan 2017 17:50:16 +0000 (04:50 +1100)]
xification of dependencies using a pipe to receive dependencies from xifyfilt as they are discovered, it works okay but is vulnerable to indirect dependencies being changed or deleted, so I'll have to use a file instead of a pipe

7 years agoNow have caching of xified C sources using a modification time check
Nick Downing [Sat, 21 Jan 2017 15:59:27 +0000 (02:59 +1100)]
Now have caching of xified C sources using a modification time check

7 years agoMake xified linker automatically create links like .xify/libx_c.a -> ../libc.a
Nick Downing [Sat, 21 Jan 2017 11:51:35 +0000 (22:51 +1100)]
Make xified linker automatically create links like .xify/libx_c.a -> ../libc.a

7 years agoPut libx_c makefiles almost back to standard, by using xifying C compiler
Nick Downing [Sat, 21 Jan 2017 10:28:28 +0000 (21:28 +1100)]
Put libx_c makefiles almost back to standard, by using xifying C compiler

7 years agoRedo the xified cc based on bin/cc.c, also add an xified ld based on bin/ld.c
Nick Downing [Sat, 21 Jan 2017 06:32:56 +0000 (17:32 +1100)]
Redo the xified cc based on bin/cc.c, also add an xified ld based on bin/ld.c

7 years agoInstall the xification and xified C compiler in a sensible place and fix paths
Nick Downing [Fri, 20 Jan 2017 06:43:56 +0000 (17:43 +1100)]
Install the xification and xified C compiler in a sensible place and fix paths

7 years agoAdd a transparently xifying C compiler in xify/cc, need to fix hard coded paths
Nick Downing [Fri, 20 Jan 2017 05:19:22 +0000 (16:19 +1100)]
Add a transparently xifying C compiler in xify/cc, need to fix hard coded paths

7 years agoGet fopen() and friends working properly, also perror(), fix vopen() prototype
Nick Downing [Fri, 20 Jan 2017 04:12:21 +0000 (15:12 +1100)]
Get fopen() and friends working properly, also perror(), fix vopen() prototype

7 years agoRationalize arguments to syscalls, make unimplemented syscalls report on stderr befor...
Nick Downing [Fri, 20 Jan 2017 03:20:32 +0000 (14:20 +1100)]
Rationalize arguments to syscalls, make unimplemented syscalls report on stderr before aborting, implement some more syscalls for linux hosted version

7 years agoUpdate post.patch, some more char *->void * adjustments
Nick Downing [Fri, 20 Jan 2017 01:13:41 +0000 (12:13 +1100)]
Update post.patch, some more char *->void * adjustments

7 years agoMove libstdc to libx_c
Nick Downing [Fri, 20 Jan 2017 01:04:02 +0000 (12:04 +1100)]
Move libstdc to libx_c