diff options
| author | guenther <> | 2012-01-17 02:48:01 +0000 |
|---|---|---|
| committer | guenther <> | 2012-01-17 02:48:01 +0000 |
| commit | c7c3cc392cc55ded5afb93b5082c353cd4f6c599 (patch) | |
| tree | 10185abaa3846292f512d026acaf2a4992992b28 /src/lib/libc/string/Makefile.inc | |
| parent | 22984a1d620aaaf42db1223302f040c4bef7c2a0 (diff) | |
| download | openbsd-c7c3cc392cc55ded5afb93b5082c353cd4f6c599.tar.gz openbsd-c7c3cc392cc55ded5afb93b5082c353cd4f6c599.tar.bz2 openbsd-c7c3cc392cc55ded5afb93b5082c353cd4f6c599.zip | |
Add stpcpy() and stpncpy(), pointless crap that made it into POSIX.
Includes friendly linker warning to wake up those dumb enough to use it.
Committing for kettenis@, who ran away to the hills after writing it
Diffstat (limited to 'src/lib/libc/string/Makefile.inc')
| -rw-r--r-- | src/lib/libc/string/Makefile.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libc/string/Makefile.inc b/src/lib/libc/string/Makefile.inc index 40713956e5..25e67e4f87 100644 --- a/src/lib/libc/string/Makefile.inc +++ b/src/lib/libc/string/Makefile.inc | |||
| @@ -1,9 +1,10 @@ | |||
| 1 | # $OpenBSD: Makefile.inc,v 1.27 2011/07/09 16:32:11 nicm Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.28 2012/01/17 02:48:01 guenther Exp $ |
| 2 | 2 | ||
| 3 | # string sources | 3 | # string sources |
| 4 | .PATH: ${LIBCSRCDIR}/arch/${MACHINE_CPU}/string ${LIBCSRCDIR}/string | 4 | .PATH: ${LIBCSRCDIR}/arch/${MACHINE_CPU}/string ${LIBCSRCDIR}/string |
| 5 | 5 | ||
| 6 | SRCS+= bm.c memccpy.c memrchr.c strcasecmp.c strcasestr.c strcoll.c strdup.c \ | 6 | SRCS+= bm.c memccpy.c memrchr.c stpcpy.c stpncpy.c \ |
| 7 | strcasecmp.c strcasestr.c strcoll.c strdup.c \ | ||
| 7 | strerror.c strerror_r.c strlcat.c strmode.c strndup.c strnlen.c \ | 8 | strerror.c strerror_r.c strlcat.c strmode.c strndup.c strnlen.c \ |
| 8 | strsignal.c strtok.c strxfrm.c \ | 9 | strsignal.c strtok.c strxfrm.c \ |
| 9 | wcscat.c wcschr.c wcscmp.c wcscpy.c wcscspn.c wcslcat.c wcslcpy.c \ | 10 | wcscat.c wcschr.c wcscmp.c wcscpy.c wcscspn.c wcslcat.c wcslcpy.c \ |
| @@ -140,7 +141,7 @@ strrchr.ln: rindex.c | |||
| 140 | ${LIBCSRCDIR}/string/rindex.c | 141 | ${LIBCSRCDIR}/string/rindex.c |
| 141 | 142 | ||
| 142 | MAN+= bm.3 bcmp.3 bcopy.3 bstring.3 bzero.3 ffs.3 memccpy.3 memchr.3 \ | 143 | MAN+= bm.3 bcmp.3 bcopy.3 bstring.3 bzero.3 ffs.3 memccpy.3 memchr.3 \ |
| 143 | memcmp.3 memcpy.3 memmove.3 memset.3 strcasecmp.3 strcat.3 \ | 144 | memcmp.3 memcpy.3 memmove.3 memset.3 stpcpy.3 strcasecmp.3 strcat.3 \ |
| 144 | strchr.3 strcmp.3 strcoll.3 strcpy.3 strcspn.3 strerror.3 \ | 145 | strchr.3 strcmp.3 strcoll.3 strcpy.3 strcspn.3 strerror.3 \ |
| 145 | string.3 strlen.3 strmode.3 strdup.3 strpbrk.3 strrchr.3 strsep.3 \ | 146 | string.3 strlen.3 strmode.3 strdup.3 strpbrk.3 strrchr.3 strsep.3 \ |
| 146 | strsignal.3 strspn.3 strstr.3 strtok.3 strxfrm.3 swab.3 strlcpy.3 \ | 147 | strsignal.3 strspn.3 strstr.3 strtok.3 strxfrm.3 swab.3 strlcpy.3 \ |
| @@ -150,6 +151,7 @@ MAN+= bm.3 bcmp.3 bcopy.3 bstring.3 bzero.3 ffs.3 memccpy.3 memchr.3 \ | |||
| 150 | 151 | ||
| 151 | MLINKS+=bm.3 bm_comp.3 bm.3 bm_exec.3 bm.3 bm_free.3 | 152 | MLINKS+=bm.3 bm_comp.3 bm.3 bm_exec.3 bm.3 bm_free.3 |
| 152 | MLINKS+=memchr.3 memrchr.3 | 153 | MLINKS+=memchr.3 memrchr.3 |
| 154 | MLINKS+=stpcpy.3 stpncpy.3 | ||
| 153 | MLINKS+=strchr.3 index.3 | 155 | MLINKS+=strchr.3 index.3 |
| 154 | MLINKS+=strrchr.3 rindex.3 | 156 | MLINKS+=strrchr.3 rindex.3 |
| 155 | MLINKS+=strcasecmp.3 strncasecmp.3 | 157 | MLINKS+=strcasecmp.3 strncasecmp.3 |
