/illumos-gate/usr/src/tools/smatch/src/validation/ |
H A D | typeof-mods.c | 8 unsigned int obj, *ptr; in test_spec() local 10 typeof(ptr) ptr2 = ptr; in test_spec() 11 typeof(*ptr) var2 = obj; in test_spec() 12 typeof(*ptr) *ptr3 = ptr; in test_spec() 13 typeof(obj) *ptr4 = ptr; in test_spec() 15 ptr = ptr; in test_spec() 16 ptr = &obj; in test_spec() 17 obj = *ptr; in test_spec() 22 const int obj, *ptr; in test_const() local 24 typeof(ptr) ptr2 = ptr; in test_const() [all …]
|
H A D | builtin_atomic.c | 3 static int i, *ptr = (void *)0; in fn() local 5 i = __sync_fetch_and_add(ptr, 0); in fn() 6 i = __sync_fetch_and_sub(ptr, 0); in fn() 7 i = __sync_fetch_and_or(ptr, 0); in fn() 8 i = __sync_fetch_and_and(ptr, 0); in fn() 9 i = __sync_fetch_and_xor(ptr, 0); in fn() 10 i = __sync_fetch_and_nand(ptr, 0); in fn() 11 i = __sync_add_and_fetch(ptr, 0); in fn() 12 i = __sync_sub_and_fetch(ptr, 0); in fn() 13 i = __sync_or_and_fetch(ptr, 0); in fn() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | ptrlist.h | 14 #define CHECK_TYPE(head,ptr) (void)(&(ptr) == &(head)->list[0]) argument 59 #define add_ptr_list(list, ptr) ({ \ argument 61 CHECK_TYPE(*(list),ptr); \ 62 (__typeof__(&(ptr))) __add_ptr_list(head, ptr); \ 64 #define add_ptr_list_tag(list, ptr, tag) ({ \ argument 66 CHECK_TYPE(*(list),ptr); \ 67 (__typeof__(&(ptr))) __add_ptr_list_tag(head, ptr, tag);\ 79 #define PREPARE_PTR_LIST(head, ptr) \ argument 80 DO_PREPARE(head, ptr, __head##ptr, __list##ptr, __nr##ptr, PTR_ENTRY_UNTAG) 82 #define NEXT_PTR_LIST(ptr) \ argument [all …]
|
/illumos-gate/usr/src/lib/pam_modules/authtok_check/ |
H A D | rules.c | 77 register char *ptr; in Uppercase() local 80 ptr = area; in Uppercase() 82 *(ptr++) = CRACK_TOUPPER(*str); in Uppercase() 85 *ptr = '\0'; in Uppercase() 93 register char *ptr; in Lowercase() local 96 ptr = area; in Lowercase() 98 *(ptr++) = CRACK_TOLOWER(*str); in Lowercase() 101 *ptr = '\0'; in Lowercase() 109 register char *ptr; in Capitalise() local 112 ptr = area; in Capitalise() [all …]
|
H A D | stringlib.c | 21 register char *ptr; in Chop() local 25 for (ptr = string; *ptr; ptr++); in Chop() 26 if (ptr != string) { in Chop() 27 c = *(--ptr); in Chop() 28 *ptr = '\0'; in Chop() 37 register char *ptr; in Chomp() local 41 for (ptr = string; *ptr; ptr++) in Chomp() 43 if (ptr != string && isspace(*(--ptr))) { in Chomp() 44 c = *ptr; in Chomp() 45 *ptr = '\0'; in Chomp() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/ |
H A D | table.c | 70 static void delete(TABLE_ENTRY *ptr); 80 TABLE_ENTRY *ptr; in find_match() local 87 ptr = table; in find_match() 94 while (ptr != NULL) { in find_match() 96 if ((ptr->time - current_time) > MAX_LIFE) { in find_match() 100 print_request(&ptr->request); in find_match() 102 prevp = ptr; in find_match() 103 ptr = ptr->next; in find_match() 109 print_request(&ptr->request); in find_match() 111 if (strcmp(request->l_name, ptr->request.r_name) == 0 && in find_match() [all …]
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_xdr.c | 69 int32_t *ptr; in xdr_fhandle() local 75 ptr = XDR_INLINE(xdrs, RNDUP(sizeof (fhandle_t))); in xdr_fhandle() 76 if (ptr != NULL) { in xdr_fhandle() 79 *fhp++ = *ptr++; in xdr_fhandle() 80 *fhp++ = *ptr++; in xdr_fhandle() 81 *fhp++ = *ptr++; in xdr_fhandle() 82 *fhp++ = *ptr++; in xdr_fhandle() 83 *fhp++ = *ptr++; in xdr_fhandle() 84 *fhp++ = *ptr++; in xdr_fhandle() 85 *fhp++ = *ptr++; in xdr_fhandle() [all …]
|
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSShared/ |
H A D | dnssd_ipc.c | 59 void put_uint32(const uint32_t l, char **ptr) in put_uint32() argument 61 (*ptr)[0] = (char)((l >> 24) & 0xFF); in put_uint32() 62 (*ptr)[1] = (char)((l >> 16) & 0xFF); in put_uint32() 63 (*ptr)[2] = (char)((l >> 8) & 0xFF); in put_uint32() 64 (*ptr)[3] = (char)((l ) & 0xFF); in put_uint32() 65 *ptr += sizeof(uint32_t); in put_uint32() 68 uint32_t get_uint32(const char **ptr, const char *end) in get_uint32() argument 70 if (!*ptr || *ptr + sizeof(uint32_t) > end) in get_uint32() 72 *ptr = NULL; in get_uint32() 77 uint8_t *p = (uint8_t*) *ptr; in get_uint32() [all …]
|
/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | alloc.c | 100 void *ptr; in initial_allocation() local 125 ptr = (void *)((caddr_t)base + bucketnum * SUBCHUNKSIZE); in initial_allocation() 128 bp->free_list = ptr; in initial_allocation() 130 void *next = (void *)((caddr_t)ptr + size); in initial_allocation() 131 *(void **)ptr = next; in initial_allocation() 132 ptr = next; in initial_allocation() 134 *(void **)ptr = NULL; in initial_allocation() 137 ptr = (void *)((caddr_t)base + bucketnum * SUBCHUNKSIZE); in initial_allocation() 139 bp->free_list = ptr; in initial_allocation() 141 ptr = (void *)((caddr_t)ptr + 2 * SUBCHUNKSIZE); in initial_allocation() [all …]
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ |
H A D | ldap_principal.h | 38 #define NOOFKEYS(ptr) ((ptr[10]<<8) | ptr[11]) argument 40 #define PRINCIPALLEN(ptr) ((ptr[0]<<8) | ptr[1]) argument 41 #define PRINCIPALNAME(ptr) (ptr + KEYHEADER + (NOOFKEYS(ptr) *8)) argument 43 #define KEYBODY(ptr) PRINCIPALNAME(ptr) + PRINCIPALLEN(ptr) argument 45 #define PKEYVER(ptr) ((ptr[2]<<8) | ptr[3]) argument 46 #define MKEYVER(ptr) ((ptr[4]<<8) | ptr[5]) argument 48 #define KEYTYPE(ptr,j) ((ptr[KEYHEADER+(j*8)]<<8) | ptr[KEYHEADER+1+(j*8)]) argument 49 #define KEYLENGTH(ptr,j) ((ptr[KEYHEADER+2+(j*8)]<<8) | ptr[KEYHEADER+3+(j*8)]) argument 50 #define SALTTYPE(ptr,j) ((ptr[KEYHEADER+4+(j*8)]<<8) | ptr[KEYHEADER+5+(j*8)]) argument 51 #define SALTLENGTH(ptr,j) ((ptr[KEYHEADER+6+(j*8)]<<8) | ptr[KEYHEADER+7+(j*8)]) argument
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | heap.c | 97 void *ptr; local 100 ptr = malloc(MALLOC_SIZE(size)); 102 if (ptr == NULL) 104 return ptr; 123 void *ptr; local 126 ptr = malloc(MALLOC_SIZE(size)); 128 return ptr; 143 sm_realloc(ptr, size) in sm_realloc() argument 144 void *ptr; in sm_realloc() 150 newptr = realloc(ptr, MALLOC_SIZE(size)); [all …]
|
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSCore/ |
H A D | DNSCommon.c | 246 mDNSu8 *ptr = (mDNSu8 *)&x; in swap32() local 247 return (mDNSu32)((mDNSu32)ptr[0] << 24 | (mDNSu32)ptr[1] << 16 | (mDNSu32)ptr[2] << 8 | ptr[3]); in swap32() 252 mDNSu8 *ptr = (mDNSu8 *)&x; in swap16() local 253 return (mDNSu16)((mDNSu16)ptr[0] << 8 | ptr[1]); in swap16() 301 char *ptr = buffer; in GetRRDisplayString_rdb() local 409 for (ptr = buffer; *ptr; ptr++) if (*ptr < ' ') *ptr = '.'; in GetRRDisplayString_rdb() 618 const mDNSu8 *ptr; in CountLabels() local 619 for (ptr = d->c; *ptr; ptr = ptr + ptr[0] + 1) count++; in CountLabels() 640 mDNSu8 * ptr = name->c + DomainNameLength(name) - 1; // Find end of current name in AppendLiteralLabelString() local 642 const mDNSu8 *const lim2 = ptr + 1 + MAX_DOMAIN_LABEL; in AppendLiteralLabelString() [all …]
|
/illumos-gate/usr/src/common/smbsrv/ |
H A D | smb_door_legacy.c | 49 smb_dr_decode_start(char *ptr, int size) in smb_dr_decode_start() argument 53 ctx->start_ptr = ctx->ptr = ptr; in smb_dr_decode_start() 54 ctx->end_ptr = ptr + size; in smb_dr_decode_start() 64 if (status == 0 && ctx->ptr != ctx->end_ptr) in smb_dr_decode_finish() 72 smb_dr_encode_start(char *ptr, int size) in smb_dr_encode_start() argument 76 ctx->start_ptr = ctx->ptr = ptr; in smb_dr_encode_start() 77 ctx->end_ptr = ptr + size; in smb_dr_encode_start() 88 if (ctx->ptr < ctx->end_ptr) { in smb_dr_encode_finish() 90 *used = ctx->ptr - ctx->start_ptr; in smb_dr_encode_finish() 105 if (ctx->ptr + sizeof (DWORD) <= ctx->end_ptr) { in smb_dr_get_dword() [all …]
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | mandoc_aux.c | 52 void *ptr; in mandoc_calloc() local 54 ptr = calloc(num, size); in mandoc_calloc() 55 if (ptr == NULL) in mandoc_calloc() 57 return ptr; in mandoc_calloc() 63 void *ptr; in mandoc_malloc() local 65 ptr = malloc(size); in mandoc_malloc() 66 if (ptr == NULL) in mandoc_malloc() 68 return ptr; in mandoc_malloc() 72 mandoc_realloc(void *ptr, size_t size) in mandoc_realloc() argument 74 ptr = realloc(ptr, size); in mandoc_realloc() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/ |
H A D | util_ctxsetup.c | 37 kg2_parse_token(minor_status, ptr, token_length, flags, nctypes, ctypes, in kg2_parse_token() argument 40 unsigned char *ptr; 59 *flags = (ptr[0]<<24) | (ptr[1]<<16) | (ptr[2]<<8) | ptr[3]; 60 ptr += 4; 67 field_length = (ptr[0]<<8) | ptr[1]; 68 ptr += 2; 88 (*ctypes)[i] = (krb5_cksumtype) ((ptr[0]<<24) | (ptr[1]<<16) | 89 (ptr[2]<<8) | ptr[3]); 90 ptr += 4; 97 opt_id = (ptr[0]<<8) | ptr[1]; [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | chpw.c | 28 char *ptr; in krb5int_mk_chpw_req() local 50 ptr = packet->data; in krb5int_mk_chpw_req() 54 *ptr++ = (packet->length>> 8) & 0xff; in krb5int_mk_chpw_req() 55 *ptr++ = packet->length & 0xff; in krb5int_mk_chpw_req() 59 *ptr++ = 0; in krb5int_mk_chpw_req() 60 *ptr++ = 1; in krb5int_mk_chpw_req() 64 *ptr++ = (ap_req->length>>8) & 0xff; in krb5int_mk_chpw_req() 65 *ptr++ = ap_req->length & 0xff; in krb5int_mk_chpw_req() 69 memcpy(ptr, ap_req->data, ap_req->length); in krb5int_mk_chpw_req() 70 ptr += ap_req->length; in krb5int_mk_chpw_req() [all …]
|
/illumos-gate/usr/src/lib/libndmp/common/ |
H A D | libndmp_door_data.c | 50 ndmp_door_decode_start(char *ptr, int size) in ndmp_door_decode_start() argument 54 ctx->start_ptr = ctx->ptr = ptr; in ndmp_door_decode_start() 55 ctx->end_ptr = ptr + size; in ndmp_door_decode_start() 65 if ((status == 0) && (ctx->ptr != ctx->end_ptr)) { in ndmp_door_decode_finish() 73 ndmp_door_encode_start(char *ptr, int size) in ndmp_door_encode_start() argument 77 ctx->start_ptr = ctx->ptr = ptr; in ndmp_door_encode_start() 78 ctx->end_ptr = ptr + size; in ndmp_door_encode_start() 89 if (ctx->ptr < ctx->end_ptr) { in ndmp_door_encode_finish() 91 *used = ctx->ptr - ctx->start_ptr; in ndmp_door_encode_finish() 105 if (ctx->ptr + sizeof (int32_t) <= ctx->end_ptr) { in ndmp_door_get_int32() [all …]
|
/illumos-gate/usr/src/lib/libmail/common/ |
H A D | s_string.c | 57 sp->ptr = (char *)freed; in s_free() 86 freed = (string *)(freed->ptr); in s_new() 87 sp->ptr = sp->base; in s_new() 91 sp->base = sp->ptr = malloc(STRLEN); in s_new() 123 sp->ptr = (sp->ptr - sp->base) + cp; in s_simplegrow() 143 sp->base = sp->ptr = cp; in s_array() 164 sp->ptr = sp->end - (size_t)1; /* point to NULL terminator */ in s_copy() 174 for (cp = sp->ptr; *cp; cp++) in s_tolower() 181 while (isspace(*sp->ptr)) in s_skipwhite() 282 char *splitend = strpbrk(from->ptr, split); in s_tok() [all …]
|
/illumos-gate/usr/src/cmd/sgs/libelf/misc/ |
H A D | args.c | 56 String *ptr; member 64 r->ptr = mk_String((String *)0); in mkar() 72 free_String(r->ptr); in delar() 82 r->ptr = nprep_String(c, r->ptr, n); in nsetarg() 84 r->ptr = prep_String(MSG_ORIG(MSG_STR_CONST_1), r->ptr); in nsetarg() 86 r->ptr = prep_String(MSG_ORIG(MSG_STR_VOLATILE_1), r->ptr); in nsetarg() 88 r->ptr = prep_String(MSG_ORIG(MSG_STR_UNSIGNED), r->ptr); in nsetarg() 90 r->ptr = prep_String(MSG_ORIG(MSG_STR_SIGNED), r->ptr); in nsetarg() 91 *sptr = app_String(*sptr,PTR(r->ptr)); in nsetarg() 182 ar.ptr = prep_String(MSG_ORIG(MSG_STR_CONST_2), in demangle_doarg() [all …]
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | ttyadm.c | 71 struct pmtab *ptr; in main() local 85 if ((ptr = ALLOC_PMTAB) == NULL) { in main() 89 ptr->p_modules = ""; in main() 90 ptr->p_dmsg = ""; in main() 91 ptr->p_termtype = ""; in main() 92 ptr->p_softcar = ""; in main() 93 ptr->p_prompt = "login\\: "; in main() 105 ptr->p_device = optarg; in main() 130 ptr->p_termtype = optarg; in main() 136 ptr->p_softcar = "y"; in main() [all …]
|
/illumos-gate/usr/src/lib/krb5/kadm5/clnt/ |
H A D | chpw.c | 28 char *ptr; in krb5int_mk_chpw_req() local 50 ptr = packet->data; in krb5int_mk_chpw_req() 54 *ptr++ = (packet->length>> 8) & 0xff; in krb5int_mk_chpw_req() 55 *ptr++ = packet->length & 0xff; in krb5int_mk_chpw_req() 62 *ptr++ = 0; in krb5int_mk_chpw_req() 63 *ptr++ = 1; in krb5int_mk_chpw_req() 67 *ptr++ = (ap_req->length>>8) & 0xff; in krb5int_mk_chpw_req() 68 *ptr++ = ap_req->length & 0xff; in krb5int_mk_chpw_req() 72 memcpy(ptr, ap_req->data, ap_req->length); in krb5int_mk_chpw_req() 73 ptr += ap_req->length; in krb5int_mk_chpw_req() [all …]
|
/illumos-gate/usr/src/common/ficl/softcore/ |
H A D | classes.fr | 55 \ Note: use c-ref to make references to objects. C-ptr 65 object subclass c-ptr 69 : get-ptr ( inst class -- addr ) 70 c-ptr => .addr 75 : set-ptr ( addr inst class -- ) 76 c-ptr => .addr 81 : clr-ptr 82 0 -rot c-ptr => .addr c-cell => set 87 c-ptr => get-ptr 0= 91 : inc-ptr ( inst class -- ) [all …]
|
/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_mapping.c | 103 char **ptr; in ns_free_map() local 116 for (ptr = mapp->map; *ptr; ptr++) in ns_free_map() 117 free(*ptr); in ns_free_map() 300 __ns_ldap_freeASearchDesc(ns_ldap_search_desc_t *ptr) in __ns_ldap_freeASearchDesc() argument 302 if (ptr == NULL) in __ns_ldap_freeASearchDesc() 304 if (ptr->basedn) in __ns_ldap_freeASearchDesc() 305 free(ptr->basedn); in __ns_ldap_freeASearchDesc() 306 if (ptr->filter) in __ns_ldap_freeASearchDesc() 307 free(ptr->filter); in __ns_ldap_freeASearchDesc() 308 free(ptr); in __ns_ldap_freeASearchDesc() [all …]
|
/illumos-gate/usr/src/lib/libiscsit/common/ |
H A D | libiscsit.c | 542 it_tgt_t *ptr; in it_tgt_create() local 581 ptr = calloc(1, sizeof (it_tgt_t)); in it_tgt_create() 582 if (ptr == NULL) { in it_tgt_create() 586 (void) strlcpy(ptr->tgt_name, namep, sizeof (ptr->tgt_name)); in it_tgt_create() 587 ptr->tgt_generation = 1; in it_tgt_create() 588 ptr->tgt_next = cfg->config_tgt_list; in it_tgt_create() 589 cfg->config_tgt_list = ptr; in it_tgt_create() 592 *tgt = ptr; in it_tgt_create() 854 it_tpgt_t *ptr = NULL; in it_tpgt_create() local 912 ptr = calloc(1, sizeof (it_tpgt_t)); in it_tpgt_create() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_umem.c | 91 void *ptr = NULL; in mdb_umem_handler() 104 ptr = memalign(align, nbytes); in mdb_umem_handler() 106 ptr = malloc(nbytes); in mdb_umem_handler() 107 } while (ptr == NULL && errno == EAGAIN); in mdb_umem_handler() 109 if (ptr != NULL) in mdb_umem_handler() 110 return (ptr); in mdb_umem_handler() 134 mdb_umem_gc_enter(void *ptr, size_t nbytes) in mdb_umem_gc_enter() argument 138 blkp->blk_addr = ptr; in mdb_umem_gc_enter() 169 void *ptr; in mdb_alloc_align() local 180 ptr = memalign(align, nbytes); in mdb_alloc_align() [all …]
|