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

12

/freebsd-13-stable/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);
/freebsd-13-stable/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
H A DMakefile.in54 strndup.o \
/freebsd-13-stable/contrib/openbsm/bin/auditdistd/
H A Dstrndup.h37 strndup(const char *str, size_t len) function
/freebsd-13-stable/crypto/heimdal/lib/roken/
H A Dstrndup.c42 strndup(const char *old, size_t sz) function
/freebsd-13-stable/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 DMakefile.inc17 strncat.c strncmp.c strncpy.c strndup.c strnlen.c strnstr.c \
65 MLINKS+=strdup.3 strndup.3
/freebsd-13-stable/sys/libkern/
H A Dstrndup.c41 strndup(const char *string, size_t maxlen, struct malloc_type *type) function
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/cmd/send_doall/
H A Dsend_doall.c66 fsname = strndup(tofull, p - tofull);
/freebsd-13-stable/contrib/ofed/libibverbs/
H A Dsysfs.c66 sysfs_path = dup = strndup(env, IBV_SYSFS_PATH_MAX);
/freebsd-13-stable/contrib/ncurses/include/
H A Dnc_alloc.h48 #undef strndup /* workaround for #define in GLIBC 2.7 */ macro
/freebsd-13-stable/include/
H A Dstring.h105 char *strndup(const char *, size_t) __malloc_like;
/freebsd-13-stable/lib/libnetbsd/
H A Defun.c99 char *d = strndup(s, len);
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/cmd/badsend/
H A Dbadsend.c78 fsname = strndup(tofull, p - tofull);
/freebsd-13-stable/contrib/nvi/common/
H A Dutil.c160 if ((u = strndup(p, t - p)) == NULL)
/freebsd-13-stable/lib/libc/iconv/
H A Dbsd_iconv.c71 out_noslashes = strndup(out, out_slashes - out);
228 curkey = strndup(list[i], slashpos - list[i]);
/freebsd-13-stable/sbin/nvmecontrol/
H A Dnvmecontrol.c174 *ctrlr_str = strndup(gnsid.cdev, sizeof(gnsid.cdev));
/freebsd-13-stable/usr.sbin/autofs/
H A Ddefined.c179 name = strndup(string + name_off, name_len);
181 log_err(1, "strndup");
/freebsd-13-stable/lib/libpam/modules/pam_login_access/
H A Dlogin_access.c229 if ((grpstr = strndup(&tok[1], stringlen - 1)) == NULL) {
/freebsd-13-stable/sys/sys/
H A Dlibkern.h181 char *strndup(const char *__restrict, size_t, struct malloc_type *);
/freebsd-13-stable/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-13-stable/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-13-stable/lib/libfetch/
H A Dcommon.c550 *host = strndup(socks5env, slen);
552 *host = strndup(socks5env, ext - socks5env + 1);
558 *host = strndup(socks5env, ext - socks5env);

Completed in 367 milliseconds

12