From: Alan Cox Date: Wed, 21 Oct 2015 20:47:57 +0000 (+0100) Subject: libc: Add the missing swab() function from SYS5 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=cd0573a8e644996201bf1824ffa29b7b61dae042;p=FUZIX.git libc: Add the missing swab() function from SYS5 --- diff --git a/Library/include/unistd.h b/Library/include/unistd.h index 9f34bdc0..0348debd 100644 --- a/Library/include/unistd.h +++ b/Library/include/unistd.h @@ -43,6 +43,7 @@ extern int system __P((const char *)); extern int pause __P((void)); extern pid_t fork __P((void)); extern char *getcwd __P((char *, int)); +extern void swab __P((const void * __from, void * __to, ssize_t __count)); extern long sysconf __P((int name)); extern long fpathconf __P((int fd, int name)); diff --git a/Library/libs/Makefile b/Library/libs/Makefile index 51f8b873..3c280f96 100644 --- a/Library/libs/Makefile +++ b/Library/libs/Makefile @@ -40,7 +40,7 @@ SRC_C += setlocale.c setvbuf.c settimeofday.c sleep.c sprintf.c SRC_C += stat.c stdio0.c stime.c SRC_C += strcasecmp.c strcasestr.c strdup.c stricmp.c strlcpy.c strncasecmp.c SRC_C += strnlen.c strnicmp.c strsep.c strxfrm.c strcoll.c strsignal.c -SRC_C += strtod.c strtol.c system.c time.c tmpfile.c tmpnam.c ttyname.c +SRC_C += strtod.c strtol.c swab.c system.c time.c tmpfile.c tmpnam.c ttyname.c SRC_C += tzset.c ungetc.c usleep.c utent.c utimes.c utsname.c SRC_C += vfprintf.c vprintf.c wait.c xitoa.c pathconf.c SRC_C += gethostname.c sysconf.c confstr.c memccpy.c getpass.c diff --git a/Library/libs/Makefile.6502 b/Library/libs/Makefile.6502 index f731c2ef..7493cb9f 100644 --- a/Library/libs/Makefile.6502 +++ b/Library/libs/Makefile.6502 @@ -50,7 +50,7 @@ SRC_C += regsub.c remove.c rewind.c rindex.c setbuffer.c setenv.c setjmp.c SRC_C += setlocale.c setvbuf.c settimeofday.c sleep.c sprintf.c SRC_C += stat.c stdio0.c stime.c SRC_C += strcasecmp.c strcasestr.c strdup.c stricmp.c strlcpy.c strncasecmp.c -SRC_C += strnicmp.c strnlen.c strsep.c strsignal.c +SRC_C += strnicmp.c strnlen.c strsep.c strsignal.c swab.c SRC_C += system.c time.c tmpfile.c tmpnam.c ttyname.c SRC_C += tzset.c ungetc.c usleep.c utent.c utimes.c utsname.c SRC_C += vfprintf.c vprintf.c wait.c xitoa.c pathconf.c diff --git a/Library/libs/Makefile.6809 b/Library/libs/Makefile.6809 index 38af7f88..4880e9a3 100644 --- a/Library/libs/Makefile.6809 +++ b/Library/libs/Makefile.6809 @@ -32,7 +32,7 @@ SRC_C += setlocale.c setvbuf.c settimeofday.c sleep.c sprintf.c SRC_C += stat.c stdio0.c stime.c SRC_C += strcasecmp.c strcasestr.c strdup.c stricmp.c strlcpy.c strncasecmp.c SRC_C += strnlen.c strnicmp.c strsep.c strsignal.c strxfrm.c strcoll.c -SRC_C += strtod.c strtol.c system.c time.c tmpfile.c tmpnam.c ttyname.c +SRC_C += strtod.c strtol.c swab.c system.c time.c tmpfile.c tmpnam.c ttyname.c SRC_C += tzset.c ungetc.c usleep.c utent.c utimes.c utsname.c SRC_C += vfprintf.c vprintf.c wait.c xitoa.c pathconf.c SRC_C += gethostname.c sysconf.c confstr.c memccpy.c getpass.c