Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/lib/print/libpapi-common/common/
H A Duri.c63 u->scheme = strndup(string, ptr - string); in uri_from_string()
78 u->host_part = strndup(string, end - string); in uri_from_string()
83 u->user_part = strndup(string, host-string); in uri_from_string()
85 u->host_part = strndup(host + 1, in uri_from_string()
97 u->password = strndup(password + 1, in uri_from_string()
101 u->user = strndup(user, password - user); in uri_from_string()
113 u->port = strndup(port + 1, path - port - 1); in uri_from_string()
116 u->host = strndup(host, port - host); in uri_from_string()
138 u->fragment = strndup(fragment + 1, in uri_from_string()
143 u->path = strndup(path, end - path); in uri_from_string()
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dsm_overflow4.c3 void strndup(char *to, int size);
10 a = strndup(b, 5); in func()
/illumos-gate/usr/src/cmd/bhyve/common/
H A Dconfig.c184 node_name = strndup(path, name - path); in set_config_value()
226 node_name = strndup(path, name - path); in get_raw_config_value()
291 path = strndup(vp, cp - vp); in _expand_config_value()
H A Dpci_fbuf.c269 sc->rfb_host = strndup(value + 1, cp - (value + 1)); in pci_fbuf_parse_config()
290 sc->rfb_host = strndup(value, cp - value); in pci_fbuf_parse_config()
H A Dnet_backends.c298 backend = strndup(opts, cp - opts); in netbe_legacy_config()
H A Dbhyverun.c615 path = strndup(option, value - option); in bhyve_parse_config_option()
H A Dpci_virtio_input.c629 char *path = strndup(opts, cp - opts); in pci_vtinput_legacy_config()
H A Dpci_virtio_scsi.c692 devname = strndup(opts, cp - opts); in pci_vtscsi_legacy_config()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dstrndup.c38 strndup(const char *s1, size_t n) in strndup() function
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_string.h52 extern char *strndup(const char *, size_t);
H A Dmdb_strio.c136 sd->str_base = strndup(s, sd->str_len); in mdb_strio_create()
H A Dmdb_string.c267 strndup(const char *s, size_t n) in strndup() function
H A Dmdb.c1376 mdb.m_root = strndup(s, (size_t)(p - s)); in mdb_set_config()
1381 mdb.m_termtype = strndup(s, (size_t)(p - s)); in mdb_set_config()
H A Dmdb_lex.l293 yylval.l_string = strndup(yytext + 1, yyleng - 2);
/illumos-gate/usr/src/ucbcmd/users/
H A Dusers.c60 *namp++ = strndup(utmpx->ut_name, sizeof (utmpx->ut_name)); in main()
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_lex.l244 yylval.l_str = strndup(v + 1, len - 2);
246 yylval.l_str = strndup(v, len);
383 yylval.l_str = strndup(yytext + 1, yyleng - 2);
/illumos-gate/usr/src/cmd/mandoc/
H A Dmandoc_aux.c114 p = strndup(ptr, sz); in mandoc_strndup()
/illumos-gate/usr/src/boot/include/
H A Dstring.h103 char *strndup(const char *, size_t) __malloc_like;
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dirpmarshall.c90 static char *strndup(const char *str, size_t len);
1245 host = strndup(p, q - p); in irp_unmarshall_ng()
1258 user = strndup(p, q - p); in irp_unmarshall_ng()
1272 domain = strndup(p, q - p); in irp_unmarshall_ng()
1694 *aptr = strndup(p, q - p); in splitarray()
1810 *res = strndup(*ptr, q - *ptr); in getfield()
1846 strndup(const char *str, size_t len) { in strndup() function
/illumos-gate/usr/src/head/
H A Dstring.h94 extern char *strndup(const char *, size_t);
/illumos-gate/usr/src/cmd/format/
H A Dlabel.c532 *vid = strndup(inquiry.inq_vid, 8); in get_disk_inquiry_uscsi()
533 *pid = strndup(inquiry.inq_pid, 16); in get_disk_inquiry_uscsi()
534 *rid = strndup(inquiry.inq_revision, 4); in get_disk_inquiry_uscsi()
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dldap_misc.c54 #undef strndup
55 #define strndup my_strndup macro
1794 rdn = strndup(policy_dn, len2 - len1 - 1); /* 1 character for ',' */
1805 *name = strndup(dn[0][0]->la_value.bv_val, dn[0][0]->la_value.bv_len);
/illumos-gate/usr/src/cmd/idmap/idmap/
H A Didmap.c1794 *prefix = strndup(from, prefix_end - from - 1); in sid_convert()
1829 out = strndup(*line + 1, qm - *line - 1); in ucp_qm_interior()
1848 token = strndup(*line, length); in ucp_grab_token()
2034 nm->unixname = strndup(unixname, unixname_l); in sup_line2nm()
/illumos-gate/usr/src/cmd/ktest/
H A Dktest.c253 stats->ks_name = strndup(name, KTEST_MAX_NAME_LEN); in ktest_stats_new()
1059 if ((cp = strndup(tstr, KTEST_MAX_TRIPLE_LEN)) == NULL) { in ktest_parse_triple()
/illumos-gate/usr/src/cmd/prtvtoc/
H A Dprtvtoc.c761 if ((r = strndup(str, l)) == NULL) { in safe_strdup()

12