Searched refs:strndup (Results 1 - 25 of 49) sorted by relevance

12

/freebsd-head/contrib/mandoc/
H A Dtest-strndup.c8 s = strndup("123", 2);
H A Dcompat_strndup.c10 /* OpenBSD: strndup.c,v 1.2 2015/08/31 02:53:57 guenther Exp */
33 strndup(const char *str, size_t maxlen) function
H A Dmandoc_aux.c114 p = strndup(ptr, sz);
H A Dconfigure313 runtest strndup STRNDUP || true
552 echo "extern char *strndup(const char *, size_t);"
/freebsd-head/crypto/openssh/openbsd-compat/
H A Dstrndup.c1 /* $OpenBSD: strndup.c,v 1.2 2015/08/31 02:53:57 guenther Exp $ */
28 strndup(const char *str, size_t maxlen) function
42 DEF_WEAK(strndup); variable
/freebsd-head/crypto/heimdal/lib/roken/
H A Dstrndup.c42 strndup(const char *old, size_t sz) function
/freebsd-head/contrib/openbsm/bin/auditdistd/
H A Dstrndup.h37 strndup(const char *str, size_t len) function
/freebsd-head/sys/libkern/
H A Dstrndup.c41 strndup(const char *string, size_t maxlen, struct malloc_type *type) function
/freebsd-head/lib/libc/string/
H A Dstrndup.c1 /* $OpenBSD: strndup.c,v 1.1 2010/05/18 22:24:55 tedu Exp $ */
27 strndup(const char *str, size_t maxlen) function
H A DSymbol.map85 strndup;
H A DMakefile.inc17 strncat.c strncmp.c strncpy.c strndup.c strnlen.c strnstr.c \
65 MLINKS+=strdup.3 strndup.3
/freebsd-head/contrib/ofed/libibverbs/
H A Dsysfs.c66 sysfs_path = dup = strndup(env, IBV_SYSFS_PATH_MAX);
/freebsd-head/contrib/ncurses/include/
H A Dnc_alloc.h48 #undef strndup /* workaround for #define in GLIBC 2.7 */ macro
/freebsd-head/lib/libnetbsd/
H A Defun.c99 char *d = strndup(s, len);
/freebsd-head/include/
H A Dstring.h105 char *strndup(const char *, size_t) __malloc_like;
/freebsd-head/contrib/nvi/common/
H A Dutil.c160 if ((u = strndup(p, t - p)) == NULL)
/freebsd-head/sys/contrib/openzfs/tests/zfs-tests/cmd/badsend/
H A Dbadsend.c78 fsname = strndup(tofull, p - tofull);
/freebsd-head/lib/libc/iconv/
H A Dbsd_iconv.c71 out_noslashes = strndup(out, out_slashes - out);
228 curkey = strndup(list[i], slashpos - list[i]);
/freebsd-head/usr.sbin/autofs/
H A Ddefined.c180 name = strndup(string + name_off, name_len);
182 log_err(1, "strndup");
/freebsd-head/sbin/nvmecontrol/
H A Dnvmecontrol.c170 *ctrlr_str = strndup(gnsid.cdev, sizeof(gnsid.cdev));
/freebsd-head/lib/libpam/modules/pam_login_access/
H A Dlogin_access.c229 if ((grpstr = strndup(&tok[1], stringlen - 1)) == NULL) {
/freebsd-head/sys/sys/
H A Dlibkern.h178 char *strndup(const char *__restrict, size_t, struct malloc_type *);
/freebsd-head/sys/fs/autofs/
H A Dautofs_vnops.c573 anp->an_name = strndup(name, namelen, M_AUTOFS);
609 find.an_name = strndup(name, namelen, M_AUTOFS);
/freebsd-head/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_private.h103 /* We need our own strndup() implementation to pass required M_NOWAIT */
158 #define bhnd_nv_strndup(str, len) strndup(str, len)
/freebsd-head/lib/libfetch/
H A Dcommon.c549 *host = strndup(socks5env, slen);
551 *host = strndup(socks5env, ext - socks5env + 1);
557 *host = strndup(socks5env, ext - socks5env);

Completed in 153 milliseconds

12