diff options
| author | d <> | 1998-11-20 11:18:51 +0000 |
|---|---|---|
| committer | d <> | 1998-11-20 11:18:51 +0000 |
| commit | c1f295aa8666eb1c08a1edf944ac5617659a066c (patch) | |
| tree | efe0a5dfb4f9767f96ab03ce9c00dc5bcc98074c /src/lib/libc/string | |
| parent | 5a11336d3f08469f2747ebcf26ae777dba46fd22 (diff) | |
| download | openbsd-c1f295aa8666eb1c08a1edf944ac5617659a066c.tar.gz openbsd-c1f295aa8666eb1c08a1edf944ac5617659a066c.tar.bz2 openbsd-c1f295aa8666eb1c08a1edf944ac5617659a066c.zip | |
Add thread-safety to libc, so that libc_r will build (on i386 at least).
All POSIX libc api now there (to P1003.1c/D10)
(more md stuff is needed for other libc/arch/*)
(setlogin is no longer a special syscall)
Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS).
Doc some re-entrant routines
Add libc_r to intro(3)
dig() uses some libc srcs and an extra -I was needed there.
Add more md stuff to libc_r.
Update includes for the pthreads api
Update libc_r TODO
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libc/string/Makefile.inc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libc/string/Makefile.inc b/src/lib/libc/string/Makefile.inc index 076db78945..78eee7efa5 100644 --- a/src/lib/libc/string/Makefile.inc +++ b/src/lib/libc/string/Makefile.inc | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | # $OpenBSD: Makefile.inc,v 1.5 1998/07/01 01:29:44 millert Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.6 1998/11/20 11:18:51 d Exp $ |
| 2 | 2 | ||
| 3 | # string sources | 3 | # string sources |
| 4 | .PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/string ${.CURDIR}/string | 4 | .PATH: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/string ${LIBCSRCDIR}/string |
| 5 | 5 | ||
| 6 | SRCS+= bm.c memccpy.c strcasecmp.c strcoll.c strdup.c strerror.c \ | 6 | SRCS+= bm.c memccpy.c strcasecmp.c strcoll.c strdup.c strerror.c \ |
| 7 | strlcat.c strlcpy.c strmode.c strsignal.c strtok.c strxfrm.c \ | 7 | strlcat.c strlcpy.c strmode.c strsignal.c strtok.c strxfrm.c \ |
| @@ -16,7 +16,7 @@ SRCS+= bm.c memccpy.c strcasecmp.c strcoll.c strdup.c strerror.c \ | |||
| 16 | # m-d Makefile.inc may include sources for: | 16 | # m-d Makefile.inc may include sources for: |
| 17 | # memcpy() memmove() strchr() strrchr() | 17 | # memcpy() memmove() strchr() strrchr() |
| 18 | 18 | ||
| 19 | .include "${.CURDIR}/arch/${MACHINE_ARCH}/string/Makefile.inc" | 19 | .include "${LIBCSRCDIR}/arch/${MACHINE_ARCH}/string/Makefile.inc" |
| 20 | 20 | ||
| 21 | # if no machine specific memmove(3), build one out of bcopy(3). | 21 | # if no machine specific memmove(3), build one out of bcopy(3). |
| 22 | .if empty(SRCS:Mmemmove.S) | 22 | .if empty(SRCS:Mmemmove.S) |
| @@ -100,19 +100,19 @@ LOBJS+= memmove.ln memcpy.ln strchr.ln strrchr.ln | |||
| 100 | 100 | ||
| 101 | memmove.ln: bcopy.c | 101 | memmove.ln: bcopy.c |
| 102 | lint ${LINTFLAGS} -DMEMMOVE ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} \ | 102 | lint ${LINTFLAGS} -DMEMMOVE ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} \ |
| 103 | ${.CURDIR}/string/bcopy.c | 103 | ${LIBCSRCDIR}/string/bcopy.c |
| 104 | 104 | ||
| 105 | memcpy.ln: bcopy.c | 105 | memcpy.ln: bcopy.c |
| 106 | lint ${LINTFLAGS} -DMEMCOPY ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} \ | 106 | lint ${LINTFLAGS} -DMEMCOPY ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} \ |
| 107 | ${.CURDIR}/string/bcopy.c | 107 | ${LIBCSRCDIR}/string/bcopy.c |
| 108 | 108 | ||
| 109 | strchr.ln: index.c | 109 | strchr.ln: index.c |
| 110 | lint ${LINTFLAGS} -DSTRCHR ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} \ | 110 | lint ${LINTFLAGS} -DSTRCHR ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} \ |
| 111 | ${.CURDIR}/string/index.c | 111 | ${LIBCSRCDIR}/string/index.c |
| 112 | 112 | ||
| 113 | strrchr.ln: rindex.c | 113 | strrchr.ln: rindex.c |
| 114 | lint ${LINTFLAGS} -DSTRRCHR ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} \ | 114 | lint ${LINTFLAGS} -DSTRRCHR ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} \ |
| 115 | ${.CURDIR}/string/rindex.c | 115 | ${LIBCSRCDIR}/string/rindex.c |
| 116 | 116 | ||
| 117 | MAN+= bm.3 bcmp.3 bcopy.3 bstring.3 bzero.3 ffs.3 index.3 memccpy.3 memchr.3 \ | 117 | MAN+= bm.3 bcmp.3 bcopy.3 bstring.3 bzero.3 ffs.3 index.3 memccpy.3 memchr.3 \ |
| 118 | memcmp.3 memcpy.3 memmove.3 memset.3 rindex.3 strcasecmp.3 strcat.3 \ | 118 | memcmp.3 memcpy.3 memmove.3 memset.3 rindex.3 strcasecmp.3 strcat.3 \ |
