Searched refs:ptr (Results 76 - 100 of 1320) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/mailwrapper/
H A Dfparseln.c76 char *ptr, *cp; local
102 if ((ptr = fgetln(fp, &s)) == NULL)
106 for (cp = ptr; cp < ptr + s; cp++)
107 if (*cp == com && !isescaped(ptr, cp, esc)) {
108 s = cp - ptr;
115 cp = &ptr[s - 1];
122 cp = &ptr[s - 1];
124 if (*cp == con && !isescaped(ptr, cp, esc)) {
139 (void) memcpy(buf + len, ptr,
186 char *ptr; local
[all...]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dwinnwstr.c48 chtype *ptr = &(win->_y[cy][win->_curx]), local
55 while (ISCBIT(*ptr))
56 ptr--;
62 wc = RBYTE(*ptr);
67 for (s = 0; s < scrw; s++, ptr++) {
68 if ((wc = RBYTE(*ptr)) == MBIT)
71 if ((wc = LBYTE(*ptr) | MBIT) == MBIT)
83 if (ptr >= pmax) {
87 ptr = &(win->_y[cy][0]);
88 pmax = ptr
[all...]
H A Dwinwstr.c43 chtype *ptr = &(win->_y[cy][win->_curx]), local
50 while (ISCBIT(*ptr) && (p1st < ptr))
51 ptr--;
53 while (ptr < pmax) {
54 wc = RBYTE(*ptr);
59 for (s = 0; s < sw; s++, ptr++) {
60 if ((wc = RBYTE(*ptr)) == MBIT)
64 if ((wc = LBYTE(*ptr) | MBIT) == MBIT)
H A Dwinchnstr.c56 chtype *ptr = &(win->_y[win->_cury][win->_curx]); local
65 while (ISCBIT(*ptr)) {
66 ptr--;
71 eucw = mbeucw((int) RBYTE(*ptr));
72 scrw = mbscrw((int) RBYTE(*ptr));
76 for (s = 0; s < scrw; s++, maxcols--, ptr++) {
77 attr = _ATTR(*ptr);
78 rawc = _CHAR(*ptr);
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dbasemem.c41 void *ptr = NULL; local
58 ptr = phys_to_virt ( *fbms << 10 );
65 memset ( ptr, 0, size_kb << 10 );
71 return ptr;
89 void forget_base_memory ( void *ptr, size_t size ) { argument
90 uint16_t remainder = virt_to_phys(ptr) & 1023;
93 ( free_base_memory_block_t * ) ( ptr - remainder );
95 if ( ( ptr == NULL ) || ( size == 0 ) ) { return; }
99 size, virt_to_phys ( ptr ) );
103 virt_to_phys ( ptr
[all...]
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSShared/
H A DmDNSDebug.c50 va_list ptr; local
51 va_start(ptr,format);
52 buffer[mDNS_vsnprintf(buffer, sizeof(buffer), format, ptr)] = 0;
53 va_end(ptr);
59 mDNSlocal void LogMsgWithLevelv(mDNSLogLevel_t logLevel, const char *format, va_list ptr) argument
62 buffer[mDNS_vsnprintf((char *)buffer, sizeof(buffer), format, ptr)] = 0;
68 va_list ptr; \
69 va_start(ptr,format); \
70 LogMsgWithLevelv(L, format, ptr); \
71 va_end(ptr); \
[all...]
/illumos-gate/usr/src/cmd/sgs/libconv/common/
H A Dtokens.c44 char info[SYS_NMLN], * list, * ptr, * optr; local
72 for (no = 1, ptr = list; *ptr; ptr++) {
73 if (*ptr == ' ')
84 for (optr = ptr = list; *ptr; ptr++) {
85 if (*ptr != ' ')
89 opt->isa_namesz = ptr
[all...]
/illumos-gate/usr/src/lib/iconv_modules/zh/common/
H A Dzh_TW-iso2022-CN-EXT%zh_TW-big5.c62 table_t key, *ptr; local
72 ptr = (table_t*) bsearch(&key, cns_big5_tab1, MAX_CNS1_NUM, sizeof(table_t), cns_big5_comp);
74 ptr = (table_t*) bsearch(&key, cns_big5_tab2, MAX_CNS2_NUM, sizeof(table_t), cns_big5_comp);
76 if ( ptr == 0 || ptr->value == 0 )
83 *(*outbuf)++ = (unsigned char) ((ptr->value >> 8) & 0xff);
84 *(*outbuf)++ = (unsigned char) (ptr->value & 0xff);
102 gb_big5 *ptr, key; local
105 ptr = (gb_big5*) bsearch(&key, gb_big5_tab, BIG5MAX, sizeof(gb_big5), gb_big5_comp);
107 if ( ptr
[all...]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_xdr.c69 int32_t *ptr; local
75 ptr = XDR_INLINE(xdrs, RNDUP(sizeof (fhandle_t)));
76 if (ptr != NULL) {
79 *fhp++ = *ptr++;
80 *fhp++ = *ptr++;
81 *fhp++ = *ptr++;
82 *fhp++ = *ptr++;
83 *fhp++ = *ptr++;
84 *fhp++ = *ptr++;
85 *fhp++ = *ptr
106 int32_t *ptr; local
126 int32_t *ptr; local
261 int32_t *ptr; local
382 int32_t *ptr; local
673 int32_t *ptr; local
891 int32_t *ptr; local
1015 int32_t *ptr; local
1180 int32_t *ptr; local
1321 int32_t *ptr; local
[all...]
/illumos-gate/usr/src/cmd/sendmail/include/sm/
H A Dheap.h35 # define sm_free(ptr) sm_free_tagged(ptr, __FILE__, __LINE__)
48 # define sm_free_tagged(ptr, file, line) sm_free(ptr)
49 # define sm_heap_register(ptr, size, file, line, grp) (true)
50 # define sm_heap_checkptr_tagged(ptr, tag, num) ((void)0)
61 # define sm_heap_checkptr(ptr) sm_heap_checkptr_tagged(ptr, __FILE__, __LINE__)
96 #define SM_FREE(ptr) \
99 if ((ptr) !
[all...]
/illumos-gate/usr/src/lib/libtnfprobe/
H A Dprobe_mem.c61 char * ptr; local
63 ptr = NULL;
70 ptr = memseg_p->min_p;
78 return (ptr);
/illumos-gate/usr/src/lib/libxcurses2/src/libc/wide/
H A Dwio_put.c62 unsigned char *ptr; local
87 for (ptr = wio->_mb, count = 0; count < mb_len; ++ptr, ++count)
88 if ((*wio->put)(*ptr, wio->object) == EOF)
/illumos-gate/usr/src/cmd/sendmail/db/os/
H A Dos_alloc.c145 void *p, *ptr; local
147 ptr = *(void **)storep;
150 if (ptr == NULL)
165 p = __db_jump.j_realloc(ptr, size);
167 p = realloc(ptr, size);
186 __os_free(ptr, size)
187 void *ptr;
192 memset(ptr, 0xdb, size);
196 __db_jump.j_free(ptr);
198 free(ptr);
[all...]
/illumos-gate/usr/src/cmd/audio/include/
H A Dlibaudio_impl.h68 #define REALLOC(ptr, number, type) \
69 (type *)(long)realloc((char *)(ptr), (unsigned)(number) * sizeof (type))
70 #define FREE(ptr) \
71 (void) free((char *)(ptr))
/illumos-gate/usr/src/cmd/bart/
H A Dmain.c70 char *ptr; local
72 ptr = calloc((size_t)1, size);
73 if (ptr == NULL)
75 else return (ptr);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dchpw.c28 char *ptr; local
50 ptr = packet->data;
54 *ptr++ = (packet->length>> 8) & 0xff;
55 *ptr++ = packet->length & 0xff;
59 *ptr++ = 0;
60 *ptr++ = 1;
64 *ptr++ = (ap_req->length>>8) & 0xff;
65 *ptr++ = ap_req->length & 0xff;
69 memcpy(ptr, ap_req->data, ap_req->length);
70 ptr
86 char *ptr; local
290 char *ptr; local
355 char *ptr; local
[all...]
/illumos-gate/usr/src/cmd/lp/lib/papi/
H A Dppd.c42 char *ptr, *ptr2; local
48 if ((ptr = strchr(line, ':')) == NULL)
57 *ptr++ = '\0';
58 while (isspace(*ptr) != 0)
59 ptr++;
62 ptr = ptr2;
67 *ptr++ = '\0';
68 while (*ptr == ' ')
69 ptr++;
72 if (*ptr
[all...]
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dgetline.c46 char *ptr; local
64 ptr = *lineptr;
76 *ptr++ = c;
78 if ((ptr = realloc(*lineptr, 2 * size)) == NULL) {
80 ptr = *lineptr + size - 1;
81 *ptr = '\0';
85 *lineptr = ptr;
86 ptr += size;
91 *ptr = '\0';
/illumos-gate/usr/src/cmd/logadm/
H A Derr.h64 #define REALLOC(ptr, nbytes) err_realloc(ptr, nbytes, __FILE__, __LINE__)
65 void *err_realloc(void *ptr, int nbytes, const char *fname, int line);
67 #define FREE(ptr) err_free(ptr, __FILE__, __LINE__)
68 void err_free(void *ptr, const char *fname, int line);
70 #define STRDUP(ptr) err_strdup(ptr, __FILE__, __LINE__)
71 char *err_strdup(const char *ptr, const char *fname, int line);
/illumos-gate/usr/src/uts/common/sys/
H A Dmodel.h90 } ptr; \
101 ((handle).ptr.m64) = (addr)
108 sizeof (*(handle).ptr.m32) : \
109 sizeof (*(handle).ptr.m64))
119 (void *)&(handle).ptr.m32->field : \
120 &(handle).ptr.m64->field)
124 (handle).ptr.m32->field : \
125 (handle).ptr.m64->field)
129 (void *)(uintptr_t)(handle).ptr.m32->field : \
130 (handle).ptr
[all...]
/illumos-gate/usr/src/lib/libmail/common/
H A Ds_string.c57 sp->ptr = (char *)freed;
86 freed = (string *)(freed->ptr);
87 sp->ptr = sp->base;
91 sp->base = sp->ptr = malloc(STRLEN);
123 sp->ptr = (sp->ptr - sp->base) + cp;
143 sp->base = sp->ptr = cp;
164 sp->ptr = sp->end - (size_t)1; /* point to NULL terminator */
174 for (cp = sp->ptr; *cp; cp++)
181 while (isspace(*sp->ptr))
[all...]
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/
H A Dalloc.c119 alloc_realloc(void *ptr, size_t nbytes, const char *fname, int line) argument
123 if (ptr != NULL) {
126 bcopy((void *)((char *)ptr - HDRSIZ), (void *)&osize,
129 bcopy(ptr, retval, (osize < nbytes) ? osize : nbytes);
132 alloc_free((char *)ptr, fname, line);
144 alloc_strdup(const char *ptr, const char *fname, int line) argument
146 char *retval = alloc_malloc(strlen(ptr) + 1, fname, line);
148 (void) strcpy(retval, ptr);
160 alloc_free(void *ptr, const char *fname, int line) argument
164 ASSERT(ptr !
205 alloc_xfree(void *ptr, size_t size) argument
[all...]
/illumos-gate/usr/src/stand/lib/sa/
H A Dmemlist.c117 struct memlist *ptr; local
121 ptr = free_memlist_ptr = getlink(ALLOC_SZ *
125 ptr[i].ml_next = &ptr[i+1];
126 ptr[i-1].ml_next = NULL;
128 ptr = free_memlist_ptr;
129 free_memlist_ptr = ptr->ml_next;
130 return (ptr);
137 add_to_freelist(struct memlist *ptr) argument
142 free_memlist_ptr = ptr;
[all...]
/illumos-gate/usr/src/lib/libast/common/string/
H A Dtok.c42 } ptr; member in struct:Tok_s
60 freelist = freelist->ptr.nxt;
63 p->chr = *(p->ptr.end = s);
78 if (p->flg == FLG_RESTORE && *p->ptr.end != p->chr)
79 *p->ptr.end = p->chr;
80 p->ptr.nxt = freelist;
106 s = p->ptr.end;
130 p->ptr.end = s;
151 p->ptr.end = r;
168 p->ptr
[all...]
/illumos-gate/usr/src/lib/libc/port/i18n/
H A Dwstoll.c56 wstoll(const wchar_t *str, wchar_t **ptr, int base) argument
58 return (wcstoll(str, ptr, base));

Completed in 54 milliseconds

1234567891011>>