/illumos-gate/usr/src/lib/print/libpapi-common/common/ |
H A D | uri.c | 63 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 D | sm_overflow4.c | 3 void strndup(char *to, int size); 10 a = strndup(b, 5); in func()
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | config.c | 184 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 D | pci_fbuf.c | 269 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 D | net_backends.c | 298 backend = strndup(opts, cp - opts); in netbe_legacy_config()
|
H A D | bhyverun.c | 615 path = strndup(option, value - option); in bhyve_parse_config_option()
|
H A D | pci_virtio_input.c | 629 char *path = strndup(opts, cp - opts); in pci_vtinput_legacy_config()
|
H A D | pci_virtio_scsi.c | 692 devname = strndup(opts, cp - opts); in pci_vtscsi_legacy_config()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | strndup.c | 38 strndup(const char *s1, size_t n) in strndup() function
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_string.h | 52 extern char *strndup(const char *, size_t);
|
H A D | mdb_strio.c | 136 sd->str_base = strndup(s, sd->str_len); in mdb_strio_create()
|
H A D | mdb_string.c | 267 strndup(const char *s, size_t n) in strndup() function
|
H A D | mdb.c | 1376 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 D | mdb_lex.l | 293 yylval.l_string = strndup(yytext + 1, yyleng - 2);
|
/illumos-gate/usr/src/ucbcmd/users/ |
H A D | users.c | 60 *namp++ = strndup(utmpx->ut_name, sizeof (utmpx->ut_name)); in main()
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_lex.l | 244 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 D | mandoc_aux.c | 114 p = strndup(ptr, sz); in mandoc_strndup()
|
/illumos-gate/usr/src/boot/include/ |
H A D | string.h | 103 char *strndup(const char *, size_t) __malloc_like;
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | irpmarshall.c | 90 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 D | string.h | 94 extern char *strndup(const char *, size_t);
|
/illumos-gate/usr/src/cmd/format/ |
H A D | label.c | 532 *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 D | ldap_misc.c | 54 #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 D | idmap.c | 1794 *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 D | ktest.c | 253 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 D | prtvtoc.c | 761 if ((r = strndup(str, l)) == NULL) { in safe_strdup()
|