compiler/clib: Refactoring code for C99/POSIX.1-2008 separation.
commit0bdf43eb680051477bc0b7b892250711b8af24fd
authorverhaegs <verhaegs@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sat, 7 Apr 2012 20:17:45 +0000 (7 20:17 +0000)
committerverhaegs <verhaegs@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sat, 7 Apr 2012 20:17:45 +0000 (7 20:17 +0000)
tree164b50ebb6bb105e69db32dff690d9d1d6632ea0
parentc7ef4cadca7a4e28d22f85b90aba2d31531eaec3
compiler/clib: Refactoring code for C99/POSIX.1-2008 separation.

A big refactoring of the code has been done. Baseline was to get code more C99 and POSIX.1-2008 compliant and prepare for split of arosc.library.
 * C99 and POSIX.1-2008 documents were taken as reference
 * Each of the functions and include files were marked as either C99 or POSIX.1-2008
 * Include files defined in both standard now have a C99 and a POSIX.1-2008 section
 * Prototypes of unimplemented functions have been commented out and marker NOTIMPL
 * Definition happen in the same order as they are presented in the standard as mush as possible
 * reordering of fields in structs to reflect how they are defined in the standard
 * Renumber defined constant to the order they are defined (except errno.h for bsdsocket.library backwards compatibility)
 * Unused/unimplemented functions that are not part of C99 or POSIX.1-2008 have been removed

This patch breaks backwards compatibility

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@44559 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
158 files changed:
compiler/clib/__signal.c
compiler/clib/_errstrings.c
compiler/clib/abort.c
compiler/clib/abs.c
compiler/clib/atof.c
compiler/clib/atoi.c
compiler/clib/bcmp.c
compiler/clib/bsearch.c
compiler/clib/bzero.c
compiler/clib/calloc.c
compiler/clib/chdir.c
compiler/clib/clearerr.c
compiler/clib/close.c
compiler/clib/creat.c
compiler/clib/dup.c
compiler/clib/dup2.c
compiler/clib/exit.c
compiler/clib/fchmod.c
compiler/clib/fclose.c
compiler/clib/feof.c
compiler/clib/ferror.c
compiler/clib/fflush.c
compiler/clib/fgetc.c
compiler/clib/fgets.c
compiler/clib/fileno.c
compiler/clib/fopen.c
compiler/clib/fprintf.c
compiler/clib/fputc.c
compiler/clib/fputs.c
compiler/clib/fread.c
compiler/clib/free.c
compiler/clib/fscanf.c
compiler/clib/fstat.c
compiler/clib/fwrite.c
compiler/clib/gcvt.c
compiler/clib/getchar.c
compiler/clib/getcwd.c
compiler/clib/getenv.c
compiler/clib/gets.c
compiler/clib/include/_strings.h [new file with mode: 0644]
compiler/clib/include/aros/types/fpos_t.h [new file with mode: 0644]
compiler/clib/include/aros/types/sigaction_s.h
compiler/clib/include/aros/types/sigevent_s.h
compiler/clib/include/aros/types/siginfo_t.h
compiler/clib/include/aros/types/sigset_t.h
compiler/clib/include/aros/types/ucontext_t.h
compiler/clib/include/assert.h
compiler/clib/include/dirent.h
compiler/clib/include/errno.h
compiler/clib/include/fcntl.h
compiler/clib/include/grp.h
compiler/clib/include/inttypes.h
compiler/clib/include/limits.h
compiler/clib/include/locale.h
compiler/clib/include/process.h
compiler/clib/include/pwd.h
compiler/clib/include/setjmp.h
compiler/clib/include/signal.h
compiler/clib/include/stdint.h
compiler/clib/include/stdio.h
compiler/clib/include/stdlib.h
compiler/clib/include/string.h
compiler/clib/include/strings.h
compiler/clib/include/sys/param.h
compiler/clib/include/sys/resource.h
compiler/clib/include/sys/select.h
compiler/clib/include/sys/stat.h
compiler/clib/include/sys/time.h
compiler/clib/include/sys/timeb.h
compiler/clib/include/sys/times.h
compiler/clib/include/sys/types.h
compiler/clib/include/sys/uio.h
compiler/clib/include/sys/utsname.h
compiler/clib/include/sys/wait.h
compiler/clib/include/time.h
compiler/clib/include/ucontext.h
compiler/clib/include/unistd.h
compiler/clib/include/utime.h
compiler/clib/include/wchar.h
compiler/clib/labs.c
compiler/clib/link.c
compiler/clib/malloc.c
compiler/clib/memchr.c
compiler/clib/memcmp.c
compiler/clib/memset.c
compiler/clib/mkdir.c
compiler/clib/mknod.c
compiler/clib/mkstemp.c
compiler/clib/nanosleep.c
compiler/clib/open.c
compiler/clib/opendir.c
compiler/clib/perror.c
compiler/clib/popen.c
compiler/clib/printf.c
compiler/clib/putchar.c
compiler/clib/putenv.c
compiler/clib/puts.c
compiler/clib/qsort.c
compiler/clib/rand.c
compiler/clib/rand_rom.c
compiler/clib/read.c
compiler/clib/readlink.c
compiler/clib/realloc.c
compiler/clib/remove.c
compiler/clib/rename.c
compiler/clib/scanf.c
compiler/clib/setbuf.c
compiler/clib/setenv.c
compiler/clib/setlinebuf.c
compiler/clib/setvbuf.c
compiler/clib/sigaction.c
compiler/clib/sigaddset.c
compiler/clib/sigdelset.c
compiler/clib/sigemptyset.c
compiler/clib/sigfillset.c
compiler/clib/sigismember.c
compiler/clib/sigpending.c
compiler/clib/sigprocmask.c
compiler/clib/sigsuspend.c
compiler/clib/sleep.c
compiler/clib/snprintf.c
compiler/clib/sprintf.c
compiler/clib/sscanf.c
compiler/clib/strcasecmp.c
compiler/clib/strcasestr.c
compiler/clib/strcat.c
compiler/clib/strchr.c
compiler/clib/strcmp.c
compiler/clib/strcpy.c
compiler/clib/strcspn.c
compiler/clib/strdup.c
compiler/clib/strerror.c
compiler/clib/strerror_rom.c
compiler/clib/strlen.c
compiler/clib/strncasecmp.c
compiler/clib/strncat.c
compiler/clib/strncpy.c
compiler/clib/strndup.c
compiler/clib/strpbrk.c
compiler/clib/strrchr.c
compiler/clib/strspn.c
compiler/clib/strstr.c
compiler/clib/strtod.c
compiler/clib/strtok.c
compiler/clib/strtol.c
compiler/clib/strtoll.c
compiler/clib/strtoul.c
compiler/clib/strtoull.c
compiler/clib/symlink.c
compiler/clib/system.c
compiler/clib/truncate.c
compiler/clib/ungetc.c
compiler/clib/unsetenv.c
compiler/clib/vfprintf.c
compiler/clib/vfscanf.c
compiler/clib/vprintf.c
compiler/clib/vscanf.c
compiler/clib/write.c