libc: Add the missing swab() function from SYS5
authorAlan Cox <alan@etchedpixels.co.uk>
Wed, 21 Oct 2015 20:47:57 +0000 (21:47 +0100)
committerAlan Cox <alan@etchedpixels.co.uk>
Wed, 21 Oct 2015 20:47:57 +0000 (21:47 +0100)
Library/include/unistd.h
Library/libs/Makefile
Library/libs/Makefile.6502
Library/libs/Makefile.6809

index 9f34bdc..0348deb 100644 (file)
@@ -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));
index 51f8b87..3c280f9 100644 (file)
@@ -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
index f731c2e..7493cb9 100644 (file)
@@ -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
index 38af7f8..4880e9a 100644 (file)
@@ -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