Searched refs:ptr (Results 1 - 25 of 1339) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/pam_modules/authtok_check/
H A Dstringlib.c23 register char *ptr; local
27 for (ptr = string; *ptr; ptr++);
28 if (ptr != string) {
29 c = *(--ptr);
30 *ptr = '\0';
39 register char *ptr; local
43 for (ptr = string; *ptr; pt
56 register char *ptr; local
[all...]
H A Drules.c79 register char *ptr; local
82 ptr = area;
84 *(ptr++) = CRACK_TOUPPER(*str);
87 *ptr = '\0';
95 register char *ptr; local
98 ptr = area;
100 *(ptr++) = CRACK_TOLOWER(*str);
103 *ptr = '\0';
111 register char *ptr; local
114 ptr
165 register char *ptr; local
181 register char *ptr; local
317 register char *ptr; local
333 register char *ptr; local
366 register char *ptr; local
[all...]
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dsm_memleak2.c5 void *ptr; local
7 ptr = malloc(42);
8 ptr = (void *) 0;
17 sm_memleak2.c:8 func() warn: overwrite may leak 'ptr'
H A Dsm_null_deref2.c1 int *ptr; variable
4 if ((y && !ptr) || z)
6 if (ptr) {
10 x = *ptr;
12 if (!y && ptr)
13 *ptr = 0; // smatch used to print an error here.
15 *ptr = 1;
22 sm_null_deref2.c:15 frob() error: we previously assumed 'ptr' could be null (see line 12)
H A Dtypeof-mods.c8 unsigned int obj, *ptr; local
10 typeof(ptr) ptr2 = ptr;
11 typeof(*ptr) var2 = obj;
12 typeof(*ptr) *ptr3 = ptr;
13 typeof(obj) *ptr4 = ptr;
15 ptr = ptr;
16 ptr
22 const int obj, *ptr; local
34 volatile int obj, *ptr; local
48 int *restrict obj, *restrict *ptr; local
62 int _Atomic obj, *ptr; local
77 type_t obj, *ptr; local
91 static int obj, *ptr; local
105 __thread int obj, *ptr; local
119 int __nocast obj, *ptr; local
[all...]
H A Dbuiltin_atomic.c3 static int i, *ptr = (void *)0; local
5 i = __sync_fetch_and_add(ptr, 0);
6 i = __sync_fetch_and_sub(ptr, 0);
7 i = __sync_fetch_and_or(ptr, 0);
8 i = __sync_fetch_and_and(ptr, 0);
9 i = __sync_fetch_and_xor(ptr, 0);
10 i = __sync_fetch_and_nand(ptr, 0);
11 i = __sync_add_and_fetch(ptr, 0);
12 i = __sync_sub_and_fetch(ptr, 0);
13 i = __sync_or_and_fetch(ptr,
[all...]
H A Dtypeof-noderef.c5 int __noderef obj, *ptr; local
6 typeof(ptr) ptr2 = ptr;
7 typeof(*ptr) *ptr3 = ptr;
8 typeof(obj) *ptr4 = ptr;
9 ptr = ptr;
10 ptr = &obj;
H A Dtypeof-addresspace.c5 int __as obj, *ptr; local
7 typeof(ptr) ptr2 = ptr;
8 typeof(*ptr) var2 = obj;
9 typeof(*ptr) *ptr3 = ptr; /* check-should-pass */
10 typeof(obj) *ptr4 = ptr; /* check-should-pass */
12 ptr = ptr;
13 ptr
[all...]
H A Dtypeof-safe.c5 int __safe obj, *ptr; local
7 typeof(ptr) ptr2 = ptr;
8 typeof(*ptr) var2 = obj;
9 typeof(*ptr) *ptr3 = ptr;
10 typeof(obj) *ptr4 = ptr;
12 ptr = ptr;
13 ptr
[all...]
H A Dsizeof-void.c7 void *ptr = &i; local
12 s += sizeof ptr;
13 s += sizeof &ptr;
17 s += sizeof *ptr;
18 s += is_constexpr(ptr++);
20 s += is_constexpr(sizeof *ptr);
21 s += is_constexpr(ptr + 1);
22 s += is_constexpr(&ptr + 1);
23 s += is_constexpr(*(((char *)&ptr) + 1));
/illumos-gate/usr/src/tools/smatch/src/validation/optim/
H A Dvolatile-side-effect.c1 void foo(int p, volatile int *ptr) argument
3 p ? : *ptr;
4 p ? : *ptr;
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dstrchrnul.c31 char *ptr = strchr(s, c); local
33 if (ptr == NULL)
34 ptr = (char *)s + strlen(s);
36 return (ptr);
H A Dstrnlen.c40 const char *ptr; local
42 ptr = memchr(str, 0, maxlen);
43 if (ptr == NULL)
46 return (ptr - str);
H A Dfreezero.c20 freezero(void *ptr, size_t size) argument
22 if (ptr == NULL)
25 explicit_bzero(ptr, size);
26 free(ptr);
/illumos-gate/usr/src/lib/libc/port/i18n/
H A Dwcsnlen.c38 const wchar_t *ptr = str; local
42 if (*ptr++ == L'\0') {
43 ptr--;
49 return (ptr - str);
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/funcs/
H A Derr.badalloca2.d41 ptr = alloca(10);
42 ptr = alloca(0xffffffffffffffff);
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Dalloc.h40 void *alloc_realloc(void *ptr, size_t nbytes, const char *fname, int line);
42 void alloc_free(void *ptr, const char *fname, int line);
43 char *alloc_strdup(const char *ptr, const char *fname, int line);
45 void alloc_xfree(void *ptr, size_t size);
50 #define REALLOC(ptr, nbytes) alloc_realloc(ptr, nbytes, __FILE__, __LINE__)
51 #define FREE(ptr) alloc_free(ptr, __FILE__, __LINE__)
52 #define STRDUP(ptr) alloc_strdup(ptr, __FILE_
[all...]
/illumos-gate/usr/src/cmd/tnf/prex/
H A Dnew.c45 void *ptr; local
47 ptr = malloc(size);
49 if (!ptr) {
55 return (ptr);
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Drandom.c19 random_get_bytes(uint8_t *ptr, size_t len) argument
21 return (pkcs11_get_random(ptr, len));
25 random_get_pseudo_bytes(uint8_t *ptr, size_t len) argument
27 return (pkcs11_get_urandom(ptr, len));
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/
H A Dtable.c70 static void delete(TABLE_ENTRY *ptr);
80 TABLE_ENTRY *ptr; local
87 ptr = table;
94 while (ptr != NULL) {
96 if ((ptr->time - current_time) > MAX_LIFE) {
100 print_request(&ptr->request);
102 prevp = ptr;
103 ptr = ptr->next;
109 print_request(&ptr
131 TABLE_ENTRY *ptr; local
186 TABLE_ENTRY *ptr; local
239 TABLE_ENTRY *ptr; local
265 delete(TABLE_ENTRY *ptr) argument
[all...]
/illumos-gate/usr/src/tools/smatch/src/
H A Dptrlist.h14 #define CHECK_TYPE(head,ptr) (void)(&(ptr) == &(head)->list[0])
59 #define add_ptr_list(list, ptr) ({ \
61 CHECK_TYPE(*(list),ptr); \
62 (__typeof__(&(ptr))) __add_ptr_list(head, ptr); \
64 #define add_ptr_list_tag(list, ptr, tag) ({ \
66 CHECK_TYPE(*(list),ptr); \
67 (__typeof__(&(ptr))) __add_ptr_list_tag(head, ptr, ta
283 unsigned long *ptr = p; local
287 tag_ptr(void *ptr, unsigned long tag) argument
[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])
42 #define PRINCIPALLEN(ptr) ((ptr[0]<<8) | ptr[1])
43 #define PRINCIPALNAME(ptr) (ptr + KEYHEADER + (NOOFKEYS(ptr) *8))
45 #define KEYBODY(ptr) PRINCIPALNAM
[all...]
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSShared/
H A Ddnssd_ipc.c57 void put_uint32(const uint32_t l, char **ptr) argument
59 (*ptr)[0] = (char)((l >> 24) & 0xFF);
60 (*ptr)[1] = (char)((l >> 16) & 0xFF);
61 (*ptr)[2] = (char)((l >> 8) & 0xFF);
62 (*ptr)[3] = (char)((l ) & 0xFF);
63 *ptr += sizeof(uint32_t);
66 uint32_t get_uint32(const char **ptr, const char *end) argument
68 if (!*ptr || *ptr + sizeof(uint32_t) > end)
70 *ptr
81 put_uint16(uint16_t s, char **ptr) argument
88 get_uint16(const char **ptr, const char *end) argument
103 put_string(const char *str, char **ptr) argument
111 get_string(const char **ptr, const char *const end, char *buffer, int buflen) argument
133 put_rdata(const int rdlen, const unsigned char *rdata, char **ptr) argument
139 get_rdata(const char **ptr, const char *end, int rdlen) argument
[all...]
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Dbio.c46 char *ptr; local
48 ptr = bio_buffer_ptr;
49 if (ptr + size > bio_buffer_end)
53 return (ptr);
57 bio_free(void *ptr, size_t size) argument
60 if (ptr == NULL)
64 if (bio_buffer_ptr != ptr)
/illumos-gate/usr/src/cmd/mandoc/
H A Dmandoc_aux.c52 void *ptr; local
54 ptr = calloc(num, size);
55 if (ptr == NULL)
57 return ptr;
63 void *ptr; local
65 ptr = malloc(size);
66 if (ptr == NULL)
68 return ptr;
72 mandoc_realloc(void *ptr, size_t size) argument
74 ptr
81 mandoc_reallocarray(void *ptr, size_t num, size_t size) argument
90 mandoc_recallocarray(void *ptr, size_t oldnum, size_t num, size_t size) argument
99 mandoc_strdup(const char *ptr) argument
110 mandoc_strndup(const char *ptr, size_t sz) argument
[all...]

Completed in 227 milliseconds

1234567891011>>