]> Zhao Yanbai Git Server - minix.git/commitdiff
Move setjmp and strnlen to common/lib.
authorKees Jongenburger <kees.jongenburger@gmail.com>
Tue, 5 Jun 2012 09:37:32 +0000 (09:37 +0000)
committerKees Jongenburger <kees.jongenburger@gmail.com>
Mon, 18 Jun 2012 07:20:22 +0000 (09:20 +0200)
Move setjmp and strnlen to common/lib to allow libddekit to use them.

common/lib/libc/arch/i386/gen/_setjmp.S [moved from lib/libc/arch/i386/gen/_setjmp.S with 100% similarity]
common/lib/libc/string/strnlen.c [moved from lib/libc/string/strnlen.c with 100% similarity]
lib/libminc/Makefile
lib/libminc/arch/i386/Makefile.libc.inc

index 0c2fd331663bf640c93663e1480b7c5cfb2a3ce0..299f9e0239ba776494bbb0d35d9d20f6785a08fe 100644 (file)
@@ -37,8 +37,8 @@ SRCS+=        adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c \
        random.c strtoll.c strtoul.c strtoull.c strtoumax.c \
        memchr.c memcmp.c memcpy.c memmove.c popcount32.c popcount64.c \
        strcasecmp.c strcat.c strchr.c strcmp.c strcpy.c strlcat.c \
-       strlcpy.c strlen.c strncasecmp.c strncmp.c strncpy.c strrchr.c \
-       strsep.c strstr.c ptree.c rb.c sha1.c sha2.c
+       strlcpy.c strlen.c strncasecmp.c strncmp.c strncpy.c strnlen.c \
+       strrchr.c strsep.c strstr.c ptree.c rb.c sha1.c sha2.c
 SRCS+= ${i}
 CPPFLAGS.${i}+= -D_LIBC -I${LIBCSRCDIR}/include
 .endfor
index eb3032878b7a323d8ed7c74173839b625467c8b6..e4c2e2abbdd3b9fa870fa0c85bfe2e48cbe42b8c 100644 (file)
@@ -1,4 +1,4 @@
-SRCS+=         byte_swap_2.S byte_swap_4.S ffs.S
+SRCS+=         byte_swap_2.S byte_swap_4.S ffs.S _setjmp.S
 SRCS+=  memchr.S memcmp.S memcpy.S memmove.S memset.S \
        strcat.S strchr.S strcmp.S strcpy.S strlen.S \
        strncmp.S strrchr.S