/illumos-gate/usr/src/cmd/lms/tools/ |
H A D | daemonize.cpp | 68 pid_t pid, sid, parent; local 111 sid = setsid(); 112 if (sid < 0) {
|
/illumos-gate/usr/src/uts/common/io/cpqary3/ |
H A D | cpqary3_bd.c | 696 uint16_t sid = (bid & 0xffff); local 702 (sid == cpqary3_bds[i].bd_pci_subsysid))
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | pgrpsys.c | 48 int sid; local 60 sid = p->p_sessp->s_sid; 62 return (sid); 73 sid = p->p_sessp->s_sid; 75 return (sid);
|
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | acl_print.c | 59 fprint_sid(FILE *fp, i_ntsid_t *sid) argument 63 if (sid == NULL) { 68 if (smbfs_sid2str(sid, sidbuf, sizeof (sidbuf), NULL) < 0)
|
/illumos-gate/usr/src/lib/libidmap/common/ |
H A D | sidutil.c | 45 * Returns the number of bytes required to hold the sid. 48 sid_len(sid_t *sid) argument 50 if (sid == NULL) 54 + (sid->sid_subauthcnt * sizeof (uint32_t))); 61 * binary sid. 64 sid_tostr(sid_t *sid, char *strsid) argument 69 if (sid == NULL || strsid == NULL) 72 (void) sprintf(p, "S-%d-", sid->sid_revision); 77 if (sid->sid_authority[i] != 0 || i == NT_SID_AUTH_MAX - 1) { 78 (void) sprintf(p, "%d", sid 108 sid_t *sid; local 148 sid_free(sid_t *sid) argument 161 sid_to_le(sid_t *sid) argument 177 sid_from_le(sid_t *sid) argument [all...] |
H A D | sidutil.h | 88 typedef struct sid { struct
|
H A D | directory_helper.c | 56 char **sid, 73 *sid = NULL; 103 *sid = strdup(text_sid); 104 if (*sid == NULL) 129 char **sid, 132 return (directory_sid_from_name_common(d, name, DIRECTORY_ID_NAME, sid, 137 directory_sid_from_user_name(directory_t d, char *name, char **sid) argument 139 return (directory_sid_from_name_common(d, name, DIRECTORY_ID_USER, sid, 144 directory_sid_from_group_name(directory_t d, char *name, char **sid) argument 146 return (directory_sid_from_name_common(d, name, DIRECTORY_ID_GROUP, sid, 52 directory_sid_from_name_common( directory_t d, char *name, char *type, char **sid, uint64_t *classes) argument 126 directory_sid_from_name( directory_t d, char *name, char **sid, uint64_t *classes) argument 239 directory_name_from_sid( directory_t d, char *sid, char **canon, uint64_t *classes) argument [all...] |
/illumos-gate/usr/src/cmd/idmap/idmapd/ |
H A D | wksids.c | 288 find_wksid_by_sid(const char *sid, int rid, idmap_id_type type) argument 318 sidcmp = strcasecmp(wksids[i].sidprefix, sid); 320 sidcmp = strcasecmp(my_machine_sid, sid); 373 find_wk_by_sid(char *sid) argument 401 if (strncasecmp(sid, prefix, len) != 0) 403 if (sid[len] != '-') 405 rid = strtoul(sid + len + 1, &p, 10);
|
H A D | idmap_lsa.c | 76 char sid[SMB_SID_STRSZ + 1]; local 84 (void) snprintf(sid, sizeof (sid), "%s-%u", sidprefix, rid); 86 rc = smb_lookup_sid(sid, &acct); 104 sid, acct.a_status);
|
H A D | directory_provider_builtin.c | 282 sid_t *sid; local 299 sid = sid_fromstr(text_sid); 302 if (sid == NULL) 305 sid_to_le(sid); 307 de = bin_list_dav(lvals, sid, 1, sid_len(sid)); 309 sid_free(sid);
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmlock.c | 105 pid_t sid; local 107 if (ioctl(fd, TIOCGSID, &sid) == -1) 109 else if (sid == 0)
|
/illumos-gate/usr/src/uts/common/crypto/api/ |
H A D | kcf_session.c | 82 crypto_session_close(crypto_provider_t provider, crypto_session_id_t sid, argument 107 sid, KCF_SWFP_RHNDL(crq), pd); 111 KCF_OP_SESSION_CLOSE, NULL, sid, 122 crypto_session_login(crypto_provider_t provider, crypto_session_id_t sid, argument 142 rv = KCF_PROV_SESSION_LOGIN(real_provider, sid, 147 NULL, sid, type, pin, len, real_provider); 158 crypto_session_logout(crypto_provider_t provider, crypto_session_id_t sid, argument 178 rv = KCF_PROV_SESSION_LOGOUT(real_provider, sid, 183 NULL, sid, 0, NULL, 0, real_provider);
|
H A D | kcf_object.c | 41 crypto_object_create(crypto_provider_t provider, crypto_session_id_t sid, argument 62 rv = KCF_PROV_OBJECT_CREATE(real_provider, sid, 67 sid, 0, attrs, count, object_handle, 0, 79 crypto_object_destroy(crypto_provider_t provider, crypto_session_id_t sid, argument 99 rv = KCF_PROV_OBJECT_DESTROY(real_provider, sid, 104 sid, object_handle, NULL, 0, NULL, 0, 116 crypto_object_copy(crypto_provider_t provider, crypto_session_id_t sid, argument 137 rv = KCF_PROV_OBJECT_COPY(real_provider, sid, 143 sid, object_handle, attrs, count, 156 crypto_session_id_t sid, crypto_object_id_ 155 crypto_object_get_attribute_value(crypto_provider_t provider, crypto_session_id_t sid, crypto_object_id_t object_handle, crypto_object_attribute_t *attrs, uint_t count, crypto_call_req_t *crq) argument 194 crypto_object_set_attribute_value(crypto_provider_t provider, crypto_session_id_t sid, crypto_object_id_t object_handle, crypto_object_attribute_t *attrs, uint_t count, crypto_call_req_t *crq) argument 233 crypto_object_get_size(crypto_provider_t provider, crypto_session_id_t sid, crypto_object_id_t object_handle, size_t *size, crypto_call_req_t *crq) argument 270 crypto_object_find_init(crypto_provider_t provider, crypto_session_id_t sid, crypto_object_attribute_t *attrs, uint_t count, void **cookie, crypto_call_req_t *crq) argument [all...] |
/illumos-gate/usr/src/lib/pysolaris/common/ |
H A D | misc.c | 32 extern int sid_to_id(char *sid, boolean_t user, uid_t *id); 37 char *sid; local 41 if (!PyArg_ParseTuple(args, "si", &sid, &isuser)) 44 err = sid_to_id(sid, isuser, &id); 46 PyErr_SetString(PyExc_KeyError, sid); 54 * Translate the sid string ("S-1-...") to the user@domain name, if 61 char *name, *sid; local 66 if (!PyArg_ParseTuple(args, "si", &sid, &isuser)) 69 err = sid_to_id(sid, isuser, &pid); 71 PyErr_SetString(PyExc_KeyError, sid); [all...] |
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_wksids.c | 143 smb_wka_lookup_sid(smb_sid_t *sid) argument 157 if (smb_sid_cmp(sid, entry->wka_binsid)) 173 smb_sid_t *sid = NULL; local 179 sid = entry->wka_binsid; 181 return (sid);
|
H A D | smb_idmap.c | 70 smb_idmap_getsid(uid_t id, int idtype, smb_sid_t **sid) argument 94 *sid = smb_sid_dup(sib.sib_maps[0].sim_sid); 107 smb_idmap_getid(smb_sid_t *sid, uid_t *id, int *id_type) argument 119 stat = smb_idmap_batch_getid(sib.sib_idmaph, sim, sid, *id_type); 221 smb_sid_t *sid, int idtype) 227 if (idmaph == NULL || sim == NULL || sid == NULL) 230 smb_sid_tostr(sid, sidstr); 379 smb_sid_t *sid; local 392 sid = smb_sid_fromstr(sim->sim_domsid); 393 if (sid 220 smb_idmap_batch_getid(idmap_get_handle_t *idmaph, smb_idmap_t *sim, smb_sid_t *sid, int idtype) argument [all...] |
/illumos-gate/usr/src/uts/common/io/hxge/ |
H A D | hxge_fzc.c | 138 fzc_sid_t sid; local 154 sid.ldg = ldgp->ldg; 155 sid.vector = ldgp->vector; 158 i, sid.ldg, sid.vector)); 159 rs = hpi_fzc_sid_set(handle, sid);
|
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fksmb_idmap.c | 73 smb_idmap_getsid(uid_t id, int idtype, smb_sid_t **sid) argument 97 *sid = smb_sid_dup(sib.sib_maps[0].sim_sid); 110 smb_idmap_getid(smb_sid_t *sid, uid_t *id, int *id_type) argument 122 stat = smb_idmap_batch_getid(sib.sib_idmaph, sim, sid, *id_type); 222 smb_sid_t *sid, int idtype) 228 if (idmaph == NULL || sim == NULL || sid == NULL) 231 smb_sid_tostr(sid, sidstr); 382 smb_sid_t *sid; local 395 sid = smb_sid_fromstr(sim->sim_domsid); 396 if (sid 221 smb_idmap_batch_getid(idmap_get_handle_t *idmaph, smb_idmap_t *sim, smb_sid_t *sid, int idtype) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_idmap.c | 68 #include <sys/sid.h> 80 smb_idmap_getsid(uid_t id, int idtype, smb_sid_t **sid) argument 117 *sid = smb_sid_splice(sim.sim_sid, sim.sim_rid); 119 if (*sid == NULL) 132 smb_idmap_getid(smb_sid_t *sid, uid_t *id, int *idtype) argument 137 smb_sid_tostr(sid, sidstr); 247 smb_sid_t *sid, int idtype) 254 ASSERT(sid); 256 smb_sid_tostr(sid, strsid); 389 smb_sid_t *sid; local 246 smb_idmap_batch_getid(idmap_get_handle_t *idmaph, smb_idmap_t *sim, smb_sid_t *sid, int idtype) argument [all...] |
/illumos-gate/usr/src/lib/libadutils/common/ |
H A D | addisc.h | 53 char sid[MAXSTRSID]; member in struct:ad_disc_domains_in_forest
|
/illumos-gate/usr/src/lib/pam_modules/timestamp/ |
H A D | pam_timestamp.c | 41 pid_t sid; /* session ID associated with tty/ppid */ member in struct:user_info 291 info.rdev != tty.st_rdev || info.sid != getsid(getpid()) || 390 info.sid = getsid(getpid());
|
/illumos-gate/usr/src/lib/smbsrv/libmlrpc/common/ |
H A D | ndr_heap.c | 256 ndr_heap_siddup(ndr_heap_t *heap, smb_sid_t *sid) argument 261 if (sid == NULL) 264 size = smb_sid_len(sid); 269 bcopy(sid, new_sid, size);
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | idlok.c | 57 static IDST *sid, *eid; /* list of idln actions */ variable 102 for (idp = sid; idp != eid; idp++) { 127 ip = sid; 131 eip = sid - 1;
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_scsi.c | 56 ushort_t controller, ushort_t sid, ushort_t lun); 416 int sid, lun; local 431 sid = lun = -1; 433 scsi_find_sid_lun(sa, devname, &sid, &lun); 434 if (ndmp_open_list_find(devname, sid, lun) == NULL && 450 switch (ndmp_open_list_add(connection, adptnm, sid, lun, devid)) { 471 if (sid != -1) { 472 session->ns_scsi.sd_sid = sid; 493 * sid (input) - SCSI target ID. 503 ushort_t controller, ushort_t sid, ushort_ 502 common_set_target(ndmp_connection_t *connection, char *device, ushort_t controller, ushort_t sid, ushort_t lun) argument 576 scsi_find_sid_lun(scsi_adapter_t *sa, char *devname, int *sid, int *lun) argument [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/mr_sas/ |
H A D | mr_sas.c | 110 uint16_t vid, did, svid, sid; local 115 sid = m->subsysid; 123 vid, did, svid, sid);
|