Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 25 of 1383) sorted by relevance

12345678910>>...56

/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dtypeof-mods.c10 typeof(ptr) ptr2 = ptr; in test_spec()
12 typeof(*ptr) *ptr3 = ptr; in test_spec()
15 ptr = ptr; in test_spec()
28 ptr = ptr; in test_const()
41 ptr = ptr; in test_volatile()
55 ptr = ptr; in test_restrict()
69 ptr = ptr; in test_atomic()
84 ptr = ptr; in test_bitwise()
98 ptr = ptr; in test_static()
112 ptr = ptr; in test_tls()
[all …]
H A Dbuiltin_atomic.c3 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 Dptrlist.h80 DO_PREPARE(head, ptr, __head##ptr, __list##ptr, __nr##ptr, PTR_ENTRY_UNTAG)
83 DO_NEXT(ptr, __head##ptr, __list##ptr, __nr##ptr, PTR_ENTRY_UNTAG)
86 DO_RESET(ptr, __head##ptr, __list##ptr, __nr##ptr, PTR_ENTRY_UNTAG)
89 DO_FINISH(ptr, __head##ptr, __list##ptr, __nr##ptr)
92 DO_REVERSE(ptr, __head##ptr, __list##ptr, __nr##ptr, \
97 DO_FOR_EACH(head, ptr, __head##ptr, __list##ptr, __nr##ptr, PTR_ENTRY_NOTAG)
100 DO_FOR_EACH(head, ptr, __head##ptr, __list##ptr, __nr##ptr, PTR_ENTRY_UNTAG)
103 DO_END_FOR_EACH(ptr, __head##ptr, __list##ptr, __nr##ptr)
112 DO_END_FOR_EACH_REVERSE(ptr, __head##ptr, __list##ptr, __nr##ptr)
115 DO_THIS_ADDRESS(ptr, __head##ptr, __list##ptr, __nr##ptr)
[all …]
/illumos-gate/usr/src/lib/pam_modules/authtok_check/
H A Drules.c373 for (ptr = control; *ptr; ptr++) { in Mangle()
449 if (!ptr[1] || !ptr[2]) { in Mangle()
471 if (!ptr[1] || !ptr[2]) { in Mangle()
488 if (!ptr[1] || !ptr[2]) { in Mangle()
513 if (!ptr[1] || (ptr[1] == in Mangle()
526 if (!ptr[1] || !ptr[2] || in Mangle()
527 (ptr[1] == RULE_CLASS && !ptr[3])) { in Mangle()
533 ptr[2], ptr[3]), PATH_MAX); in Mangle()
539 (ptr[1] == RULE_CLASS && !ptr[2])) { in Mangle()
554 (ptr[1] == RULE_CLASS && !ptr[2])) { in Mangle()
[all …]
H A Dstringlib.c27 for (ptr = string; *ptr; ptr++); in Chop()
29 c = *(--ptr); in Chop()
30 *ptr = '\0'; in Chop()
43 for (ptr = string; *ptr; ptr++) in Chomp()
45 if (ptr != string && isspace(*(--ptr))) { in Chomp()
46 c = *ptr; in Chomp()
47 *ptr = '\0'; in Chomp()
58 for (ptr = string; *ptr; ptr++); in Trim()
60 while ((--ptr >= string) && isspace(*ptr)); in Trim()
62 *(++ptr) = '\0'; in Trim()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/
H A Dtable.c87 ptr = table; in find_match()
103 ptr = ptr->next; in find_match()
117 ptr = ptr->next; in find_match()
143 ptr = table; in find_request()
159 ptr = ptr->next; in find_request()
177 ptr = ptr->next; in find_request()
208 ptr->next->last = ptr; in insert_table()
249 ptr = ptr->next; in delete_invite()
274 ptr->last->next = ptr->next; in delete()
278 ptr->next->last = ptr->last; in delete()
[all …]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_xdr.c69 int32_t *ptr; in xdr_fhandle() local
86 *fhp = *ptr; in xdr_fhandle()
95 *ptr = *fhp; in xdr_fhandle()
106 int32_t *ptr; in xdr_fastfhandle() local
126 int32_t *ptr; in xdr_writeargs() local
143 *fhp = *ptr++; in xdr_writeargs()
261 int32_t *ptr; in xdr_fattr() local
382 int32_t *ptr; in xdr_readargs() local
673 int32_t *ptr; in xdr_rddirargs() local
891 int32_t *ptr; in xdr_diropargs() local
[all …]
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSShared/
H A Ddnssd_ipc.c68 if (!*ptr || *ptr + sizeof(uint32_t) > end) in get_uint32()
70 *ptr = NULL; in get_uint32()
90 if (!*ptr || *ptr + sizeof(uint16_t) > end) in get_uint16()
92 *ptr = NULL; in get_uint16()
106 strcpy(*ptr, str); in put_string()
107 *ptr += strlen(str) + 1; in put_string()
113 if (!*ptr) in get_string()
136 *ptr += rdlen; in put_rdata()
141 if (!*ptr || *ptr + rdlen > end) in get_rdata()
143 *ptr = NULL; in get_rdata()
[all …]
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dalloc.c100 void *ptr; in initial_allocation() local
132 ptr = next; in initial_allocation()
141 ptr = (void *)((caddr_t)ptr + 2 * SUBCHUNKSIZE); in initial_allocation()
187 void *ptr; in lmalloc() local
204 ptr = NULL; in lmalloc()
205 return (ptr); in lmalloc()
253 ptr = next; in lmalloc()
267 return (ptr); in lmalloc()
367 new = ptr + 1; in libc_realloc()
373 lfree(ptr, ptr->private_size); in libc_realloc()
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dldap_principal.h40 #define NOOFKEYS(ptr) ((ptr[10]<<8) | ptr[11]) argument
42 #define PRINCIPALLEN(ptr) ((ptr[0]<<8) | ptr[1]) argument
43 #define PRINCIPALNAME(ptr) (ptr + KEYHEADER + (NOOFKEYS(ptr) *8)) argument
45 #define KEYBODY(ptr) PRINCIPALNAME(ptr) + PRINCIPALLEN(ptr) argument
47 #define PKEYVER(ptr) ((ptr[2]<<8) | ptr[3]) argument
48 #define MKEYVER(ptr) ((ptr[4]<<8) | ptr[5]) argument
50 #define KEYTYPE(ptr,j) ((ptr[KEYHEADER+(j*8)]<<8) | ptr[KEYHEADER+1+(j*8)]) argument
51 #define KEYLENGTH(ptr,j) ((ptr[KEYHEADER+2+(j*8)]<<8) | ptr[KEYHEADER+3+(j*8)]) argument
52 #define SALTTYPE(ptr,j) ((ptr[KEYHEADER+4+(j*8)]<<8) | ptr[KEYHEADER+5+(j*8)]) argument
53 #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 Dheap.c99 void *ptr; local
106 return ptr;
125 void *ptr; local
130 return ptr;
146 void *ptr; in sm_realloc()
173 void *ptr; in sm_realloc_x()
196 sm_free(ptr) in sm_free() argument
197 void *ptr; in sm_free()
202 free(ptr);
367 void *ptr; local
[all …]
/illumos-gate/usr/src/common/smbsrv/
H A Dsmb_door_legacy.c53 ctx->start_ptr = ctx->ptr = ptr; in smb_dr_decode_start()
54 ctx->end_ptr = ptr + size; in smb_dr_decode_start()
76 ctx->start_ptr = ctx->ptr = ptr; in smb_dr_encode_start()
77 ctx->end_ptr = ptr + size; in smb_dr_encode_start()
107 ctx->ptr += sizeof (DWORD); in smb_dr_get_dword()
153 ctx->ptr += len; in smb_dr_get_string()
176 ctx->ptr += sizeof (DWORD); in smb_dr_put_dword()
219 ctx->ptr += len; in smb_dr_put_string()
332 ctx->ptr += sizeof (BYTE); in smb_dr_put_BYTE()
361 ctx->ptr += len; in smb_dr_put_buf()
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Dmandoc_aux.c52 void *ptr; in mandoc_calloc() local
55 if (ptr == NULL) in mandoc_calloc()
57 return ptr; in mandoc_calloc()
63 void *ptr; in mandoc_malloc() local
68 return ptr; in mandoc_malloc()
74 ptr = realloc(ptr, size); in mandoc_realloc()
77 return ptr; in mandoc_realloc()
83 ptr = reallocarray(ptr, num, size); in mandoc_reallocarray()
86 return ptr; in mandoc_reallocarray()
92 ptr = recallocarray(ptr, oldnum, num, size); in mandoc_recallocarray()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dutil_ctxsetup.c61 *flags = (ptr[0]<<24) | (ptr[1]<<16) | (ptr[2]<<8) | ptr[3];
62 ptr += 4;
69 field_length = (ptr[0]<<8) | ptr[1];
91 (ptr[2]<<8) | ptr[3]);
92 ptr += 4;
99 opt_id = (ptr[0]<<8) | ptr[1];
100 field_length = (ptr[2]<<8) | ptr[3];
101 ptr += 4;
121 field_length = (ptr[0]<<8) | ptr[1];
140 field_length = (ptr[0]<<8) | ptr[1];
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dchpw.c28 char *ptr; in krb5int_mk_chpw_req() local
59 *ptr++ = 0; in krb5int_mk_chpw_req()
60 *ptr++ = 1; in krb5int_mk_chpw_req()
86 char *ptr; in krb5int_rd_chpw_rep() local
290 char *ptr; in krb5int_mk_setpw_req() local
394 message_length = (((ptr[0] << 8)&0xff) | (ptr[1]&0xff)); in krb5int_rd_setpw_rep()
395 ptr += 2; in krb5int_rd_setpw_rep()
405 ptr += 2; in krb5int_rd_setpw_rep()
420 ap_rep.length = (((ptr[0] << 8)&0xff) | (ptr[1]&0xff)); in krb5int_rd_setpw_rep()
421 ptr += 2; in krb5int_rd_setpw_rep()
[all …]
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSCore/
H A DDNSCommon.c247 return (mDNSu32)((mDNSu32)ptr[0] << 24 | (mDNSu32)ptr[1] << 16 | (mDNSu32)ptr[2] << 8 | ptr[3]); in swap32()
554 for (ptr = buffer; *ptr; ptr++) if (*ptr < ' ') *ptr = '.'; in GetRRDisplayString_rdb()
763 for (ptr = d->c; *ptr; ptr = ptr + ptr[0] + 1) count++; in CountLabels()
975 else if (ptr > &hostlabel->c[1] && ptr[-1] != '-') *ptr++ = '-'; in ConvertUTF8PstringToRFC1034HostLabel()
2061 while (ptr < end) ptr += 1 + ptr[0]; in ValidateRData()
2457 if (!ptr || ptr + 10 >= limit) in PutResourceRecordTTLWithLimit()
2500 ptr[4] = ptr[5] = ptr[6] = ptr[7] = 0; // TTL is zero in putEmptyResourceRecord()
2574 ptr[4] = ptr[5] = ptr[6] = ptr[7] = 0; // zero ttl in putDeleteRRSetWithLimit()
2594 ptr[4] = ptr[5] = ptr[6] = ptr[7] = 0; // zero ttl in putDeleteAllRRSets()
2794 ptr = skipDomainName(msg, ptr, end); in skipResourceRecord()
[all …]
/illumos-gate/usr/src/lib/libndmp/common/
H A Dlibndmp_door_data.c54 ctx->start_ptr = ctx->ptr = ptr; in ndmp_door_decode_start()
55 ctx->end_ptr = ptr + size; in ndmp_door_decode_start()
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()
138 ctx->ptr += len; in ndmp_door_get_string()
187 ctx->ptr += len; in ndmp_door_put_string()
247 ctx->ptr += sizeof (short); in ndmp_door_put_short()
261 ctx->ptr += sizeof (short); in ndmp_door_get_short()
288 ctx->ptr += len; in ndmp_door_put_buf()
[all …]
/illumos-gate/usr/src/lib/libmail/common/
H A Ds_string.c123 sp->ptr = (sp->ptr - sp->base) + cp; in s_simplegrow()
288 from->ptr++; in s_tok()
293 from->ptr += strspn(from->ptr, split); in s_tok()
300 from->ptr++; in s_tok()
389 from->ptr++; in s_parse()
395 from->ptr++; in s_parse()
396 for (; *from->ptr != '\'' && *from->ptr != '\0'; from->ptr++) in s_parse()
399 from->ptr++; in s_parse()
401 from->ptr++; in s_parse()
402 for (; *from->ptr != '"' && *from->ptr != '\0'; from->ptr++) in s_parse()
[all …]
/illumos-gate/usr/src/cmd/ttymon/
H A Dttyadm.c78 struct pmtab *ptr; in main() local
101 ptr->p_modules = ""; in main()
102 ptr->p_dmsg = ""; in main()
103 ptr->p_termtype = ""; in main()
104 ptr->p_softcar = ""; in main()
148 ptr->p_softcar = "y"; in main()
183 ptr->p_dmsg = dmsg; in main()
208 ptr->p_device, ttyflags, count, ptr->p_server, in main()
209 timeout, ptr->p_ttylabel, ptr->p_modules, in main()
210 ptr->p_prompt, ptr->p_dmsg, ptr->p_termtype, in main()
[all …]
H A Dtmparse.c52 ptr++;
59 *ptr != '\0' && *ptr != ':'; ptr++,(*size)++) {
61 if (isspace(*ptr))
66 if (*ptr == '\\') {
69 ptr += qsize;
70 } else c = *ptr;
77 while (isspace(*ptr)) {
79 ptr++;
92 quoted(ptr,qsize) in quoted() argument
93 char *ptr; in quoted()
[all …]
/illumos-gate/usr/src/cmd/sgs/libelf/misc/
H A Dargs.c57 String *ptr; member
85 r->ptr = nprep_String(c, r->ptr, n); in nsetarg()
87 r->ptr = prep_String(MSG_ORIG(MSG_STR_CONST_1), r->ptr); in nsetarg()
91 r->ptr = prep_String(MSG_ORIG(MSG_STR_UNSIGNED), r->ptr); in nsetarg()
93 r->ptr = prep_String(MSG_ORIG(MSG_STR_SIGNED), r->ptr); in nsetarg()
192 ar.ptr =
206 ar.ptr =
213 ar.ptr = nprep_String(c+i,ar.ptr,cnt);
275 ar.ptr = app_String(ar.ptr,
284 ar.ptr = napp_String(ar.ptr,c+i,cnt);
[all …]
/illumos-gate/usr/src/lib/krb5/kadm5/clnt/
H A Dchpw.c28 char *ptr; in krb5int_mk_chpw_req() local
50 ptr = packet->data; in krb5int_mk_chpw_req()
62 *ptr++ = 0; in krb5int_mk_chpw_req()
63 *ptr++ = 1; in krb5int_mk_chpw_req()
73 ptr += ap_req->length; in krb5int_mk_chpw_req()
89 char *ptr; in krb5int_rd_chpw_rep() local
106 ptr = packet->data; in krb5int_rd_chpw_rep()
160 ap_rep.data = ptr; in krb5int_rd_chpw_rep()
161 ptr += ap_rep.length; in krb5int_rd_chpw_rep()
180 cipherresult.data = ptr; in krb5int_rd_chpw_rep()
[all …]
/illumos-gate/usr/src/common/ficl/softcore/
H A Dclasses.fr87 c-ptr => get-ptr 0=
95 c-ptr => set-ptr
103 c-ptr => set-ptr
122 c-ptr => get-ptr @
125 c-ptr => get-ptr !
136 c-ptr => get-ptr q@
139 c-ptr => get-ptr q!
149 c-ptr => get-ptr w@
152 c-ptr => get-ptr w!
163 c-ptr => get-ptr c@
[all …]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_umem.c91 void *ptr = NULL; in mdb_umem_handler()
109 if (ptr != NULL) in mdb_umem_handler()
110 return (ptr); in mdb_umem_handler()
169 void *ptr; in mdb_alloc_align() local
185 while (ptr == NULL) in mdb_alloc_align()
195 return (ptr); in mdb_alloc_align()
209 if (ptr != NULL) in mdb_zalloc()
210 bzero(ptr, nbytes); in mdb_zalloc()
212 return (ptr); in mdb_zalloc()
222 if (ptr != NULL) { in mdb_free()
[all …]
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_mapping.c103 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()
308 free(ptr); in __ns_ldap_freeASearchDesc()
360 ptr = NULL; in __s_api_parseASearchDesc()
562 ptr = NULL; in __s_api_parseASearchDesc()
568 ptr = NULL; in __s_api_parseASearchDesc()
581 ptr = NULL; in __s_api_parseASearchDesc()
607 *ret = ptr; in __s_api_parseASearchDesc()
857 free(ptr); in __ns_ldap_freeAttributeMaps()
[all …]

12345678910>>...56