/titanic_41/usr/src/lib/libnisdb/yptol/ |
H A D | shim.c | 93 map_ctrl *map; in shim_dbm_close() local 96 map = get_map_ctrl(db); in shim_dbm_close() 97 if (map == NULL) in shim_dbm_close() 100 free_map_ctrl(map); in shim_dbm_close() 119 map_ctrl *map; in shim_dbm_delete() local 122 map = get_map_ctrl(db); in shim_dbm_delete() 123 if (map == NULL) in shim_dbm_delete() 125 if (1 != lock_map_ctrl(map)) in shim_dbm_delete() 130 dbm_delete(map->ttl, key); in shim_dbm_delete() 133 ret = dbm_delete(map->entries, key); in shim_dbm_delete() [all …]
|
H A D | map_ctrl.c | 91 map_ctrl *map; in create_map_ctrl() local 93 map = (map_ctrl *)am(myself, sizeof (map_ctrl)); in create_map_ctrl() 94 if (NULL == map) { in create_map_ctrl() 100 map->entries = NULL; in create_map_ctrl() 101 map->hash_val = 0; in create_map_ctrl() 102 map->map_name = NULL; in create_map_ctrl() 103 map->domain = NULL; in create_map_ctrl() 104 map->map_path = NULL; in create_map_ctrl() 105 map->ttl = NULL; in create_map_ctrl() 106 map->ttl_path = NULL; in create_map_ctrl() [all …]
|
H A D | update.c | 82 update_entry_if_required(map_ctrl *map, datum *key) in update_entry_if_required() argument 87 if (is_map_updating(map)) in update_entry_if_required() 97 if (has_map_expired(map)) in update_entry_if_required() 98 update_timestamp(map->entries); in update_entry_if_required() 106 if (!has_entry_expired(map, key)) in update_entry_if_required() 111 return (update_from_dit(map, key)); in update_entry_if_required() 128 update_from_dit(map_ctrl *map, datum *key) in update_from_dit() argument 138 if ((0 == strcmp(map->map_name, NETGROUP_BYHOST)) || in update_from_dit() 139 (0 == strcmp(map->map_name, NETGROUP_BYUSER))) { in update_from_dit() 140 return (update_map_if_required(map, FALSE)); in update_from_dit() [all …]
|
H A D | ttl_utils.c | 68 has_entry_expired(map_ctrl *map, datum *key) in has_entry_expired() argument 76 if ((map == NULL) || (map->ttl == NULL)) in has_entry_expired() 80 ttl = dbm_fetch(map->ttl, *key); in has_entry_expired() 92 MAP_EXPIRY_KEY, map->map_name); in has_entry_expired() 103 if (has_map_expired(map)) { in has_entry_expired() 105 update_map_if_required(map, FALSE); in has_entry_expired() 120 map->map_name, dbm_error(map->ttl)); in has_entry_expired() 162 has_map_expired(map_ctrl *map) in has_map_expired() argument 171 return (has_entry_expired(map, &key)); in has_map_expired() 189 update_entry_ttl(map_ctrl *map, datum *key, TTL_TYPE type) in update_entry_ttl() argument [all …]
|
H A D | dit_access.c | 120 read_from_dit(char *map, char *domain, datum *key, datum *value) in read_from_dit() argument 145 if (TRUE == singleReadFromDIT(map, domain, key, value, &res)) in read_from_dit() 196 write_to_dit(char *map, char *domain, datum key, datum value, in write_to_dit() argument 222 res = singleWriteToDIT(map, domain, &key, &value, replace); in write_to_dit() 275 get_ttl_value(map_ctrl *map, TTL_TYPE type) in get_ttl_value() argument 282 table_map = mappingFromMap(map->map_name, map->domain, &res); in get_ttl_value() 287 "(error %d)", map->map_name, map->domain, res); in get_ttl_value() 541 add_special_entries(DBM *db, map_ctrl *map, bool_t *secure_flag) in add_special_entries() argument 551 addpair(db, yp_domain_name, map->domain); in add_special_entries() 558 table_map = mappingFromMap(map->map_name, map->domain, &res); in add_special_entries() [all …]
|
/titanic_41/usr/src/cmd/sendmail/src/ |
H A D | map.c | 158 map_parseargs(map, ap) in map_parseargs() argument 159 MAP *map; in map_parseargs() 169 map->map_mflags |= MF_TRY0NULL|MF_TRY1NULL; 170 map->map_spacesub = SpaceSub; /* default value */ 180 map->map_mflags |= MF_INCLNULL; 181 map->map_mflags &= ~MF_TRY0NULL; 185 map->map_mflags &= ~MF_TRY1NULL; 189 map->map_mflags |= MF_OPTIONAL; 193 map->map_mflags |= MF_NOFOLDCASE; 197 map->map_mflags |= MF_MATCHONLY; [all …]
|
H A D | alias.c | 216 static MAP *map = NULL; local 222 if (map == NULL) 228 map = &s->s_map; 230 DYNOPENMAP(map); 245 return (*map->map_class->map_lookup)(map, name, argv, pstat); 247 return (*map->map_class->map_lookup)(map, name, NULL, pstat); 267 register MAP *map; local 303 map = &s->s_map; 304 memset(map, '\0', sizeof(*map)); 305 map->map_mname = s->s_name; [all …]
|
/titanic_41/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | cong.c | 117 struct rdsv3_cong_map *map; in rdsv3_cong_tree_walk() local 121 map = avl_find(&rdsv3_cong_tree, insert, &where); in rdsv3_cong_tree_walk() 122 if (map == NULL) { in rdsv3_cong_tree_walk() 129 map = avl_find(&rdsv3_cong_tree, &map1, &where); in rdsv3_cong_tree_walk() 132 return (map); in rdsv3_cong_tree_walk() 143 struct rdsv3_cong_map *map; in rdsv3_cong_from_addr() local 150 map = kmem_zalloc(sizeof (struct rdsv3_cong_map), KM_NOSLEEP); in rdsv3_cong_from_addr() 151 if (!map) in rdsv3_cong_from_addr() 154 map->m_addr = addr; in rdsv3_cong_from_addr() 155 rdsv3_init_waitqueue(&map->m_waitq); in rdsv3_cong_from_addr() [all …]
|
/titanic_41/usr/src/cmd/format/ |
H A D | modify_partition.c | 45 static void adj_cyl_offset(struct dk_map32 *map); 46 static int check_map(struct dk_map32 *map); 47 static void get_user_map(struct dk_map32 *map, int float_part); 48 static void get_user_map_efi(struct dk_gpt *map, int float_part); 75 struct dk_map32 *map = tmp_pinfo->pinfo_map; in p_modify() local 171 map[i].dkl_nblk = cur_parts->pinfo_map[i].dkl_nblk; in p_modify() 172 map[i].dkl_cylno = cur_parts->pinfo_map[i].dkl_cylno; in p_modify() 181 map[i].dkl_nblk = 0; in p_modify() 182 map[i].dkl_cylno = 0; in p_modify() 184 map[C_PARTITION].dkl_nblk = ncyl * spc(); in p_modify() [all …]
|
/titanic_41/usr/src/lib/libkmf/libkmf/common/ |
H A D | mapping.c | 92 open_mapper_library(KMF_MAPPER_RECORD *map) in open_mapper_library() argument 96 map->dldesc = dlopen(map->curpathname, RTLD_LAZY | RTLD_PARENT); in open_mapper_library() 97 if (map->dldesc == NULL) in open_mapper_library() 115 KMF_MAPPER_RECORD *map = NULL; in kmf_cert_to_name_mapping_initialize() local 127 map = &handle->policy->mapper; in kmf_cert_to_name_mapping_initialize() 128 old_curpathname = map->curpathname; in kmf_cert_to_name_mapping_initialize() 129 old_curoptions = map->curoptions; in kmf_cert_to_name_mapping_initialize() 156 } else if (map->pathname != NULL) { in kmf_cert_to_name_mapping_initialize() 157 tmppath = strdup(map->pathname); in kmf_cert_to_name_mapping_initialize() 160 opts = map->options; in kmf_cert_to_name_mapping_initialize() [all …]
|
/titanic_41/usr/src/uts/common/avs/ns/nsctl/ |
H A D | nsc_gen.c | 170 _nsc_rmmap_init(nsc_rmmap_t *map, char *name, in _nsc_rmmap_init() argument 181 nvmap = _nsc_global_nvmemmap_lookup(map); in _nsc_rmmap_init() 183 if (!map->size) in _nsc_rmmap_init() 184 map->size = size; in _nsc_rmmap_init() 185 if (!map->inuse) in _nsc_rmmap_init() 186 map->inuse = nslot; in _nsc_rmmap_init() 187 if (!map->offset) in _nsc_rmmap_init() 188 map->offset = offset; in _nsc_rmmap_init() 190 if (!map->name[0]) in _nsc_rmmap_init() 191 (void) strncpy(map->name, name, _NSC_MAXNAME); in _nsc_rmmap_init() [all …]
|
/titanic_41/usr/src/uts/common/io/mr_sas/ |
H A D | ld_pd_map.c | 48 *MR_LdRaidGet(U32 ld, MR_FW_RAID_MAP_ALL *map) in MR_LdRaidGet() argument 50 return (&map->raidMap.ldSpanMap[ld].ldRaid); in MR_LdRaidGet() 54 MR_GetLDTgtId(U32 ld, MR_FW_RAID_MAP_ALL *map) in MR_GetLDTgtId() argument 56 return (map->raidMap.ldSpanMap[ld].ldRaid.targetId); in MR_GetLDTgtId() 61 MR_LdSpanInfoGet(U32 ld, MR_FW_RAID_MAP_ALL *map) in MR_LdSpanInfoGet() argument 63 return (&map->raidMap.ldSpanMap[ld].spanBlock[0]); in MR_LdSpanInfoGet() 67 MR_LdDataArmGet(U32 ld, U32 armIdx, MR_FW_RAID_MAP_ALL *map) in MR_LdDataArmGet() argument 69 return (map->raidMap.ldSpanMap[ld].dataArmMap[armIdx]); in MR_LdDataArmGet() 73 MR_ArPdGet(U32 ar, U32 arm, MR_FW_RAID_MAP_ALL *map) in MR_ArPdGet() argument 75 return (map->raidMap.arMapInfo[ar].pd[arm]); in MR_ArPdGet() [all …]
|
/titanic_41/usr/src/uts/common/io/drm/ |
H A D | drm_bufs.c | 70 drm_local_map_t *map; in drm_find_map() local 72 TAILQ_FOREACH(map, &dev->maplist, link) { in drm_find_map() 73 if ((map->type == type) && ((map->offset == offset) || in drm_find_map() 74 (map->flags == _DRM_CONTAINS_LOCK) && in drm_find_map() 75 (map->type == _DRM_SHM))) in drm_find_map() 76 return (map); in drm_find_map() 86 drm_local_map_t *map; in drm_addmap() local 106 map = drm_find_map(dev, offset, type); in drm_addmap() 107 if (map != NULL) { in drm_addmap() 115 map = drm_alloc(sizeof (*map), DRM_MEM_MAPS); in drm_addmap() [all …]
|
/titanic_41/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | friendly.c | 46 ldap_friendly_name( char *filename, char *name, FriendlyMap *map ) in ldap_friendly_name() argument 53 if ( map == NULL ) { in ldap_friendly_name() 61 if ( *map == NULL ) { in ldap_friendly_name() 72 if ( (*map = (FriendlyMap)NSLDAPI_MALLOC( (entries + 1) * in ldap_friendly_name() 109 (*map)[i].f_unfriendly = nsldapi_strdup( buf ); in ldap_friendly_name() 110 (*map)[i].f_friendly = nsldapi_strdup( s ); in ldap_friendly_name() 115 (*map)[i].f_unfriendly = NULL; in ldap_friendly_name() 118 for ( i = 0; (*map)[i].f_unfriendly != NULL; i++ ) { in ldap_friendly_name() 119 if ( strcasecmp( name, (*map)[i].f_unfriendly ) == 0 ) in ldap_friendly_name() 120 return( (*map)[i].f_friendly ); in ldap_friendly_name() [all …]
|
/titanic_41/usr/src/common/mapfiles/amd64/ |
H A D | Makefile | 34 install: $(DIRS) $(FILES) map.link 40 map.link: 41 $(RM) $(ROOTDIR64)/map.default \ 42 $(ROOTDIR64)/map.above4G $(ROOTDIR64)/map.below4G 43 $(SYMLINK) ../map.default $(ROOTDIR64)/map.default 44 $(SYMLINK) ../map.above4G $(ROOTDIR64)/map.above4G 45 $(SYMLINK) ../map.below4G $(ROOTDIR64)/map.below4G
|
/titanic_41/usr/src/common/mapfiles/sparcv9/ |
H A D | Makefile | 34 install: $(DIRS) $(FILES) map.link 40 map.link: 41 $(RM) $(ROOTDIR64)/map.default \ 42 $(ROOTDIR64)/map.above4G $(ROOTDIR64)/map.below4G 43 $(SYMLINK) ../map.default $(ROOTDIR64)/map.default 44 $(SYMLINK) ../map.above4G $(ROOTDIR64)/map.above4G 45 $(SYMLINK) ../map.below4G $(ROOTDIR64)/map.below4G
|
/titanic_41/usr/src/lib/libnsl/yp/ |
H A D | yp_match.c | 64 char *map; member 85 if (n->map != 0) in freenode() 86 free(n->map); in freenode() 96 makenode(char *domain, char *map, int keylen, int vallen) in makenode() argument 101 if (strncmp(map, "passwd", 6) == 0) in makenode() 107 ((n->map = strdup(map)) == 0) || in makenode() 122 in_cache(char *domain, char *map, char *key, int keylen, char **val, in in_cache() argument 131 if (strncmp(map, "passwd", 6) == 0) in in_cache() 140 (strcmp(map, c->map) == 0) && in in_cache() 176 __yp_match_cflookup(char *domain, char *map, char *key, int keylen, char **val, in __yp_match_cflookup() argument [all …]
|
/titanic_41/usr/src/common/mapfiles/common/ |
H A D | Makefile | 32 $(ROOTDIR)/map.above4G \ 33 $(ROOTDIR)/map.below4G \ 34 $(ROOTDIR)/map.bssalign \ 35 $(ROOTDIR)/map.execdata \ 36 $(ROOTDIR)/map.default \ 37 $(ROOTDIR)/map.filter \ 38 $(ROOTDIR)/map.noexbss \ 39 $(ROOTDIR)/map.noexdata \ 40 $(ROOTDIR)/map.noexstk \ 41 $(ROOTDIR)/map.pagealign
|
/titanic_41/usr/src/lib/libldap5/sources/ldap/prldap/ |
H A D | ldappr-threads.c | 150 static void prldap_return_map( PRLDAP_TPDMap *map ); 277 PRLDAP_TPDMap *map; in prldap_get_ld_error() local 280 if (( map = (PRLDAP_TPDMap *)errorarg ) != NULL && ( eip = in prldap_get_ld_error() 282 map->prtm_index )) != NULL ) { in prldap_get_ld_error() 305 PRLDAP_TPDMap *map; in prldap_set_ld_error() local 308 if (( map = (PRLDAP_TPDMap *)errorarg ) != NULL ) { in prldap_set_ld_error() 310 map->prtm_index )) == NULL ) { in prldap_set_ld_error() 327 (void)prldap_set_thread_private( map->prtm_index, eip ); in prldap_set_ld_error() 417 PRLDAP_TPDMap *map, *prevmap; in prldap_allocate_map() local 425 for ( map = prldap_map_list; map != NULL; map = map->prtm_next ) { in prldap_allocate_map() [all …]
|
/titanic_41/usr/src/lib/libast/common/string/ |
H A D | ccmap.c | 617 unsigned char map[MAP]; member 632 register Map_t* map; in _ccmap() local 662 for (map = maps; map; map = map->next) in _ccmap() 663 if (map->op == op) in _ccmap() 664 return map->map; in _ccmap() 665 if (!(map = newof(0, Map_t, 1, 0))) in _ccmap() 667 map->op = op; in _ccmap() 670 m = map->map; in _ccmap() 675 map->next = maps; in _ccmap() 676 maps = map; in _ccmap()
|
/titanic_41/usr/src/cmd/tail/ |
H A D | reverse.c | 101 struct mapinfo map; in r_reg() local 108 map.start = NULL; in r_reg() 109 map.mapoff = map.maxoff = size; in r_reg() 110 map.fd = fileno(fp); in r_reg() 119 if (curoff < map.mapoff || in r_reg() 120 curoff >= map.mapoff + (off_t)map.maplen) { in r_reg() 121 if (maparound(&map, curoff) != 0) { in r_reg() 126 for (i = curoff - map.mapoff; i >= 0; i--) { in r_reg() 129 if (map.start[i] == '\n') in r_reg() 133 curoff = map.mapoff + i; in r_reg() [all …]
|
/titanic_41/usr/src/cmd/luxadm/ |
H A D | fchba.c | 410 fetch_mappings(HBA_HANDLE handle, HBA_WWN pwwn, HBA_FCPTARGETMAPPINGV2 **map) { in fetch_mappings() argument 414 *map = (HBA_FCPTARGETMAPPINGV2 *) calloc(1, in fetch_mappings() 422 status = HBA_GetFcpTargetMappingV2(handle, pwwn, *map); in fetch_mappings() 426 count = (*map)->NumberOfEntries; in fetch_mappings() 427 free(*map); in fetch_mappings() 428 *map = (HBA_FCPTARGETMAPPINGV2 *) calloc(1, in fetch_mappings() 431 (*map)->NumberOfEntries = count; in fetch_mappings() 452 match_mappings(char *compare, HBA_FCPTARGETMAPPINGV2 *map) { in match_mappings() argument 459 if (map == NULL || compare == NULL) { in match_mappings() 472 for (mapIndex = 0; mapIndex < map->NumberOfEntries; mapIndex ++) { in match_mappings() [all …]
|
/titanic_41/usr/src/uts/i86xpv/vm/ |
H A D | seg_mf.c | 99 segmf_map_t *map; member 133 data->map = kmem_alloc(npages * sizeof (segmf_map_t), KM_SLEEP); in segmf_create() 135 data->map[i].t_type = SEGMF_MAP_EMPTY; in segmf_create() 167 ndata->map = kmem_alloc(sz, KM_SLEEP); in segmf_dup() 168 bcopy(data->map, ndata->map, sz); in segmf_dup() 212 kmem_free(data->map, npages * sizeof (segmf_map_t)); in segmf_free() 228 segmf_map_t *map; in segmf_faultpage() local 233 map = &data->map[idx]; in segmf_faultpage() 234 ASSERT(map->t_type == SEGMF_MAP_MFN); in segmf_faultpage() 236 mfn = map->u.m.m_mfn; in segmf_faultpage() [all …]
|
/titanic_41/usr/src/grub/grub-0.97/lib/ |
H A D | device.c | 140 get_drive_geometry (struct geometry *geom, char **map, int drive) in get_drive_geometry() argument 146 fd = open (map[drive], O_RDONLY); in get_drive_geometry() 522 read_device_map (FILE *fp, char **map, const char *map_file) in read_device_map() argument 627 if (map[drive]) in read_device_map() 633 map[drive] = strdup (ptr); in read_device_map() 634 assert (map[drive]); in read_device_map() 647 init_device_map (char ***map, const char *map_file, int floppy_disks) in init_device_map() argument 653 assert (map); in init_device_map() 654 assert (*map == 0); in init_device_map() 655 *map = malloc (NUM_DISKS * sizeof (char *)); in init_device_map() [all …]
|
/titanic_41/usr/src/uts/common/io/ppp/spppcomp/ |
H A D | zlib.h | 345 #pragma map(deflateInit_, "DEIN") 346 #pragma map(deflateInit2_, "DEIN2") 347 #pragma map(deflateEnd, "DEEND") 348 #pragma map(inflateInit_, "ININ") 349 #pragma map(inflateInit2_, "ININ2") 350 #pragma map(inflateEnd, "INEND") 351 #pragma map(inflateSync, "INSY") 352 #pragma map(inflateSetDictionary, "INSEDI") 353 #pragma map(inflate_blocks, "INBL") 354 #pragma map(inflate_blocks_new, "INBLNE") [all …]
|