43bsd.git
7 years agoAdd modf() so that printf() works with floating point formats
Nick Downing [Fri, 20 Jan 2017 00:58:11 +0000 (11:58 +1100)]
Add modf() so that printf() works with floating point formats

7 years agoNow have isatty(), getpagesize(), write(), fstat(), sbrk() and "hello, world"!
Nick Downing [Thu, 19 Jan 2017 13:14:53 +0000 (00:14 +1100)]
Now have isatty(), getpagesize(), write(), fstat(), sbrk() and "hello, world"!

7 years agoCan now compile hello program, it aborts at the first unimplemented system call
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

7 years agoStart converting Makefiles, add linux/csu/crt0.c and linux/sys/write.c
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

7 years agoNow converted all of libstdc to compile without errors under gcc
Nick Downing [Thu, 19 Jan 2017 10:12:45 +0000 (21:12 +1100)]
Now converted all of libstdc to compile without errors under gcc

7 years agoMore int->void fixups and function pointer argument types added with __P((...))
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((...))

7 years agoMake a post-patching scheme, use it to add ANSI C compatibility for signals etc
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

7 years agoSignificant progress on getting libstdc to compile, fixed various missing or lax...
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

7 years agoCan now compile headers with gcc
Nick Downing [Wed, 18 Jan 2017 16:02:47 +0000 (03:02 +1100)]
Can now compile headers with gcc

7 years agoNow got full dependency check in q.sh which reports results in *.[ch].uses, and separ...
Nick Downing [Wed, 18 Jan 2017 14:33:50 +0000 (01:33 +1100)]
Now got full dependency check in q.sh which reports results in *.[ch].uses, and separate script in r.sh which rebuilds *.[ch] with all necessary edits at once

7 years agoGet mini dependency check working just for generated files (syscall stubs, etc)
Nick Downing [Wed, 18 Jan 2017 04:25:39 +0000 (15:25 +1100)]
Get mini dependency check working just for generated files (syscall stubs, etc)

7 years agoStart again with a better approach to patching and a different order of transformatio...
Nick Downing [Wed, 18 Jan 2017 00:50:55 +0000 (11:50 +1100)]
Start again with a better approach to patching and a different order of transformations so we will be able to run cproto earlier, on more-or-less original code

7 years agoFully redo p.sh dependency check in s.sh with also prototype dependency checks, the...
Nick Downing [Tue, 17 Jan 2017 11:58:08 +0000 (22:58 +1100)]
Fully redo p.sh dependency check in s.sh with also prototype dependency checks, the check is a bit complicated as regards struct/union references since a struct/union pointer in the main part of a header file do not pull in the definition, but the same struct/union pointer in the prototypes part of a header file does

7 years agoChange things around so that the p.sh script (add #include to *.[ch] to satisfy macro...
Nick Downing [Tue, 17 Jan 2017 11:08:21 +0000 (22:08 +1100)]
Change things around so that the p.sh script (add #include to *.[ch] to satisfy macro/typedef/struct/union dependencies) can be reused after adding prototypes

7 years agoNow generating prototypes for all C files and putting them in sensible places
Nick Downing [Mon, 16 Jan 2017 15:05:40 +0000 (02:05 +1100)]
Now generating prototypes for all C files and putting them in sensible places

7 years agoMake c->h dependencies not care whether a struct reference is only a pointer
Nick Downing [Sun, 15 Jan 2017 14:54:17 +0000 (01:54 +1100)]
Make c->h dependencies not care whether a struct reference is only a pointer

7 years agoNow computing dependencies quite nicely, all headers compile, can run cproto
Nick Downing [Sun, 15 Jan 2017 14:26:23 +0000 (01:26 +1100)]
Now computing dependencies quite nicely, all headers compile, can run cproto

7 years agoScript to rediscover dependencies between header files and from c to headers
Nick Downing [Sun, 15 Jan 2017 09:02:30 +0000 (20:02 +1100)]
Script to rediscover dependencies between header files and from c to headers

7 years agoPreparatory stuff that collects includes and libc files, identifies assembly source...
Nick Downing [Sun, 15 Jan 2017 03:39:19 +0000 (14:39 +1100)]
Preparatory stuff that collects includes and libc files, identifies assembly source and finds a c version from 4.3tahoe if possible or supplies a stub based on the lint-library, removes multiple-inclusion protection from header files, identifies and removes header dependencies and K&R style prototypes in headers

7 years agoPatches to cproto to fix varargs handling and adjust output, add xify program
Nick Downing [Sat, 14 Jan 2017 06:45:08 +0000 (17:45 +1100)]
Patches to cproto to fix varargs handling and adjust output, add xify program

7 years agoAdd original cproto-4.6
Nick Downing [Thu, 12 Jan 2017 08:28:54 +0000 (19:28 +1100)]
Add original cproto-4.6

7 years ago4.3BSD source tree from Mckusick's CDROM
Nick Downing [Thu, 12 Jan 2017 08:26:09 +0000 (19:26 +1100)]
4.3BSD source tree from Mckusick's CDROM