Nick Downing [Thu, 2 Feb 2017 13:49:35 +0000 (00:49 +1100)]
Post-ansification changes for lib/cpp
Nick Downing [Thu, 2 Feb 2017 13:46:55 +0000 (00:46 +1100)]
Ansified lib/cpp
Nick Downing [Thu, 2 Feb 2017 12:34:18 +0000 (23:34 +1100)]
Pre-ansification changes for lib/cpp
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
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
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
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
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
Nick Downing [Tue, 31 Jan 2017 12:56:22 +0000 (23:56 +1100)]
Post-ansification changes for usr.bin/lex
Nick Downing [Tue, 31 Jan 2017 12:36:08 +0000 (23:36 +1100)]
Ansified usr.bin/lex
Nick Downing [Tue, 31 Jan 2017 11:26:07 +0000 (22:26 +1100)]
Pre-ansification changes for usr.bin/lex
Nick Downing [Tue, 31 Jan 2017 11:16:41 +0000 (22:16 +1100)]
Make overriding of malloc() also include __malloc(), __libc_malloc(), etc
Nick Downing [Tue, 31 Jan 2017 10:36:37 +0000 (21:36 +1100)]
Post-ansification changes for usr.bin/yacc
Nick Downing [Tue, 31 Jan 2017 10:22:25 +0000 (21:22 +1100)]
Ansified usr.bin/yacc
Nick Downing [Tue, 31 Jan 2017 09:17:01 +0000 (20:17 +1100)]
Pre-ansification changes for usr.bin/yacc
Nick Downing [Tue, 31 Jan 2017 07:53:53 +0000 (18:53 +1100)]
Post-ansification changes for usr.bin/find
Nick Downing [Tue, 31 Jan 2017 07:40:42 +0000 (18:40 +1100)]
Ansified usr.bin/find
Nick Downing [Tue, 31 Jan 2017 07:23:21 +0000 (18:23 +1100)]
Pre-ansification changes for usr.bin/find
Nick Downing [Tue, 31 Jan 2017 05:51:14 +0000 (16:51 +1100)]
Post-ansification changes for usr.bin
Nick Downing [Tue, 31 Jan 2017 05:43:42 +0000 (16:43 +1100)]
Ansified usr.bin
Nick Downing [Tue, 31 Jan 2017 04:50:46 +0000 (15:50 +1100)]
Pre-ansification changes for usr.bin
Nick Downing [Tue, 31 Jan 2017 04:34:28 +0000 (15:34 +1100)]
Get csh working, add tests
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
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
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
Nick Downing [Mon, 30 Jan 2017 07:56:32 +0000 (18:56 +1100)]
Change isatty() emulation to (incomplete) TIOCGETP emulation, so sh displays $
Nick Downing [Mon, 30 Jan 2017 05:11:21 +0000 (16:11 +1100)]
Post-ansification changes for bin/sh
Nick Downing [Mon, 30 Jan 2017 05:11:11 +0000 (16:11 +1100)]
Ansified bin/sh
Nick Downing [Mon, 30 Jan 2017 00:09:26 +0000 (11:09 +1100)]
Pre-ansification changes for bin/sh
Nick Downing [Mon, 30 Jan 2017 00:07:42 +0000 (11:07 +1100)]
Post-demacification changes for bin/sh
Nick Downing [Mon, 30 Jan 2017 00:06:47 +0000 (11:06 +1100)]
Demacified bin/sh
Nick Downing [Sun, 29 Jan 2017 16:27:21 +0000 (03:27 +1100)]
Pre-demacification changes for bin/sh
Nick Downing [Sun, 29 Jan 2017 15:53:42 +0000 (02:53 +1100)]
Post-ansification changes for bin/sed
Nick Downing [Sun, 29 Jan 2017 15:53:30 +0000 (02:53 +1100)]
Ansified bin/sed
Nick Downing [Sun, 29 Jan 2017 15:40:57 +0000 (02:40 +1100)]
Pre-ansification changes for bin/sed
Nick Downing [Sun, 29 Jan 2017 15:22:28 +0000 (02:22 +1100)]
Post-ansification changes for bin/diff
Nick Downing [Sun, 29 Jan 2017 15:22:13 +0000 (02:22 +1100)]
Ansified bin/diff
Nick Downing [Sun, 29 Jan 2017 14:50:04 +0000 (01:50 +1100)]
Pre-ansification changes for bin/diff
Nick Downing [Sun, 29 Jan 2017 05:32:43 +0000 (16:32 +1100)]
Post-ansification changes for bin/csh
Nick Downing [Sun, 29 Jan 2017 05:31:00 +0000 (16:31 +1100)]
Ansified bin/csh
Nick Downing [Sat, 28 Jan 2017 11:40:32 +0000 (22:40 +1100)]
Pre-ansification changes for bin/csh
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)
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
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
Nick Downing [Thu, 26 Jan 2017 14:48:16 +0000 (01:48 +1100)]
Post-ansification changes for bin/as
Nick Downing [Wed, 25 Jan 2017 22:34:25 +0000 (09:34 +1100)]
Pre-ansification changes for bin/as
Nick Downing [Wed, 25 Jan 2017 12:41:24 +0000 (23:41 +1100)]
Post-ansification changes for bin/adb
Nick Downing [Wed, 25 Jan 2017 11:49:29 +0000 (22:49 +1100)]
Post-ansification changes for bin/adb
Nick Downing [Wed, 25 Jan 2017 11:49:06 +0000 (22:49 +1100)]
Ansified bin/adb
Nick Downing [Wed, 25 Jan 2017 10:18:50 +0000 (21:18 +1100)]
Pre-ansification changes for bin/adb
Nick Downing [Wed, 25 Jan 2017 10:17:06 +0000 (21:17 +1100)]
Demacify and uniqify bin/adb
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
Nick Downing [Tue, 24 Jan 2017 15:36:46 +0000 (02:36 +1100)]
Post-ansification changes for bin
Nick Downing [Tue, 24 Jan 2017 15:35:03 +0000 (02:35 +1100)]
Ansified bin
Nick Downing [Tue, 24 Jan 2017 11:18:30 +0000 (22:18 +1100)]
Pre-ansification changes for bin
Nick Downing [Tue, 24 Jan 2017 10:49:41 +0000 (21:49 +1100)]
Post-ansification changes for include, lib/libc, sys
Nick Downing [Tue, 24 Jan 2017 10:40:36 +0000 (21:40 +1100)]
Ansified include, lib/libc, sys
Nick Downing [Tue, 24 Jan 2017 08:05:22 +0000 (19:05 +1100)]
Pre-ansification changes for lib/libc
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
Nick Downing [Tue, 24 Jan 2017 02:34:04 +0000 (13:34 +1100)]
Pre-ansification changes for bin
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
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
Nick Downing [Mon, 23 Jan 2017 15:13:58 +0000 (02:13 +1100)]
Ansified bin/tp
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
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
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
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
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
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
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
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
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}
Nick Downing [Mon, 23 Jan 2017 02:14:55 +0000 (13:14 +1100)]
Permanently apply syscall stubs and pre.patch changes to various directories
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
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
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()
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
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
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
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
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
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
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
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
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
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
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
Nick Downing [Fri, 20 Jan 2017 04:12:21 +0000 (15:12 +1100)]
Get fopen() and friends working properly, also perror(), fix vopen() prototype
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
Nick Downing [Fri, 20 Jan 2017 01:13:41 +0000 (12:13 +1100)]
Update post.patch, some more char *->void * adjustments
Nick Downing [Fri, 20 Jan 2017 01:04:02 +0000 (12:04 +1100)]
Move libstdc to libx_c
Nick Downing [Fri, 20 Jan 2017 00:58:11 +0000 (11:58 +1100)]
Add modf() so that printf() works with floating point formats
Nick Downing [Thu, 19 Jan 2017 13:14:53 +0000 (00:14 +1100)]
Now have isatty(), getpagesize(), write(), fstat(), sbrk() and "hello, world"!
Nick Downing [Thu, 19 Jan 2017 12:45:35 +0000 (23:45 +1100)]
Can now compile hello program, it aborts at the first unimplemented system call
Nick Downing [Thu, 19 Jan 2017 11:33:48 +0000 (22:33 +1100)]
Start converting Makefiles, add linux/csu/crt0.c and linux/sys/write.c
Nick Downing [Thu, 19 Jan 2017 10:12:45 +0000 (21:12 +1100)]
Now converted all of libstdc to compile without errors under gcc
Nick Downing [Thu, 19 Jan 2017 09:38:10 +0000 (20:38 +1100)]
More int->void fixups and function pointer argument types added with __P((...))
Nick Downing [Thu, 19 Jan 2017 09:05:19 +0000 (20:05 +1100)]
Make a post-patching scheme, use it to add ANSI C compatibility for signals etc
Nick Downing [Thu, 19 Jan 2017 04:37:41 +0000 (15:37 +1100)]
Significant progress on getting libstdc to compile, fixed various missing or lax declarations, conflicts, bugs in the conversion scripts, and so on
Nick Downing [Wed, 18 Jan 2017 16:02:47 +0000 (03:02 +1100)]
Can now compile headers with gcc