Home
last modified time | relevance | path

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

12345678910>>...53

/titanic_41/usr/src/lib/pam_modules/authtok_check/
H A Drules.c79 register char *ptr; in Uppercase() local
82 ptr = area; in Uppercase()
84 *(ptr++) = CRACK_TOUPPER(*str); in Uppercase()
87 *ptr = '\0'; in Uppercase()
95 register char *ptr; in Lowercase() local
98 ptr = area; in Lowercase()
100 *(ptr++) = CRACK_TOLOWER(*str); in Lowercase()
103 *ptr = '\0'; in Lowercase()
111 register char *ptr; in Capitalise() local
114 ptr = area; in Capitalise()
[all …]
H A Dstringlib.c23 register char *ptr; in Chop() local
27 for (ptr = string; *ptr; ptr++); in Chop()
28 if (ptr != string) { in Chop()
29 c = *(--ptr); in Chop()
30 *ptr = '\0'; in Chop()
39 register char *ptr; in Chomp() local
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()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/
H A Dtable.c73 static void delete(TABLE_ENTRY *ptr);
83 TABLE_ENTRY *ptr; in find_match() local
90 ptr = table; in find_match()
97 while (ptr != NULL) { in find_match()
99 if ((ptr->time - current_time) > MAX_LIFE) { in find_match()
103 print_request(&ptr->request); in find_match()
105 prevp = ptr; in find_match()
106 ptr = ptr->next; in find_match()
112 print_request(&ptr->request); in find_match()
114 if (strcmp(request->l_name, ptr->request.r_name) == 0 && in find_match()
[all …]
/titanic_41/usr/src/uts/common/fs/nfs/
H A Dnfs_xdr.c69 int32_t *ptr; in xdr_fhandle() local
75 ptr = XDR_INLINE(xdrs, RNDUP(sizeof (fhandle_t))); in xdr_fhandle()
76 if (ptr != NULL) { in xdr_fhandle()
79 *fhp++ = *ptr++; in xdr_fhandle()
80 *fhp++ = *ptr++; in xdr_fhandle()
81 *fhp++ = *ptr++; in xdr_fhandle()
82 *fhp++ = *ptr++; in xdr_fhandle()
83 *fhp++ = *ptr++; in xdr_fhandle()
84 *fhp++ = *ptr++; in xdr_fhandle()
85 *fhp++ = *ptr++; in xdr_fhandle()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DDNSCommon.c379 const DNameListElem *ptr; in mDNS_CopyDNameList() local
381 for (ptr = orig; ptr; ptr = ptr->next) in mDNS_CopyDNameList()
385 AssignDomainName(&newelem->name, &ptr->name); in mDNS_CopyDNameList()
474 char *ptr = buffer; in GetRRDisplayString_rdb() local
492 for (ptr = buffer; *ptr; ptr++) if (*ptr < ' ') *ptr='.'; in GetRRDisplayString_rdb()
668 mDNSu8 * ptr = name->c + DomainNameLength(name) - 1; // Find end of current name in AppendLiteralLabelString() local
670 const mDNSu8 *const lim2 = ptr + 1 + MAX_DOMAIN_LABEL; in AppendLiteralLabelString()
672 mDNSu8 *lengthbyte = ptr++; // Record where the length is going to go in AppendLiteralLabelString()
674 while (*cstr && ptr < lim) *ptr++ = (mDNSu8)*cstr++; // Copy the data in AppendLiteralLabelString()
675 *lengthbyte = (mDNSu8)(ptr - lengthbyte - 1); // Fill in the length byte in AppendLiteralLabelString()
[all …]
H A DmDNSDebug.c84 va_list ptr; in debugf_() local
85 va_start(ptr,format); in debugf_()
86 buffer[mDNS_vsnprintf((char *)buffer, sizeof(buffer), format, ptr)] = 0; in debugf_()
87 va_end(ptr); in debugf_()
97 va_list ptr; in verbosedebugf_() local
98 va_start(ptr,format); in verbosedebugf_()
99 buffer[mDNS_vsnprintf((char *)buffer, sizeof(buffer), format, ptr)] = 0; in verbosedebugf_()
100 va_end(ptr); in verbosedebugf_()
125 va_list ptr; in LogMsg() local
126 va_start(ptr,format); in LogMsg()
[all …]
/titanic_41/usr/src/lib/libc/port/threads/
H A Dalloc.c99 void *ptr; in initial_allocation() local
124 ptr = (void *)((caddr_t)base + bucketnum * SUBCHUNKSIZE); in initial_allocation()
127 bp->free_list = ptr; in initial_allocation()
129 void *next = (void *)((caddr_t)ptr + size); in initial_allocation()
130 *(void **)ptr = next; in initial_allocation()
131 ptr = next; in initial_allocation()
133 *(void **)ptr = NULL; in initial_allocation()
136 ptr = (void *)((caddr_t)base + bucketnum * SUBCHUNKSIZE); in initial_allocation()
138 bp->free_list = ptr; in initial_allocation()
140 ptr = (void *)((caddr_t)ptr + 2 * SUBCHUNKSIZE); in initial_allocation()
[all …]
/titanic_41/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
/titanic_41/usr/src/lib/libdns_sd/common/
H A Ddnssd_ipc.c68 void put_long(const uint32_t l, char **ptr) in put_long() argument
70 (*ptr)[0] = (char)((l >> 24) & 0xFF); in put_long()
71 (*ptr)[1] = (char)((l >> 16) & 0xFF); in put_long()
72 (*ptr)[2] = (char)((l >> 8) & 0xFF); in put_long()
73 (*ptr)[3] = (char)((l ) & 0xFF); in put_long()
74 *ptr += sizeof(uint32_t); in put_long()
77 uint32_t get_long(char **ptr) in get_long() argument
79 uint8_t *p = (uint8_t*) *ptr; in get_long()
80 *ptr += sizeof(uint32_t); in get_long()
84 void put_short(uint16_t s, char **ptr) in put_short() argument
[all …]
/titanic_41/usr/src/cmd/sendmail/libsm/
H A Dheap.c99 void *ptr; local
102 ptr = malloc(MALLOC_SIZE(size));
104 if (ptr == NULL)
106 return ptr;
125 void *ptr; local
128 ptr = malloc(MALLOC_SIZE(size));
130 return ptr;
145 sm_realloc(ptr, size) in sm_realloc() argument
146 void *ptr; in sm_realloc()
152 newptr = realloc(ptr, MALLOC_SIZE(size));
[all …]
/titanic_41/usr/src/common/smbsrv/
H A Dsmb_door_legacy.c49 smb_dr_decode_start(char *ptr, int size) in smb_dr_decode_start() argument
53 ctx->start_ptr = ctx->ptr = ptr; in smb_dr_decode_start()
54 ctx->end_ptr = ptr + size; in smb_dr_decode_start()
64 if (status == 0 && ctx->ptr != ctx->end_ptr) in smb_dr_decode_finish()
72 smb_dr_encode_start(char *ptr, int size) in smb_dr_encode_start() argument
76 ctx->start_ptr = ctx->ptr = ptr; in smb_dr_encode_start()
77 ctx->end_ptr = ptr + size; in smb_dr_encode_start()
88 if (ctx->ptr < ctx->end_ptr) { in smb_dr_encode_finish()
90 *used = ctx->ptr - ctx->start_ptr; in smb_dr_encode_finish()
105 if (ctx->ptr + sizeof (DWORD) <= ctx->end_ptr) { in smb_dr_get_dword()
[all …]
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dutil_ctxsetup.c39 kg2_parse_token(minor_status, ptr, token_length, flags, nctypes, ctypes, in kg2_parse_token() argument
42 unsigned char *ptr;
61 *flags = (ptr[0]<<24) | (ptr[1]<<16) | (ptr[2]<<8) | ptr[3];
62 ptr += 4;
69 field_length = (ptr[0]<<8) | ptr[1];
70 ptr += 2;
90 (*ctypes)[i] = (krb5_cksumtype) ((ptr[0]<<24) | (ptr[1]<<16) |
91 (ptr[2]<<8) | ptr[3]);
92 ptr += 4;
99 opt_id = (ptr[0]<<8) | ptr[1];
[all …]
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dchpw.c28 char *ptr; in krb5int_mk_chpw_req() local
50 ptr = packet->data; in krb5int_mk_chpw_req()
54 *ptr++ = (packet->length>> 8) & 0xff; in krb5int_mk_chpw_req()
55 *ptr++ = packet->length & 0xff; in krb5int_mk_chpw_req()
59 *ptr++ = 0; in krb5int_mk_chpw_req()
60 *ptr++ = 1; in krb5int_mk_chpw_req()
64 *ptr++ = (ap_req->length>>8) & 0xff; in krb5int_mk_chpw_req()
65 *ptr++ = ap_req->length & 0xff; in krb5int_mk_chpw_req()
69 memcpy(ptr, ap_req->data, ap_req->length); in krb5int_mk_chpw_req()
70 ptr += ap_req->length; in krb5int_mk_chpw_req()
[all …]
/titanic_41/usr/src/common/net/wanboot/
H A DparseURL.c53 char *ptr; in url_parse_hostport() local
65 ptr = lhpstr; in url_parse_hostport()
66 optr = ptr; in url_parse_hostport()
67 ptr = strstr(optr, ":"); in url_parse_hostport()
68 if (ptr != NULL) { in url_parse_hostport()
69 *ptr = '\0'; in url_parse_hostport()
70 ptr++; in url_parse_hostport()
87 if (ptr == NULL || *ptr == '\0') { in url_parse_hostport()
91 while (*ptr != '\0') { in url_parse_hostport()
92 if (!isdigit(*ptr)) { in url_parse_hostport()
[all …]
/titanic_41/usr/src/lib/libndmp/common/
H A Dlibndmp_door_data.c50 ndmp_door_decode_start(char *ptr, int size) in ndmp_door_decode_start() argument
54 ctx->start_ptr = ctx->ptr = ptr; in ndmp_door_decode_start()
55 ctx->end_ptr = ptr + size; in ndmp_door_decode_start()
65 if ((status == 0) && (ctx->ptr != ctx->end_ptr)) { in ndmp_door_decode_finish()
73 ndmp_door_encode_start(char *ptr, int size) in ndmp_door_encode_start() argument
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()
91 *used = ctx->ptr - ctx->start_ptr; in ndmp_door_encode_finish()
105 if (ctx->ptr + sizeof (int32_t) <= ctx->end_ptr) { in ndmp_door_get_int32()
[all …]
/titanic_41/usr/src/lib/libmail/common/
H A Ds_string.c59 sp->ptr = (char *)freed; in s_free()
88 freed = (string *)(freed->ptr); in s_new()
89 sp->ptr = sp->base; in s_new()
93 sp->base = sp->ptr = malloc(STRLEN); in s_new()
125 sp->ptr = (sp->ptr - sp->base) + cp; in s_simplegrow()
145 sp->base = sp->ptr = cp; in s_array()
166 sp->ptr = sp->end - (size_t)1; /* point to NULL terminator */ in s_copy()
176 for (cp = sp->ptr; *cp; cp++) in s_tolower()
183 while (isspace(*sp->ptr)) in s_skipwhite()
284 char *splitend = strpbrk(from->ptr, split); in s_tok()
[all …]
/titanic_41/usr/src/cmd/fs.d/cachefs/cfsd/
H A Dcfsd_logelem.h57 #define SETATTR_OBJECT(ptr) ptr->i_operation.i_setattr_object argument
58 #define SETATTR_OBJECT_PTR(ptr) &(ptr->i_operation.i_setattr_object) argument
59 #define SETSECATTR_OBJECT(ptr) ptr->i_operation.i_setsecattr_object argument
60 #define SETSECATTR_OBJECT_PTR(ptr) &(ptr->i_operation.i_setsecattr_object) argument
61 #define CREATE_OBJECT(ptr) ptr->i_operation.i_create_object argument
62 #define CREATE_OBJECT_PTR(ptr) &(ptr->i_operation.i_create_object) argument
63 #define REMOVE_OBJECT(ptr) ptr->i_operation.i_remove_object argument
64 #define REMOVE_OBJECT_PTR(ptr) &(ptr->i_operation.i_remove_object) argument
65 #define RMDIR_OBJECT(ptr) ptr->i_operation.i_rmdir_object argument
66 #define RMDIR_OBJECT_PTR(ptr) &(ptr->i_operation.i_rmdir_object) argument
[all …]
/titanic_41/usr/src/cmd/ttymon/
H A Dttyadm.c78 struct pmtab *ptr; in main() local
97 if ((ptr = ALLOC_PMTAB) == PNULL) { in main()
101 ptr->p_modules = ""; in main()
102 ptr->p_dmsg = ""; in main()
103 ptr->p_termtype = ""; in main()
104 ptr->p_softcar = ""; in main()
105 ptr->p_prompt = "login\\: "; in main()
117 ptr->p_device = optarg; in main()
142 ptr->p_termtype = optarg; in main()
148 ptr->p_softcar = "y"; in main()
[all …]
H A Dtmparse.c37 getword(ptr, size, getall) in getword() argument
38 register char *ptr; /* pointer to the string to be scanned */ in getword()
50 while (isspace(*ptr)) {
52 ptr++;
59 *ptr != '\0' && *ptr != ':'; ptr++,(*size)++) {
61 if (isspace(*ptr))
66 if (*ptr == '\\') {
67 c = quoted(ptr,&qsize);
69 ptr += qsize;
70 } else c = *ptr;
[all …]
/titanic_41/usr/src/cmd/sgs/libelf/misc/
H A Dargs.c57 String *ptr; member
66 r->ptr = mk_String((String *)0);
75 free_String(r->ptr);
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()
89 r->ptr = prep_String(MSG_ORIG(MSG_STR_VOLATILE_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()
94 *sptr = app_String(*sptr,PTR(r->ptr)); in nsetarg()
187 ar.ptr = prep_String(MSG_ORIG(MSG_STR_CONST_2),
[all …]
/titanic_41/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()
54 *ptr++ = (packet->length>> 8) & 0xff; in krb5int_mk_chpw_req()
55 *ptr++ = packet->length & 0xff; in krb5int_mk_chpw_req()
62 *ptr++ = 0; in krb5int_mk_chpw_req()
63 *ptr++ = 1; in krb5int_mk_chpw_req()
67 *ptr++ = (ap_req->length>>8) & 0xff; in krb5int_mk_chpw_req()
68 *ptr++ = ap_req->length & 0xff; in krb5int_mk_chpw_req()
72 memcpy(ptr, ap_req->data, ap_req->length); in krb5int_mk_chpw_req()
73 ptr += ap_req->length; in krb5int_mk_chpw_req()
[all …]
/titanic_41/usr/src/cmd/mdb/common/mdb/
H A Dmdb_umem.c93 void *ptr = NULL; in mdb_umem_handler()
106 ptr = memalign(align, nbytes); in mdb_umem_handler()
108 ptr = malloc(nbytes); in mdb_umem_handler()
109 } while (ptr == NULL && errno == EAGAIN); in mdb_umem_handler()
111 if (ptr != NULL) in mdb_umem_handler()
112 return (ptr); in mdb_umem_handler()
136 mdb_umem_gc_enter(void *ptr, size_t nbytes) in mdb_umem_gc_enter() argument
140 blkp->blk_addr = ptr; in mdb_umem_gc_enter()
171 void *ptr; in mdb_alloc_align() local
179 ptr = memalign(align, nbytes); in mdb_alloc_align()
[all …]
/titanic_41/usr/src/lib/efcode/engine/
H A Dinstance.c42 int ptr; in alloc_instance_data() local
44 *offset = ptr = MYSELF->device->data_size[init]; in alloc_instance_data()
47 return (&MYSELF->device->init_data[ptr]); in alloc_instance_data()
49 return (&MYSELF->data[init][ptr]); in alloc_instance_data()
56 token_t *ptr; in get_instance_address() local
60 ptr = (token_t *) POP(DS); in get_instance_address()
61 offset = *ptr; in get_instance_address()
74 token_t *ptr; in fetch_instance_data() local
77 ptr = get_instance_address(env); in fetch_instance_data()
78 PUSH(DS, *ptr); in fetch_instance_data()
[all …]
/titanic_41/usr/src/lib/libsldap/common/
H A Dns_mapping.c102 char **ptr; in ns_free_map() local
115 for (ptr = mapp->map; *ptr; ptr++) in ns_free_map()
116 free(*ptr); in ns_free_map()
299 __ns_ldap_freeASearchDesc(ns_ldap_search_desc_t *ptr) in __ns_ldap_freeASearchDesc() argument
301 if (ptr == NULL) in __ns_ldap_freeASearchDesc()
303 if (ptr->basedn) in __ns_ldap_freeASearchDesc()
304 free(ptr->basedn); in __ns_ldap_freeASearchDesc()
305 if (ptr->filter) in __ns_ldap_freeASearchDesc()
306 free(ptr->filter); in __ns_ldap_freeASearchDesc()
307 free(ptr); in __ns_ldap_freeASearchDesc()
[all …]
/titanic_41/usr/src/lib/libiscsit/common/
H A Dlibiscsit.c535 it_tgt_t *ptr; in it_tgt_create() local
574 ptr = calloc(1, sizeof (it_tgt_t)); in it_tgt_create()
575 if (ptr == NULL) { in it_tgt_create()
579 (void) strlcpy(ptr->tgt_name, namep, sizeof (ptr->tgt_name)); in it_tgt_create()
580 ptr->tgt_generation = 1; in it_tgt_create()
581 ptr->tgt_next = cfg->config_tgt_list; in it_tgt_create()
582 cfg->config_tgt_list = ptr; in it_tgt_create()
585 *tgt = ptr; in it_tgt_create()
845 it_tpgt_t *ptr = NULL; in it_tpgt_create() local
903 ptr = calloc(1, sizeof (it_tpgt_t)); in it_tpgt_create()
[all …]

12345678910>>...53