summaryrefslogtreecommitdiff
path: root/sys/src/ape/lib/bsd
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2013-12-28 05:14:10 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2013-12-28 05:14:10 +0100
commit7143b286b7b57eed2b49ba143dcae90be3716b0e (patch)
tree51d097b34895fd2e86dd76e37a78792aadf49638 /sys/src/ape/lib/bsd
parent4aa68d2f3a10b81fecc27550c9e1bb05b7b74887 (diff)
ape: move strdup() from libbsd to libap (from sources)
including <string.h> should be enougth to make strdup() available.
Diffstat (limited to 'sys/src/ape/lib/bsd')
-rw-r--r--sys/src/ape/lib/bsd/mkfile1
-rw-r--r--sys/src/ape/lib/bsd/strdup.c16
2 files changed, 0 insertions, 17 deletions
diff --git a/sys/src/ape/lib/bsd/mkfile b/sys/src/ape/lib/bsd/mkfile
index 886b599ee..90fefd36b 100644
--- a/sys/src/ape/lib/bsd/mkfile
+++ b/sys/src/ape/lib/bsd/mkfile
@@ -49,7 +49,6 @@ OFILES=\
strncasecmp.$O\
socket.$O\
socketpair.$O\
- strdup.$O\
pty.$O\
writev.$O\
diff --git a/sys/src/ape/lib/bsd/strdup.c b/sys/src/ape/lib/bsd/strdup.c
deleted file mode 100644
index 5e4a3759e..000000000
--- a/sys/src/ape/lib/bsd/strdup.c
+++ /dev/null
@@ -1,16 +0,0 @@
-#include <string.h>
-#include <ctype.h>
-#include <stdlib.h>
-
-char*
-strdup(char *p)
-{
- int n;
- char *np;
-
- n = strlen(p)+1;
- np = malloc(n);
- if(np)
- memmove(np, p, n);
- return np;
-}