Home
last modified time | relevance | path

Searched refs:ptr1 (Results 1 – 25 of 36) sorted by relevance

12

/freebsd-12-stable/contrib/bsnmp/snmp_target/
Dtarget_snmp.c169 ctx->scratch->ptr1 = malloc(SNMP_UDP_ADDR_SIZ); in op_snmp_target_addrs()
170 if (ctx->scratch->ptr1 == NULL) in op_snmp_target_addrs()
172 memcpy(ctx->scratch->ptr1, addrs->address, in op_snmp_target_addrs()
182 ctx->scratch->ptr1 = malloc(ctx->scratch->int1); in op_snmp_target_addrs()
183 if (ctx->scratch->ptr1 == NULL) in op_snmp_target_addrs()
185 strlcpy(ctx->scratch->ptr1, addrs->taglist, in op_snmp_target_addrs()
196 ctx->scratch->ptr1 = malloc(ctx->scratch->int1); in op_snmp_target_addrs()
197 if (ctx->scratch->ptr1 == NULL) in op_snmp_target_addrs()
199 strlcpy(ctx->scratch->ptr1, addrs->paramname, in op_snmp_target_addrs()
252 free(ctx->scratch->ptr1); in op_snmp_target_addrs()
[all …]
/freebsd-12-stable/contrib/bsnmp/snmpd/
Dexport.c63 ctx->scratch->ptr1 = *valp; in string_save()
66 *valp = ctx->scratch->ptr1; in string_save()
82 free(ctx->scratch->ptr1); in string_commit()
92 *valp = ctx->scratch->ptr1; in string_rollback()
101 free(ctx->scratch->ptr1); in string_free()
214 if ((ctx->scratch->ptr1 = malloc(sizeof(struct asn_oid))) == NULL) in oid_save()
216 *(struct asn_oid *)ctx->scratch->ptr1 = *oid; in oid_save()
225 *oid = *(struct asn_oid *)ctx->scratch->ptr1; in oid_rollback()
226 free(ctx->scratch->ptr1); in oid_rollback()
232 free(ctx->scratch->ptr1); in oid_commit()
Daction.c1032 ctx->scratch->ptr1 = mdep; in op_modules()
1122 ctx->scratch->ptr1 = malloc(snmpd_engine.engine_len); in op_snmp_engine()
1123 if (ctx->scratch->ptr1 == NULL) in op_snmp_engine()
1125 memcpy(ctx->scratch->ptr1, snmpd_engine.engine_id, in op_snmp_engine()
1148 memcpy(snmpd_engine.engine_id, ctx->scratch->ptr1, in op_snmp_engine()
1150 free(ctx->scratch->ptr1); in op_snmp_engine()
1167 ctx->scratch->ptr1, ctx->scratch->int1); in op_snmp_engine()
1169 free(ctx->scratch->ptr1); in op_snmp_engine()
/freebsd-12-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pointers/
Dtst.PointerAssignment.d42 int *ptr1; variable
51 ptr1 = array;
52 ptr2 = ptr1;
/freebsd-12-stable/contrib/xz/src/liblzma/lz/
Dlz_encoder_mf.c463 uint32_t *ptr1 = son + (cyclic_pos << 1); in bt_find_func() local
472 *ptr1 = EMPTY_HASH_VALUE; in bt_find_func()
493 *ptr1 = pair[0]; in bt_find_func()
501 *ptr1 = cur_match; in bt_find_func()
502 ptr1 = pair + 1; in bt_find_func()
503 cur_match = *ptr1; in bt_find_func()
527 uint32_t *ptr1 = son + (cyclic_pos << 1); in bt_skip_func() local
536 *ptr1 = EMPTY_HASH_VALUE; in bt_skip_func()
550 *ptr1 = pair[0]; in bt_skip_func()
557 *ptr1 = cur_match; in bt_skip_func()
[all …]
/freebsd-12-stable/contrib/ofed/infiniband-diags/src/
Dibcacheedit.c100 char *ptr1; in parse_guidbeforeafter() local
106 ptr1 = strchr(optarg, ':'); in parse_guidbeforeafter()
107 if (!ptr1 || !(*(ptr1 + 1))) { in parse_guidbeforeafter()
112 before_str = ptr1 + 1; in parse_guidbeforeafter()
119 (*ptr1) = '\0'; in parse_guidbeforeafter()
/freebsd-12-stable/contrib/binutils/ld/
Dmri.c162 struct section_name_struct *ptr1; in mri_draw_tree() local
169 for (ptr1 = only_load; ptr1; ptr1 = ptr1->next) in mri_draw_tree()
171 if (strcmp (ptr2->name, ptr1->name) == 0) in mri_draw_tree()
/freebsd-12-stable/sys/dev/pms/RefTisa/tisa/sassata/common/
Dossa.h45 #define ossaLogDebugString(agRoot, level, string, ptr1, ptr2, value1, value2) \ argument
54 if ( agNULL != ptr1 ) \
56 printk("ptr1=%p,", ptr1); \
/freebsd-12-stable/usr.sbin/bsnmpd/modules/snmp_bridge/
Dbridge_snmp.c159 if ((ctx->scratch->ptr1 = malloc(IFNAMSIZ)) == NULL) in bridge_default_name_save()
162 strncpy(ctx->scratch->ptr1, bridge_default, ctx->scratch->int1); in bridge_default_name_save()
226 bridge_set_default_name(ctx->scratch->ptr1, in op_begemot_bridge_config()
228 free(ctx->scratch->ptr1); in op_begemot_bridge_config()
239 free(ctx->scratch->ptr1); in op_begemot_bridge_config()
/freebsd-12-stable/contrib/bsnmp/snmp_usm/
Dusm_snmp.c233 ctx->scratch->ptr1 = malloc(SNMP_AUTH_KEY_SIZ); in op_usm_users()
234 if (ctx->scratch->ptr1 == NULL) in op_usm_users()
236 memcpy(ctx->scratch->ptr1, uuser->suser.auth_key, in op_usm_users()
266 ctx->scratch->ptr1 = malloc(SNMP_PRIV_KEY_SIZ); in op_usm_users()
267 if (ctx->scratch->ptr1 == NULL) in op_usm_users()
269 memcpy(ctx->scratch->ptr1, uuser->suser.priv_key, in op_usm_users()
331 free(ctx->scratch->ptr1); in op_usm_users()
358 memcpy(uuser->suser.auth_key, ctx->scratch->ptr1, in op_usm_users()
360 free(ctx->scratch->ptr1); in op_usm_users()
367 memcpy(uuser->suser.priv_key, ctx->scratch->ptr1, in op_usm_users()
[all …]
/freebsd-12-stable/contrib/bsnmp/snmp_vacm/
Dvacm_snmp.c174 ctx->scratch->ptr1 = user->group->groupname; in op_vacm_security_to_group()
228 return (vacm_user_set_group(user, ctx->scratch->ptr1, in op_vacm_security_to_group()
302 ctx->scratch->ptr1 = acl->read_view; in op_vacm_access()
305 acl->read_view = ctx->scratch->ptr1; in op_vacm_access()
311 ctx->scratch->ptr1 = acl->write_view; in op_vacm_access()
315 acl->write_view = ctx->scratch->ptr1; in op_vacm_access()
321 ctx->scratch->ptr1 = acl->notify_view; in op_vacm_access()
325 acl->notify_view = ctx->scratch->ptr1; in op_vacm_access()
375 acl->read_view = ctx->scratch->ptr1; in op_vacm_access()
378 acl->write_view = ctx->scratch->ptr1; in op_vacm_access()
[all …]
/freebsd-12-stable/contrib/netbsd-tests/fs/ffs/
Dt_fifos.c108 pthread_t ptw1, ptw2, ptr1, ptr2; in ATF_TC_BODY() local
133 pthread_create(&ptr1, NULL, r1, NULL); in ATF_TC_BODY()
138 pthread_join(ptr1, NULL); in ATF_TC_BODY()
/freebsd-12-stable/usr.sbin/bsnmpd/modules/snmp_hostres/
Dhostres_scalars.c415 if ((ctx->scratch->ptr1 = in op_hrSystem()
433 free(ctx->scratch->ptr1); in op_hrSystem()
446 (void)OS_setSystemDate(ctx->scratch->ptr1); in op_hrSystem()
447 free(ctx->scratch->ptr1); in op_hrSystem()
/freebsd-12-stable/usr.sbin/bsnmpd/modules/snmp_wlan/
Dwlan_snmp.c263 if ((ctx->scratch->ptr1 = malloc(IFNAMSIZ)) == NULL) in op_wlan_iface()
265 strlcpy(ctx->scratch->ptr1, wif->wname, IFNAMSIZ); in op_wlan_iface()
274 if ((ctx->scratch->ptr1 = malloc(IFNAMSIZ)) == NULL) in op_wlan_iface()
276 strlcpy(ctx->scratch->ptr1, wif->pname, IFNAMSIZ); in op_wlan_iface()
290 ctx->scratch->ptr1 = malloc(sizeof(wif->flags)); in op_wlan_iface()
291 if (ctx->scratch->ptr1 == NULL) in op_wlan_iface()
293 memcpy(ctx->scratch->ptr1, (uint8_t *)&wif->flags, in op_wlan_iface()
302 ctx->scratch->ptr1 = malloc(IEEE80211_ADDR_LEN); in op_wlan_iface()
303 if (ctx->scratch->ptr1 == NULL) in op_wlan_iface()
305 memcpy(ctx->scratch->ptr1, wif->dbssid, in op_wlan_iface()
[all …]
/freebsd-12-stable/sys/dev/trm/
Dtrm.c341 PDCB ptr, ptr1; in trm_DoWaitingSRB() local
352 ptr1 = ptr; in trm_DoWaitingSRB()
353 for (;ptr1 ;) { in trm_DoWaitingSRB()
354 pACB->pDCBRunRobin = ptr1->pNextDCB; in trm_DoWaitingSRB()
355 if (!(ptr1->MaxActiveCommandCnt > ptr1->GoingSRBCnt) in trm_DoWaitingSRB()
356 || !(pSRB = ptr1->pWaitingSRB)) { in trm_DoWaitingSRB()
359 ptr1 = ptr1->pNextDCB; in trm_DoWaitingSRB()
361 if (!trm_StartSCSI(pACB, ptr1, pSRB)) { in trm_DoWaitingSRB()
367 ptr1->GoingSRBCnt++; in trm_DoWaitingSRB()
368 if (ptr1->pWaitingLastSRB == pSRB) { in trm_DoWaitingSRB()
[all …]
/freebsd-12-stable/contrib/expat/lib/
Dxmltok.h254 #define XmlNameMatchesAscii(enc, ptr1, end1, ptr2) \ argument
255 (((enc)->nameMatchesAscii)(enc, ptr1, end1, ptr2))
Dxmltok_impl.c1714 PREFIX(nameMatchesAscii)(const ENCODING *enc, const char *ptr1, in PREFIX()
1717 for (; *ptr2; ptr1 += MINBPC(enc), ptr2++) { in PREFIX()
1718 if (end1 - ptr1 < MINBPC(enc)) { in PREFIX()
1726 if (! CHAR_MATCHES(enc, ptr1, *ptr2)) in PREFIX()
1729 return ptr1 == end1; in PREFIX()
/freebsd-12-stable/crypto/openssl/crypto/evp/
Devp_local.h68 int is_partially_overlapping(const void *ptr1, const void *ptr2, size_t len);
Devp_enc.c284 int is_partially_overlapping(const void *ptr1, const void *ptr2, size_t len) in is_partially_overlapping() argument
286 PTRDIFF_T diff = (PTRDIFF_T)ptr1-(PTRDIFF_T)ptr2; in is_partially_overlapping()
/freebsd-12-stable/sys/dev/pms/RefTisa/discovery/api/
Dtddmapi.h111 void *ptr1,
/freebsd-12-stable/contrib/ntp/sntp/libevent/test/
Dregress_buffer.c1632 struct evbuffer_ptr ptr1, ptr2; in test_evbuffer_search_eol() local
1639 ptr1 = evbuffer_search_eol(buf, NULL, &eol_len, EVBUFFER_EOL_CRLF); in test_evbuffer_search_eol()
1640 tt_int_op(ptr1.pos, ==, 8); in test_evbuffer_search_eol()
1644 ptr2 = evbuffer_search_eol(buf, &ptr1, &eol_len, EVBUFFER_EOL_CRLF); in test_evbuffer_search_eol()
1648 evbuffer_ptr_set(buf, &ptr1, 1, EVBUFFER_PTR_ADD); in test_evbuffer_search_eol()
1650 ptr2 = evbuffer_search_eol(buf, &ptr1, &eol_len, EVBUFFER_EOL_CRLF); in test_evbuffer_search_eol()
1655 ptr2 = evbuffer_search_eol(buf, &ptr1, &eol_len, EVBUFFER_EOL_CRLF_STRICT); in test_evbuffer_search_eol()
1660 ptr1 = evbuffer_search_eol(buf, NULL, &eol_len, EVBUFFER_EOL_LF); in test_evbuffer_search_eol()
1661 tt_int_op(ptr1.pos, ==, 9); in test_evbuffer_search_eol()
1665 ptr2 = evbuffer_search_eol(buf, &ptr1, &eol_len, EVBUFFER_EOL_LF); in test_evbuffer_search_eol()
[all …]
/freebsd-12-stable/contrib/libevent/test/
Dregress_buffer.c1632 struct evbuffer_ptr ptr1, ptr2; in test_evbuffer_search_eol() local
1639 ptr1 = evbuffer_search_eol(buf, NULL, &eol_len, EVBUFFER_EOL_CRLF); in test_evbuffer_search_eol()
1640 tt_int_op(ptr1.pos, ==, 8); in test_evbuffer_search_eol()
1644 ptr2 = evbuffer_search_eol(buf, &ptr1, &eol_len, EVBUFFER_EOL_CRLF); in test_evbuffer_search_eol()
1648 evbuffer_ptr_set(buf, &ptr1, 1, EVBUFFER_PTR_ADD); in test_evbuffer_search_eol()
1650 ptr2 = evbuffer_search_eol(buf, &ptr1, &eol_len, EVBUFFER_EOL_CRLF); in test_evbuffer_search_eol()
1655 ptr2 = evbuffer_search_eol(buf, &ptr1, &eol_len, EVBUFFER_EOL_CRLF_STRICT); in test_evbuffer_search_eol()
1660 ptr1 = evbuffer_search_eol(buf, NULL, &eol_len, EVBUFFER_EOL_LF); in test_evbuffer_search_eol()
1661 tt_int_op(ptr1.pos, ==, 9); in test_evbuffer_search_eol()
1665 ptr2 = evbuffer_search_eol(buf, &ptr1, &eol_len, EVBUFFER_EOL_LF); in test_evbuffer_search_eol()
[all …]
/freebsd-12-stable/contrib/bsnmp/snmp_ntp/
Dsnmp_ntp.c574 char *ptr1; in ntpd_parse() local
626 for (ptr1 = ptr; ptr1 > *valp; ptr1--) in ntpd_parse()
627 if (!isspace((int)ptr1[-1])) in ntpd_parse()
629 *ptr1 = '\0'; in ntpd_parse()
/freebsd-12-stable/contrib/bsnmp/lib/
Dsnmpagent.h57 void *ptr1; member
/freebsd-12-stable/sys/dev/pms/RefTisa/sat/api/
Dtdsmapi.h187 void *ptr1,

12