Searched defs:ptr (Results 1 - 25 of 1050) sorted by relevance

1234567891011>>

/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 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-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-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-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 Das-name.c5 static void foo(void __user *ptr) argument
7 return fun(ptr);
15 as-name.c:7:20: got void __user *ptr
/illumos-gate/usr/src/lib/libxcurses/src/libc/mks/
H A Dm_malloc.c66 _VOID* ptr; local
91 if ((ptr = malloc(amount)) == NULL) {
105 return (ptr);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dutil_localhost.c48 char buf[MAXHOSTNAMELEN+1], *ptr; local
55 if (! (ptr = xmalloc(strlen(buf) + 1)))
58 return strcpy(ptr, buf);
/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);
H A Dreallocf.c19 reallocf(void *ptr, size_t size) argument
21 void *nptr = realloc(ptr, size);
23 /* If size is zero, realloc will have already freed ptr. */
25 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/common/mdesc/
H A Dmdesc_fini.c38 md_fini(md_t *ptr) argument
42 mdp = (md_impl_t *)ptr;
H A Dmdesc_getbinsize.c35 md_get_bin_size(md_t *ptr) argument
39 mdp = (md_impl_t *)ptr;
H A Dmdesc_getgen.c35 md_get_gen(md_t *ptr) argument
39 mdp = (md_impl_t *)ptr;
H A Dmdesc_nodecount.c34 md_node_count(md_t *ptr) argument
38 mdp = (md_impl_t *)ptr;
H A Dmdesc_rootnode.c34 md_root_node(md_t *ptr) argument
38 mdp = (md_impl_t *)ptr;
/illumos-gate/usr/src/cmd/pools/poolstat/
H A Dpoolstat_utils.c38 Realloc(void *ptr, size_t nbytes) argument
40 if ((ptr = realloc(ptr, nbytes)))
41 return (ptr);
/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/cmd/ipf/lib/common/
H A Dprinthostmask.c31 void *ptr = addr; local
40 printf("%s", inet_ntop(af, ptr, ipbuf, sizeof(ipbuf)));
/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/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/libxcurses/src/libc/wide/
H A Dwio_put.c61 unsigned char *ptr; local
85 for (ptr = wio->_mb, count = 0; count < mb_len; ++ptr, ++count)
86 if ((*wio->put)(*ptr, wio->object) == EOF)
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/
H A Dgets.c40 gets(char *ptr) argument
42 char *p, *ptr0 = ptr;
48 if (ptr0 == ptr)
56 if ((p = memccpy(ptr, (char *) stdin->_ptr, '\n', n)) != NULL)
57 n = p - ptr;
58 ptr += n;
63 ptr--; /* step back over '\n' */
67 *ptr = '\0';

Completed in 253 milliseconds

1234567891011>>