vfs: check userland buffers before reading them.
[haiku.git] / src / system / libroot / posix / string / Jamfile
blob609c0fdb4ce85c53650ca7f605a2e49db1a44d9a
1 SubDir HAIKU_TOP src system libroot posix string ;
3 UsePrivateHeaders
4         [ FDirName libroot ]
5         [ FDirName libroot locale ]
6         ;
9 # Our versions of strdup and strndup check for NULL parameters (for BeOS
10 # compatibility), but GCC optimizes this away as its builtins don't handle
11 # it.
12 C++FLAGS += -fno-builtin-strdup -fno-builtin-strndup ;
14 local architectureObject ;
15 for architectureObject in [ MultiArchSubDirSetup ] {
16         on $(architectureObject) {
17                 local architecture = $(TARGET_PACKAGING_ARCH) ;
19                 MergeObject <$(architecture)>posix_string.o :
20                         bcmp.c
21                         bcopy.c
22                         bzero.c
23                         ffs.cpp
24                         memccpy.c
25                         memchr.c
26                         memcmp.c
27                         memmove.c
28                         stpcpy.c
29                         strcasecmp.c
30                         strcasestr.c
31                         strcat.c
32                         strchr.c
33                         strchrnul.c
34                         strcmp.c
35                         strcoll.cpp
36                         strcpy.c
37                         strcspn.c
38                         strdup.cpp
39                         strerror.c
40                         strlcat.c
41                         strlcpy.c
42                         strlen.cpp
43                         strlwr.c
44                         strncat.c
45                         strncmp.c
46                         strncpy.cpp
47                         strndup.cpp
48                         strnlen.cpp
49                         strpbrk.c
50                         strrchr.c
51                         strspn.c
52                         strstr.c
53                         strtok.c
54                         strupr.c
55                         strxfrm.cpp
56                         ;
57         }
60 local arch ;
61 for arch in $(TARGET_ARCHS) {
62         HaikuSubInclude arch $(arch) ;