| /openbsd/src/lib/libc/string/ |
| D | strndup.c | 26 strndup(const char *str, size_t maxlen) in strndup() function 40 DEF_WEAK(strndup);
|
| D | Makefile.inc | 9 strndup.c strnlen.c strsignal.c strtok.c strxfrm.c strxfrm_l.c \
|
| /openbsd/src/gnu/llvm/compiler-rt/lib/asan/tests/ |
| D | asan_str_test.cpp | 167 new_str = strndup(str, size - 13); in TEST() 169 new_str = strndup(str + size - 1, 13); in TEST() 172 EXPECT_DEATH(Ident(strndup(str - 1, 13)), LeftOOBReadMessage(1)); in TEST() 173 EXPECT_DEATH(Ident(strndup(str + size, 13)), RightOOBReadMessage(0)); in TEST() 176 EXPECT_DEATH(Ident(strndup(str, size + 13)), RightOOBReadMessage(0)); in TEST() 178 Ident(new_str = strndup(str + size - 1, 0)); in TEST() 180 Ident(new_str = strndup(str + size - 1, 1)); in TEST() 182 EXPECT_DEATH(Ident(strndup(str + size - 1, 2)), RightOOBReadMessage(0)); in TEST()
|
| /openbsd/src/usr.bin/mg/ |
| D | fileio.c | 638 } else if ((ret = strndup(fn, NFILEN)) == NULL) in bkuplocation() 652 bkupdir = strndup(p, NFILEN); in backuptohomedir() 715 if ((ret = strndup(fn, NFILEN)) == NULL) in expandtilde() 724 if ((ret = strndup(fn, NFILEN)) == NULL) in expandtilde() 753 if ((ret = strndup(path, NFILEN)) == NULL) in expandtilde()
|
| D | cscope.c | 460 if ((r->filename = strndup(t.fname, NFILEN)) == NULL) in addentry() 577 if ((pathc = path = strndup(tmp, NFILEN)) == NULL) in csexists()
|
| D | interpreter.c | 423 if ((e1->fun = strndup(cmdp, BUFSIZE)) == NULL) { in parsexp() 602 if ((v1->v_name = strndup(vnamep, BUFSIZE)) == NULL) in founddef()
|
| D | log.c | 401 if ((tmp2 = strndup(tmp, NFILEN)) == NULL) in mglogfiles_create()
|
| /openbsd/src/gnu/usr.bin/cvs/vms/ |
| D | misc.h | 29 char *strndup ();
|
| D | misc.c | 47 char *strndup (char *src, int len) { in strndup() function
|
| /openbsd/src/gnu/lib/libiberty/src/ |
| D | strndup.c | 41 strndup (const char *s, size_t n) in strndup() function
|
| D | Makefile.in | 154 strstr.c strtod.c strtol.c strtoul.c strndup.c strverscmp.c \ 202 ./strncmp.o ./strndup.o ./strrchr.o ./strstr.o \ 1011 ./strndup.o: $(srcdir)/strndup.c $(INCDIR)/ansidecl.h 1013 $(COMPILE.c) $(PICFLAG) $(srcdir)/strndup.c -o pic/$@; \ 1015 $(COMPILE.c) $(srcdir)/strndup.c $(OUTPUT_OPTION)
|
| /openbsd/src/lib/libcurses/ |
| D | nc_alloc.h | 50 #undef strndup /* workaround for #define in GLIBC 2.7 */
|
| /openbsd/src/lib/libc/hidden/ |
| D | string.h | 67 PROTO_NORMAL(strndup);
|
| /openbsd/src/usr.sbin/rpki-client/ |
| D | tak.c | 105 res->comments[i] = strndup(comment->data, in parse_takey() 129 res->uris[i] = strndup(certURI->data, certURI->length); in parse_takey()
|
| D | gbr.c | 51 if ((gbr->vcard = strndup(cms, cmsz)) == NULL) in gbr_parse()
|
| D | tal.c | 179 if ((p->descr = strndup(d, dlen)) == NULL) in tal_parse()
|
| D | rsync.c | 101 if ((base_uri = strndup(uri, rest - uri)) == NULL) in rsync_base_uri()
|
| /openbsd/src/usr.bin/mandoc/ |
| D | mandoc_aux.c | 109 p = strndup(ptr, sz); in mandoc_strndup()
|
| /openbsd/src/gnu/usr.bin/texinfo/m4/ |
| D | check-decl.m4 | 60 strndup,
|
| /openbsd/src/include/ |
| D | string.h | 114 char *strndup(const char *, size_t);
|
| /openbsd/src/usr.bin/tmux/ |
| D | xmalloc.c | 103 if ((cp = strndup(str, maxlen)) == NULL) in xstrndup()
|
| /openbsd/src/lib/libtls/ |
| D | tls_verify.c | 291 common_name = strndup(utf8_bytes, common_name_len); in tls_get_common_name_internal()
|
| /openbsd/src/usr.bin/wall/ |
| D | wall.c | 156 un->tty = strndup(line, sizeof(utmp.ut_line)); in main()
|
| /openbsd/src/gnu/gcc/libmudflap/ |
| D | mf-runtime.h | 120 #pragma redefine_extname strndup __mfwrap_strndup
|
| /openbsd/src/usr.bin/whois/ |
| D | whois.c | 248 if ((nhost = strndup(p, len)) == NULL) in whois()
|