/illumos-gate/usr/src/lib/nsswitch/user/common/ |
H A D | user_common.c | 32 * An implementation that used mmap() sensibly would be a wonderful thing, 48 _nss_user_setent(be, dummy) 49 user_backend_ptr_t be; 52 if (be->f == 0) { 53 if (be->filename == 0) { 57 if ((be->f = fopen(be->filename, "rF")) == 0) { 61 rewind(be->f); 68 _nss_user_endent(be, dummy) 69 user_backend_ptr_t be; 280 user_backend_ptr_t be; local [all...] |
H A D | getprinter.c | 73 /* append the value ':' must be escaped for posix style names */ 99 _nss_user_XY_printers(be, args, filter) 100 user_backend_ptr_t be; 106 * on the line and we can be fast enough. 112 if (be->buf == 0 && 113 (be->buf = (char *)malloc(be->minbuf)) == 0) { 114 (void) _nss_user_endent(be, 0); 123 char *instr = be->buf; 135 if ((linelen = _nss_user_read_line(be [all...] |
/illumos-gate/usr/src/lib/nsswitch/ldap/common/ |
H A D | ldap_common.c | 125 _nss_ldap_lookup(ldap_backend_ptr be, nss_XbyY_args_t *argp, argument 143 (void) __ns_ldap_freeResult(&be->result); 146 be->attrs, NULL, 0, &be->result, &error, NULL, 157 be->ldapobj2str(be, argp)) != NSS_STR_PARSE_SUCCESS) { 163 * a string to be returned in NSS. 167 if (be->db_type == NSS_LDAP_DB_PUBLICKEY) { 170 be->db_type = NSS_LDAP_DB_NONE; 178 * for different purpose so ethers has to be treate 248 _nss_ldap_nocb_lookup(ldap_backend_ptr be, nss_XbyY_args_t *argp, char *database, char *searchfilter, char *domain, int (*init_filter_cb)(const ns_ldap_search_desc_t *desc, char **realfilter, const void *userdata), const void *userdata) argument 286 _clean_ldap_backend(ldap_backend_ptr be) argument 322 _nss_ldap_destr(ldap_backend_ptr be, void *a) argument 341 _nss_ldap_setent(ldap_backend_ptr be, void *a) argument 377 _nss_ldap_endent(ldap_backend_ptr be, void *a) argument 412 _nss_ldap_getent(ldap_backend_ptr be, void *a) argument 536 ldap_backend_ptr be; local [all...] |
H A D | getnetmasks.c | 66 _nss_ldap_netmasks2str(ldap_backend_ptr be, nss_XbyY_args_t *argp) argument 69 ns_ldap_result_t *result = be->result; 86 if ((be->buffer = calloc(1, len)) == NULL) { 90 be->buflen = len - 1; 91 buffer = be->buffer; 100 (void) __ns_ldap_freeResult(&be->result); 114 getbynet(ldap_backend_ptr be, void *a) argument 135 return ((nss_status_t)_nss_ldap_lookup(be, argp,
|
H A D | tsol_gettpent.c | 59 _nss_ldap_tnrhtp2str(ldap_backend_ptr be, nss_XbyY_args_t *argp) argument 65 ns_ldap_result_t *result = be->result; 86 if ((be->buffer = calloc(1, len)) == NULL) { 90 be->buflen = len - 1; 91 buffer = be->buffer; 98 (void) __ns_ldap_freeResult(&be->result); 103 getbyname(ldap_backend_ptr be, void *a) argument 120 return (_nss_ldap_lookup(be, argp, _TNRHTP, searchfilter, NULL,
|
/illumos-gate/usr/src/lib/nsswitch/compat/common/ |
H A D | compat_common.c | 45 * This should be in a header. 63 * of the str2auuser() and str2userattr() that can be found in 65 * or au_user_str_t structure (so check on user name can be 187 netgr_in(compat_backend_ptr_t be, const char *group, const char *user) argument 189 if (be->yp_domain == 0) { 190 if (yp_get_default_domain((char **)&be->yp_domain) != 0) { 194 return (innetgr(group, 0, user, be->yp_domain)); 198 netgr_set(be, netgroup) 199 compat_backend_ptr_t be; 206 if (be 694 validate_ids(compat_backend_ptr_t be, nss_XbyY_args_t *argp, char *line, int *linelenp, int buflen, int extra_chars) argument 1236 compat_backend_ptr_t be; local [all...] |
/illumos-gate/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_krb5ssp.c | 60 krb5ssp_backend_t *be; local 62 be = malloc(sizeof (*be)); 63 if (be == 0) 65 bzero(be, sizeof (*be)); 66 be->be_gssctx = GSS_C_NO_CONTEXT; 67 ctx->ctx_backend = be; 78 krb5ssp_backend_t *be = ctx->ctx_backend; local 81 if (be 115 krb5ssp_backend_t *be = ctx->ctx_backend; local 307 krb5ssp_backend_t *be = ctx->ctx_backend; local [all...] |
H A D | smbd_ntlmssp.c | 103 ntlmssp_backend_t *be; local 105 be = malloc(sizeof (*be)); 106 if (be == 0) 108 bzero(be, sizeof (*be)); 109 be->expect_type = NTLMSSP_MSGTYPE_NEGOTIATE; 110 ctx->ctx_backend = be; 128 ntlmssp_backend_t *be = ctx->ctx_backend; local 138 if (mtype != be 174 ntlmssp_backend_t *be = ctx->ctx_backend; local 397 ntlmssp_backend_t *be = ctx->ctx_backend; local [all...] |
/illumos-gate/usr/src/lib/nsswitch/files/common/ |
H A D | bootparams_getbyname.c | 42 getbyname(be, a) 43 files_backend_ptr_t be; 50 if ((res = _nss_files_setent(be, 0)) != NSS_SUCCESS) { 53 return (_nss_files_XY_bootparams(be, argp, argp->key.name)); 80 _nss_files_XY_bootparams(be, args, filter) 81 files_backend_ptr_t be; 87 * on the line and we can be fast enough. 92 if (be->buf == 0 && 93 (be->buf = (char *)malloc(be [all...] |
H A D | files_common.c | 34 * An implementation that used mmap() sensibly would be a wonderful thing, 51 _nss_files_setent(be, dummy) 52 files_backend_ptr_t be; 55 if (be->f == 0) { 56 if (be->filename == 0) { 60 if ((be->f = fopen(be->filename, "rF")) == 0) { 64 rewind(be->f); 71 _nss_files_endent(be, dummy) 72 files_backend_ptr_t be; 386 _nss_files_XY_hash(files_backend_ptr_t be, nss_XbyY_args_t *args, int netdb, files_hash_t *fhp, int hashop, files_XY_check_func check) argument [all...] |
H A D | getprinter.c | 71 _nss_files_XY_printer(be, args, filter, check) 72 files_backend_ptr_t be; 84 if (be->buf == 0 && 85 (be->buf = malloc(be->minbuf)) == 0) { 89 if (check != 0 || be->f == 0) { 90 if ((res = _nss_files_setent(be, 0)) != NSS_SUCCESS) { 99 char *instr = be->buf; 102 if ((linelen = _nss_files_read_line(be->f, instr, 103 be [all...] |
H A D | getauuser.c | 39 getbyname(files_backend_ptr_t be, void *a) argument 43 return (_nss_files_XY_all(be, argp, 1, argp->key.name,
|
H A D | getprofattr.c | 39 getbyname(files_backend_ptr_t be, void *a) argument 43 return (_nss_files_XY_all(be, argp, 1, argp->key.name,
|
H A D | getuserattr.c | 39 getbyname(files_backend_ptr_t be, void *a) argument 43 return (_nss_files_XY_all(be, argp, 1, argp->key.name,
|
/illumos-gate/usr/src/lib/nsswitch/mdns/common/ |
H A D | gethostent.c | 41 getbyname(be, a) 42 mdns_backend_ptr_t be; 53 _nss_mdns_updatecfg(be); 54 return (_nss_mdns_querybyname(be, hname, AF_INET, &qdata)); 59 getbyaddr(be, a) 60 mdns_backend_ptr_t be; 89 _nss_mdns_updatecfg(be); 90 return (_nss_mdns_querybyaddr(be, buffer, qdata.af, &qdata)); 95 _nss_mdns_getent(be, args) 96 mdns_backend_ptr_t be; 150 _nss_get_mdns_hosts_name(mdns_backend_ptr_t *be, void **bufp, size_t *sizep) argument [all...] |
H A D | gethostent6.c | 41 getbyname(be, a) 42 mdns_backend_ptr_t be; 53 _nss_mdns_updatecfg(be); 54 return (_nss_mdns_querybyname(be, hname, af, &qdata)); 58 getbyaddr(be, a) 59 mdns_backend_ptr_t be; 110 _nss_mdns_updatecfg(be); 111 return (_nss_mdns_querybyaddr(be, addrqryname, qdata.af, &qdata)); 116 _nss_mdns_getent(be, args) 117 mdns_backend_ptr_t be; 171 _nss_get_mdns_ipnodes_name(mdns_backend_ptr_t *be, void **bufp, size_t *sizep) argument [all...] |
/illumos-gate/usr/src/lib/nsswitch/nis/common/ |
H A D | getprotoent.c | 38 getbyname(be, a) 39 nis_backend_ptr_t be; 44 return (_nss_nis_lookup(be, argp, 1, "protocols.byname", 49 getbynumber(be, a) 50 nis_backend_ptr_t be; 57 return (_nss_nis_lookup(be, argp, 1, "protocols.bynumber",
|
H A D | bootparams_getbyname.c | 36 getbyname(be, a) 37 nis_backend_ptr_t be; 42 return (_nss_nis_lookup(be, argp, 0, "bootparams",
|
H A D | getprinter.c | 34 getbyname(be, a) 35 nis_backend_ptr_t be; 40 return (_nss_nis_lookup(be, argp, 0, "printers.conf.byname",
|
H A D | netmasks.c | 47 getbynet(be, a) 48 nis_backend_ptr_t be; 52 return (_nss_nis_lookup(be, argp, 0, "netmasks.byaddr",
|
H A D | getprojent.c | 34 getbyname(nis_backend_ptr_t be, void *a) { argument 36 return (_nss_nis_lookup(be, argp, 0, "project.byname", 41 getbyid(nis_backend_ptr_t be, void *a) { argument 45 return (_nss_nis_lookup(be, argp, 0, "project.byprojid", projstr, 0));
|
/illumos-gate/usr/src/lib/nsswitch/ad/common/ |
H A D | getgrent.c | 30 update_buffer(ad_backend_ptr be, nss_XbyY_args_t *argp, argument 42 buffer = be->buffer = malloc(buflen); 43 if (be->buffer == NULL) 45 be->buflen = buflen; 65 getbynam(ad_backend_ptr be, void *a) argument 75 be->db_type = NSS_AD_DB_GROUP_BYNAME; 77 /* Sanitize name so that it can be used in our LDAP filter */ 100 if (update_buffer(be, argp, name, dname, gid) < 0) 104 stat = _nss_ad_marshall_data(be, argp); 105 return (_nss_ad_sanitize_status(be, arg 116 getbygid(ad_backend_ptr be, void *a) argument [all...] |
H A D | getspent.c | 30 update_buffer(ad_backend_ptr be, nss_XbyY_args_t *argp, argument 38 * sp_pwdp will be "*NP*". 49 buffer = be->buffer = malloc(buflen); 50 if (be->buffer == NULL) 52 be->buflen = buflen; 73 getbynam(ad_backend_ptr be, void *a) argument 83 be->db_type = NSS_AD_DB_SHADOW_BYNAME; 85 /* Sanitize name so that it can be used in our LDAP filter */ 109 if (update_buffer(be, argp, name, dname) < 0) 113 stat = _nss_ad_marshall_data(be, arg [all...] |
/illumos-gate/usr/src/lib/libast/common/string/ |
H A D | strnvcmp.c | 35 register const char* be; local 40 be = b + n; 45 if (b >= be) 49 else if (b >= be) 56 while (b < be && isdigit(*b))
|
/illumos-gate/usr/src/cmd/svc/configd/ |
H A D | backend.c | 29 * be able to statvfs(2) possibly large systems. This define gives us 71 #define IS_VOLATILE(be) ((be)->be_ppath != NULL) 342 * is repeated in backend_check_upgrade(), and must be kept in-sync. 374 * must be kept in sync with the indexing specification here. 493 sqlite_backend_t *be = arg; local 496 (void) fprintf(stderr, "%d: %s\n", be->be_type, sql); 602 backend_error(sqlite_backend_t *be, int error, char *errmsg) argument 619 backend_panic("%s: db error: %s", be->be_path, errmsg); 642 * dirname will either be pathnam 794 backend_backup_base(sqlite_backend_t *be, const char *name, char *out, size_t out_len) argument 846 backend_checkpoint_repository(sqlite_backend_t *be) argument 997 backend_create_backup_locked(sqlite_backend_t *be, const char *name) argument 1200 backend_check_upgrade(sqlite_backend_t *be, boolean_t do_upgrade) argument 1253 backend_check_readonly(sqlite_backend_t *be, int writing, hrtime_t t) argument 1354 sqlite_backend_t *be = NULL; local 1406 backend_unlock(sqlite_backend_t *be) argument 1414 backend_destroy(sqlite_backend_t *be) argument 1426 backend_create_finish(backend_type_t backend_id, sqlite_backend_t *be) argument 1464 sqlite_backend_t *be; local 1628 sqlite_backend_t *be; local 1835 sqlite_backend_t *be; local 2075 sqlite_backend_t *be; local 2111 sqlite_backend_t *be; local 2143 sqlite_backend_t *be; local 2218 sqlite_backend_t *be; local 2245 sqlite_backend_t *be; local 2312 sqlite_backend_t *be; local 2352 sqlite_backend_t *be; local 2406 sqlite_backend_t *be; local 2435 sqlite_backend_t *be; local 2461 backend_add_schema(sqlite_backend_t *be, const char *file, struct backend_tbl_info *tbls, int tbl_count, struct backend_idx_info *idxs, int idx_count) argument 2516 backend_init_schema(sqlite_backend_t *be, const char *db_file, backend_type_t t) argument 2591 sqlite_backend_t *be; local [all...] |