libc: Make the libc code with cc65. Clean all the header bugs it found
authorAlan Cox <alan@linux.intel.com>
Tue, 13 Jan 2015 21:57:49 +0000 (21:57 +0000)
committerAlan Cox <alan@linux.intel.com>
Tue, 13 Jan 2015 21:57:49 +0000 (21:57 +0000)
commit50428619e12d8eeebe5eda9814a0d3ecc37d00b7
tree7b8ec7fe2e821e1a8f676b4792452ba59c0cd5ad
parent14b844a063e08bdffec00c7b094a34151d2dbf10
libc: Make the libc code with cc65. Clean all the header bugs it found

cc65 is quite pedantic about consts, sdcc is rather slack. Clean up all the
errors cc65 found. That should also make it rather easier to do the gcc
builds.

This isn't yet a complete cc65 libc. It doesn't handle some of the calls due
to arg ordering funnies and it doesn't have a syscalls lib. A pure runtime
library for a cc65 'fuzix' target and crt0.s are also needed.
35 files changed:
Library/include/6502/stdint.h [new file with mode: 0644]
Library/include/grp.h
Library/include/pwd.h
Library/include/syscalls.h
Library/include/unistd.h
Library/include/utime.h
Library/include/utmp.h
Library/libs/Makefile.6502 [new file with mode: 0644]
Library/libs/execl.c
Library/libs/execv.c
Library/libs/execvp.c
Library/libs/fopen.c
Library/libs/fprintf.c
Library/libs/fputs.c
Library/libs/free.c
Library/libs/fuzix/Makefile
Library/libs/fwrite.c
Library/libs/gets.c
Library/libs/lstat.c
Library/libs/pathconf.c
Library/libs/perror.c
Library/libs/printf.c
Library/libs/readlink.c
Library/libs/setjmp.c
Library/libs/sprintf.c
Library/libs/stdio0.c
Library/libs/strcasestr.c
Library/libs/strdup.c
Library/libs/stricmp.c
Library/libs/strnicmp.c
Library/libs/strsep.c
Library/libs/utent.c
Library/libs/vfprintf.c
Library/libs/vfscanf.c
Library/libs/vprintf.c