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

1234567891011>>

/freebsd-head/lib/libc/gen/
H A Dbasename.c35 char *ptr; local
45 ptr = path + strlen(path);
46 while (ptr > path + 1 && *(ptr - 1) == '/')
47 --ptr;
48 *ptr-- = '\0';
51 while (ptr > path && *(ptr - 1) != '/')
52 --ptr;
53 return (ptr);
[all...]
/freebsd-head/sys/compat/linuxkpi/common/include/linux/
H A Derr.h47 PTR_ERR(const void *ptr) argument
49 return (long)ptr;
53 IS_ERR(const void *ptr) argument
55 return IS_ERR_VALUE((unsigned long)ptr);
59 IS_ERR_OR_NULL(const void *ptr) argument
61 return !ptr || IS_ERR_VALUE((unsigned long)ptr);
65 ERR_CAST(void *ptr) argument
67 return (void *)ptr;
71 PTR_ERR_OR_ZERO(const void *ptr) argument
[all...]
/freebsd-head/crypto/openssl/include/internal/
H A Dtsan_assist.h57 # define tsan_load(ptr) atomic_load_explicit((ptr), memory_order_relaxed)
58 # define tsan_store(ptr, val) atomic_store_explicit((ptr), (val), memory_order_relaxed)
59 # define tsan_counter(ptr) atomic_fetch_add_explicit((ptr), 1, memory_order_relaxed)
60 # define tsan_decr(ptr) atomic_fetch_add_explicit((ptr), -1, memory_order_relaxed)
61 # define tsan_ld_acq(ptr) atomic_load_explicit((ptr), memory_order_acquir
[all...]
/freebsd-head/sys/dev/videomode/
H A Dedidreg.h61 #define EDID_VENDOR_ID(ptr) ((((ptr)[8]) << 8) + ptr[9])
67 #define EDID_PRODUCT_ID(ptr) (((ptr)[10]) | (((ptr)[11]) << 8))
68 #define EDID_SERIAL_NUMBER(ptr) (((ptr)[12] << 24) + \
69 ((ptr)[13] << 16) + \
70 ((ptr)[1
[all...]
/freebsd-head/contrib/libstdc++/libsupc++/
H A Ddel_opv.cc35 operator delete[] (void *ptr) throw () argument
37 ::operator delete (ptr);
H A Ddel_opnt.cc37 operator delete (void *ptr, const std::nothrow_t&) throw () argument
39 if (ptr)
40 free (ptr);
H A Ddel_opvnt.cc35 operator delete[] (void *ptr, const std::nothrow_t&) throw () argument
37 ::operator delete (ptr);
/freebsd-head/contrib/ncurses/ncurses/tinfo/
H A Dadd_tries.c50 TRIES *ptr, *savedptr; local
59 ptr = savedptr = (*tree);
64 while (!CMP_TRY(ptr->ch, cmp)
65 && ptr->sibling != 0)
66 ptr = ptr->sibling;
68 if (CMP_TRY(ptr->ch, cmp)) {
70 ptr->value = (unsigned short) code;
73 if (ptr->child != 0)
74 ptr
[all...]
H A Dlib_longname.c53 char *ptr; local
58 for (ptr = SP_PARM->_ttytype + strlen(SP_PARM->_ttytype);
59 ptr > SP_PARM->_ttytype;
60 ptr--)
61 if (*ptr == '|')
62 returnPtr(ptr + 1);
80 char *ptr;
84 for (ptr = ttytype + strlen(ttytype);
85 ptr > ttytype;
86 ptr
[all...]
H A Dfree_ttype.c48 _nc_free_termtype(TERMTYPE *ptr) argument
50 T(("_nc_free_termtype(%s)", ptr->term_names));
52 FreeIfNeeded(ptr->str_table);
53 FreeIfNeeded(ptr->Booleans);
54 FreeIfNeeded(ptr->Numbers);
55 FreeIfNeeded(ptr->Strings);
57 FreeIfNeeded(ptr->ext_str_table);
58 FreeIfNeeded(ptr->ext_Names);
60 memset(ptr, 0, sizeof(TERMTYPE));
61 _nc_free_entry(_nc_head, ptr);
[all...]
/freebsd-head/contrib/binutils/gas/
H A Dsb.c38 use foo->ptr[*];
56 sb_build (sb *ptr, int size) argument
78 ptr->ptr = e->data;
79 ptr->pot = size;
80 ptr->len = 0;
81 ptr->item = e;
85 sb_new (sb *ptr) argument
87 sb_build (ptr, dsize);
90 /* Deallocate the sb at ptr
93 sb_kill(sb *ptr) argument
103 sb_add_sb(sb *ptr, sb *s) argument
130 sb_scrub_and_add_sb(sb *ptr, sb *s) argument
146 sb_check(sb *ptr, int len) argument
165 sb_reset(sb *ptr) argument
173 sb_add_char(sb *ptr, int c) argument
182 sb_add_string(sb *ptr, const char *s) argument
193 sb_add_buffer(sb *ptr, const char *s, int len) argument
214 sb_skip_white(int idx, sb *ptr) argument
228 sb_skip_comma(int idx, sb *ptr) argument
[all...]
/freebsd-head/contrib/netbsd-tests/usr.bin/xlint/lint1/
H A Dd_type_question_colon.c10 struct foo *ptr = 0; local
12 for (i = (ptr ? ptr : (void *)0)->bar; i < 10; i++)
/freebsd-head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/
H A Derr.badalloca2.d41 ptr = alloca(10);
42 ptr = alloca(0xffffffffffffffff);
/freebsd-head/crypto/openssh/openbsd-compat/
H A Dfreezero.c25 freezero(void *ptr, size_t sz) argument
27 if (ptr == NULL)
29 explicit_bzero(ptr, sz);
30 free(ptr);
/freebsd-head/contrib/gcc/config/arm/
H A Dunaligned-funcs.c39 __aeabi_uread4 (void *ptr) argument
41 return ((struct u4 *) ptr)->data;
45 __aeabi_uwrite4 (int data, void *ptr) argument
47 ((struct u4 *) ptr)->data = data;
52 __aeabi_uread8 (void *ptr) argument
54 return ((struct u8 *) ptr)->data;
58 __aeabi_uwrite8 (long long data, void *ptr) argument
60 ((struct u8 *) ptr)->data = data;
/freebsd-head/lib/libsecureboot/openpgp/
H A Ddecode.c34 octets2hex(unsigned char *ptr, size_t n) argument
43 snprintf(&cp[i*2], 3, "%02X", ptr[i]);
64 octets2i(unsigned char *ptr, size_t n) argument
70 val |= (*ptr++ << ((n - i - 1) * 8));
84 decode_tag(unsigned char *ptr, int *isnew, int *ltype) argument
88 if (!ptr || !isnew || !ltype)
90 tag = *ptr;
113 unsigned char *ptr; local
118 ptr = *pptr;
120 if (!(*ptr < 22
147 unsigned char *ptr; local
191 unsigned char *ptr; local
225 unsigned char *ptr; local
259 unsigned char *ptr; local
295 unsigned char *ptr; local
[all...]
/freebsd-head/sys/geom/
H A Dgeom_bsd_enc.c59 bsd_partition_le_dec(u_char *ptr, struct partition *d) argument
61 d->p_size = le32dec(ptr + 0);
62 d->p_offset = le32dec(ptr + 4);
63 d->p_fsize = le32dec(ptr + 8);
64 d->p_fstype = ptr[12];
65 d->p_frag = ptr[13];
66 d->p_cpg = le16dec(ptr + 14);
70 bsd_disklabel_le_dec(u_char *ptr, struct disklabel *d, int maxpart) argument
76 d->d_magic = le32dec(ptr + 0);
80 d->d_magic2 = le32dec(ptr
138 bsd_partition_le_enc(u_char *ptr, struct partition *d) argument
149 bsd_disklabel_le_enc(u_char *ptr, struct disklabel *d) argument
[all...]
/freebsd-head/libexec/talkd/
H A Dtable.c87 TABLE_ENTRY *ptr, *next; local
94 for (ptr = table; ptr != NIL; ptr = next) {
95 next = ptr->next;
96 if ((ptr->time - current_time) > MAX_LIFE) {
100 &ptr->request);
101 delete(ptr);
105 print_request("", &ptr->request);
106 if (strcmp(request->l_name, ptr
121 TABLE_ENTRY *ptr, *next; local
159 TABLE_ENTRY *ptr; local
202 TABLE_ENTRY *ptr; local
223 delete(TABLE_ENTRY *ptr) argument
[all...]
/freebsd-head/usr.bin/sort/
H A Dmem.c45 void *ptr; local
47 if ((ptr = malloc(size)) == NULL)
49 return (ptr);
56 sort_free(const void *ptr) argument
59 if (ptr)
60 free(__DECONST(void *, ptr));
67 sort_realloc(void *ptr, size_t size) argument
70 if ((ptr = realloc(ptr, size)) == NULL)
72 return (ptr);
[all...]
/freebsd-head/sys/contrib/octeon-sdk/
H A Dcvmx-key.h76 cvmx_addr_t ptr; local
78 ptr.u64 = 0;
79 ptr.sio.mem_region = CVMX_IO_SEG;
80 ptr.sio.is_io = 1;
81 ptr.sio.did = CVMX_OCT_DID_KEY_RW;
82 ptr.sio.offset = address;
84 return cvmx_read_csr(ptr.u64);
97 cvmx_addr_t ptr; local
99 ptr.u64 = 0;
100 ptr
[all...]
/freebsd-head/stand/i386/libi386/
H A Dbio.c47 char *ptr; local
49 ptr = bio_buffer_ptr;
50 if (ptr + size > bio_buffer_end)
54 return (ptr);
58 bio_free(void *ptr, size_t size) argument
61 if (ptr == NULL)
65 if (bio_buffer_ptr != ptr)
/freebsd-head/contrib/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...]
/freebsd-head/contrib/gcclibs/libiberty/
H A Dcalloc.c25 register PTR ptr; local
30 ptr = malloc (nelem * elsize);
31 if (ptr) bzero (ptr, nelem * elsize);
33 return ptr;
/freebsd-head/contrib/binutils/libiberty/
H A Dcalloc.c25 register PTR ptr; local
30 ptr = malloc (nelem * elsize);
31 if (ptr) bzero (ptr, nelem * elsize);
33 return ptr;
/freebsd-head/contrib/expat/lib/
H A Dxmltok_impl.c36 # define IS_INVALID_CHAR(enc, ptr, n) (0)
39 # define INVALID_LEAD_CASE(n, ptr, nextTokPtr) \
41 if (end - ptr < n) \
43 if (IS_INVALID_CHAR(enc, ptr, n)) { \
44 *(nextTokPtr) = (ptr); \
47 ptr += n; \
50 # define INVALID_CASES(ptr, nextTokPtr) \
51 INVALID_LEAD_CASE(2, ptr, nextTokPtr) \
52 INVALID_LEAD_CASE(3, ptr, nextTokPtr) \
53 INVALID_LEAD_CASE(4, ptr, nextTokPt
135 scanComment(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) argument
172 scanDecl(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) argument
221 checkPiTarget(const ENCODING *enc, const char *ptr, const char *end, int *tokPtr) argument
266 scanPi(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) argument
326 scanCdataSection(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) argument
345 cdataSectionTok(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) argument
421 scanEndTag(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) argument
472 scanHexCharRef(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) argument
503 scanCharRef(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) argument
534 scanRef(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) argument
562 scanAtts(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) argument
715 scanLt(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) argument
813 contentTok(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) argument
913 scanPercent(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) argument
943 scanPoundName(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) argument
973 scanLit(int open, const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) argument
1007 prologTok(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) argument
1247 attributeValueTok(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) argument
1316 entityValueTok(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) argument
1383 ignoreSectionTok(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) argument
1435 isPublicId(const ENCODING *enc, const char *ptr, const char *end, const char **badPtr) argument
1495 getAtts(const ENCODING *enc, const char *ptr, int attsMax, ATTRIBUTE *atts) argument
1588 charRefNumber(const ENCODING *enc, const char *ptr) argument
1646 predefinedEntityName(const ENCODING *enc, const char *ptr, const char *end) argument
1719 nameLength(const ENCODING *enc, const char *ptr) argument
1749 skipS(const ENCODING *enc, const char *ptr) argument
1764 updatePosition(const ENCODING *enc, const char *ptr, const char *end, POSITION *pos) argument
[all...]

Completed in 362 milliseconds

1234567891011>>