Home
last modified time | relevance | path

Searched refs:strndup (Results 1 – 25 of 46) sorted by relevance

12

/minix/external/bsd/llvm/dist/clang/test/Analysis/
H A Dmalloc-interprocedural.c105 char *strndup(const char *str, size_t n) { in strndup() function
126 (void)strndup(0, 20); // no-warning in useStrndup()
129 (void)strndup("hi there", n); // no-warning in useStrndup()
132 (void)strndup("hi there", n); in useStrndup()
H A Dtaint-generic.c25 char *strndup(const char *s, size_t n);
104 dup = strndup(s, 20); in testUncontrolledFormatString()
H A Dmalloc.c15 char *strndup(const char *s, size_t n);
255 char *y = strndup(x, 4); // expected-warning{{Use of memory after it is freed}} in f8()
937 char *s2 = strndup(s, size); in testStrndup()
/minix/lib/libc/string/
H A Dstrndup.c53 __weak_alias(strndup,_strndup) in __weak_alias() argument
58 strndup(const char *str, size_t n) in __weak_alias()
H A DMakefile.inc15 strtok_r.c strxfrm.c __strsignal.c strerror_r.c strndup.c \
66 MLINKS+=strdup.3 strndup.3
/minix/minix/usr.bin/toproto/
H A Dtoproto.c87 entry->path = strndup(line, MAX_LINE_SIZE); in convert_to_entry()
122 entry->uid = strndup(value, MAX_LINE_SIZE); in convert_to_entry()
124 entry->gid = strndup(value, MAX_LINE_SIZE); in convert_to_entry()
126 entry->time = strndup(value, MAX_LINE_SIZE); in convert_to_entry()
128 entry->size = strndup(value, MAX_LINE_SIZE); in convert_to_entry()
130 entry->link = strndup(value, MAX_LINE_SIZE); in convert_to_entry()
/minix/external/bsd/llvm/dist/clang/test/Sema/
H A Dbuiltins-gnu-mode.c9 int strndup; variable
/minix/external/bsd/llvm/dist/clang/test/SemaCXX/
H A Dwarn-memsize-comparison.cpp13 extern "C" char *strndup(const char *src, size_t n);
67 if (strndup(b1, sizeof(b1) != 0)) {} // \ in f()
71 if (strndup(b1, sizeof(b1)) != 0) {} in f()
H A Dwarn-memset-bad-sizeof.cpp128 extern "C" char *strndup(const char *src, unsigned n);
143 strndup(FOO, sizeof(FOO)); // \ in strcpy_and_friends()
/minix/crypto/external/bsd/heimdal/dist/lib/roken/
H A Dstrndup.c44 strndup(const char *old, size_t sz) in strndup() function
/minix/sbin/ifconfig/
H A Dmedia.c191 val = strndup(prop_data_data_nocopy(data), prop_data_size(data)); in setmedia()
222 val = strndup(prop_data_data_nocopy(data), prop_data_size(data)); in setmediaopt()
249 val = strndup(prop_data_data_nocopy(data), prop_data_size(data)); in unsetmediaopt()
309 val = strndup(prop_data_data_nocopy(data), prop_data_size(data)); in setmediamode()
/minix/lib/libc/citrus/
H A Dcitrus_lc_monetary.c184 *p_string = strndup(s, n - 1); in _citrus_LC_MONETARY_init_fallback()
191 t = strndup(s, n - 1); in _citrus_LC_MONETARY_init_fallback()
H A Dcitrus_lc_messages.c145 *p = strndup(s, n - 1); in _citrus_LC_MESSAGES_init_fallback()
H A Dcitrus_lc_numeric.c148 *p = strndup(s, n - 1); in _citrus_LC_NUMERIC_init_fallback()
H A Dcitrus_lc_time.c196 *p = strndup(s, n - 1); in _citrus_LC_TIME_init_fallback()
/minix/external/bsd/llvm/dist/llvm/test/Transforms/InstCombine/
H A Dobjsize.ll175 declare noalias i8* @strndup(i8* nocapture, i32) nounwind
188 …%call = tail call i8* @strndup(i8* getelementptr inbounds ([8 x i8]* @.str, i64 0, i64 0), i32 3) …
197 …%call = tail call i8* @strndup(i8* getelementptr inbounds ([8 x i8]* @.str, i64 0, i64 0), i32 7) …
206 …%call = tail call i8* @strndup(i8* getelementptr inbounds ([8 x i8]* @.str, i64 0, i64 0), i32 8) …
215 …%call = tail call i8* @strndup(i8* getelementptr inbounds ([8 x i8]* @.str, i64 0, i64 0), i32 57)…
/minix/include/
H A Dstring.h104 char *strndup(const char *, size_t);
/minix/lib/libutil/
H A Defun.c98 char *d = strndup(s, len); in estrndup()
/minix/usr.bin/nbperf/
H A Dnbperf.c229 if ((keys[curlen] = strndup(line, line_len)) == NULL) in main()
/minix/minix/lib/libc/sys/
H A Dmount.c209 input = strndup(args_line,20); in find_rslabel()
/minix/usr.sbin/syslogd/
H A Dsyslogd.c1061 buffer->host = strndup(start, p - start); in printline_syslogprotocol()
1079 buffer->prog = strndup(start, p - start); in printline_syslogprotocol()
1096 buffer->pid = strndup(start, p - start); in printline_syslogprotocol()
1115 buffer->msgid = strndup(start, p - start); in printline_syslogprotocol()
1134 buffer->sd = strndup(p, sdlen); in printline_syslogprotocol()
1175 buffer->msg = strndup(start, p - start); in printline_syslogprotocol()
1275 buffer->host = strndup(start, p - start); in printline_bsdsyslog()
1281 buffer->prog = strndup(start, p - start); in printline_bsdsyslog()
1318 buffer->pid = strndup(start, p - start); in printline_bsdsyslog()
1362 buffer->msgid = strndup(p, msgidlen); in printline_bsdsyslog()
[all …]
H A Dsyslogd.h125 char *strndup(const char *str, size_t n);
/minix/tools/compat/
H A Dconfigure.ac163 strndup strnlen strsep strsuftoll strtoi strtoll strtou \
172 AC_CHECK_DECLS([strndup, strnlen],,,[#include <string.h>])
H A DMakefile21 strndup.c strnlen.c \
/minix/external/bsd/file/dist/
H A Dconfigure.ac142 AC_CHECK_FUNCS(strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof newlocale usel…

12