Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 1325) sorted by relevance

12345678910>>...53

/freebsd-9-stable/usr.sbin/rpc.lockd/
Dtest.c24 static nlm_testres res; local
26 bzero((char *)&res, sizeof(res));
27 …if (clnt_call(clnt, NLM_TEST, xdr_nlm_testargs, argp, xdr_nlm_testres, &res, TIMEOUT) != RPC_SUCCE…
30 return (&res);
40 static nlm_res res; local
42 bzero((char *)&res, sizeof(res));
43 …if (st = clnt_call(clnt, NLM_LOCK, xdr_nlm_lockargs, argp, xdr_nlm_res, &res, TIMEOUT) != RPC_SUCC…
48 return (&res);
57 static nlm_res res; local
59 bzero((char *)&res, sizeof(res));
[all …]
Dlock_proc.c439 static nlm_testres res; local
455 res.cookie = arg->cookie;
457 res.stat.stat = nlm_granted;
459 res.stat.stat = nlm_denied;
460 memcpy(&res.stat.nlm_testrply_u.holder, holder,
462 res.stat.nlm_testrply_u.holder.l_offset = holder->l_offset;
463 res.stat.nlm_testrply_u.holder.l_len = holder->l_len;
465 return (&res);
473 nlm_testres res; local
489 res.cookie = arg->cookie;
[all …]
/freebsd-9-stable/contrib/ntp/libntp/
Dvint64ops.c48 vint64 res; in strtouv64() local
78 memset(&res, 0xFF, sizeof(res)); in strtouv64()
80 return res; in strtouv64()
83 memset(&res, 0, sizeof(res)); in strtouv64()
97 res.Q_s = res.Q_s * base + digit; in strtouv64()
104 accu = (uint32_t)res.W_s.ll * base; in strtouv64()
105 res.W_s.ll = (uint16_t)accu; in strtouv64()
107 + (uint32_t)res.W_s.lh * base; in strtouv64()
108 res.W_s.lh = (uint16_t)accu; in strtouv64()
110 res.D_s.hi = res.D_s.hi * base + (accu >> 16); in strtouv64()
[all …]
Dntp_calendar.c106 systime_func_ptr res; in ntpcal_set_timefunc() local
108 res = systime_func; in ntpcal_set_timefunc()
113 return res; in ntpcal_set_timefunc()
244 vint64 res; in time_to_vint64() local
251 res.D_s.hi = 0; in time_to_vint64()
253 res.D_s.lo = (uint32_t)-tt; in time_to_vint64()
254 M_NEG(res.D_s.hi, res.D_s.lo); in time_to_vint64()
256 res.D_s.lo = (uint32_t)tt; in time_to_vint64()
261 res.q_s = tt; in time_to_vint64()
271 res.D_s.lo = (uint32_t)tt; in time_to_vint64()
[all …]
/freebsd-9-stable/contrib/amd/amq/
Damq_clnt.c57 static char res; in amqproc_null_1() local
59 memset((char *) &res, 0, sizeof(res)); in amqproc_null_1()
62 (XDRPROC_T_TYPE) xdr_void, &res, TIMEOUT) in amqproc_null_1()
66 return ((voidp) &res); in amqproc_null_1()
73 static amq_mount_tree_p res; in amqproc_mnttree_1() local
75 memset((char *) &res, 0, sizeof(res)); in amqproc_mnttree_1()
78 (XDRPROC_T_TYPE) xdr_amq_mount_tree_p, (SVC_IN_ARG_TYPE) &res, in amqproc_mnttree_1()
82 return (&res); in amqproc_mnttree_1()
89 static char res; in amqproc_umnt_1() local
91 memset((char *) &res, 0, sizeof(res)); in amqproc_umnt_1()
[all …]
/freebsd-9-stable/contrib/ofed/management/opensm/osmtest/
Dosmt_mtl_regular_qp.c80 VAPI_ret_t osmt_mtl_get_qp_resources(IN OUT osmt_mtl_mad_res_t * res) in osmt_mtl_get_qp_resources() argument
90 VAPI_query_hca_port_prop(res->hca_hndl, res->port_num, in osmt_mtl_get_qp_resources()
93 res->slid = hca_port_info.lid; in osmt_mtl_get_qp_resources()
96 ret = VAPI_alloc_pd(res->hca_hndl, &(res->pd_hndl)); in osmt_mtl_get_qp_resources()
101 VAPI_create_cq(res->hca_hndl, res->max_outs_sq + 1, in osmt_mtl_get_qp_resources()
102 &(res->sq_cq_hndl), &act_num); in osmt_mtl_get_qp_resources()
105 VAPI_create_cq(res->hca_hndl, res->max_outs_rq + 1, in osmt_mtl_get_qp_resources()
106 &(res->rq_cq_hndl), &act_num); in osmt_mtl_get_qp_resources()
118 qp_init_attr.cap.max_oust_wr_sq = res->max_outs_sq + 1; in osmt_mtl_get_qp_resources()
119 qp_init_attr.cap.max_oust_wr_rq = res->max_outs_rq + 1; in osmt_mtl_get_qp_resources()
[all …]
/freebsd-9-stable/contrib/libarchive/libarchive/
Darchive_entry_link_resolver.c97 struct archive_entry_linkresolver *res; in archive_entry_linkresolver_new() local
100 res = malloc(sizeof(struct archive_entry_linkresolver)); in archive_entry_linkresolver_new()
101 if (res == NULL) in archive_entry_linkresolver_new()
103 memset(res, 0, sizeof(struct archive_entry_linkresolver)); in archive_entry_linkresolver_new()
104 res->number_buckets = links_cache_initial_size; in archive_entry_linkresolver_new()
105 res->buckets = malloc(res->number_buckets * in archive_entry_linkresolver_new()
106 sizeof(res->buckets[0])); in archive_entry_linkresolver_new()
107 if (res->buckets == NULL) { in archive_entry_linkresolver_new()
108 free(res); in archive_entry_linkresolver_new()
111 for (i = 0; i < res->number_buckets; i++) in archive_entry_linkresolver_new()
[all …]
/freebsd-9-stable/contrib/amd/hlfsd/
Dstubs.c94 static char res; in nfsproc_null_2_svc() local
96 return (voidp) &res; in nfsproc_null_2_svc()
111 static nfsattrstat res; in nfsproc_getattr_2_svc() local
126 res.ns_status = NFSERR_STALE; in nfsproc_getattr_2_svc()
127 return &res; in nfsproc_getattr_2_svc()
141 res.ns_status = NFS_OK; in nfsproc_getattr_2_svc()
142 res.ns_u.ns_attr_u = rootfattr; in nfsproc_getattr_2_svc()
161 res.ns_status = NFS_OK; in nfsproc_getattr_2_svc()
162 res.ns_u.ns_attr_u = slinkfattr; in nfsproc_getattr_2_svc()
165 res.ns_status = NFSERR_STALE; in nfsproc_getattr_2_svc()
[all …]
/freebsd-9-stable/sbin/hastd/
Dcontrol.c57 child_cleanup(struct hast_resource *res) in child_cleanup() argument
60 proto_close(res->hr_ctrl); in child_cleanup()
61 res->hr_ctrl = NULL; in child_cleanup()
62 if (res->hr_event != NULL) { in child_cleanup()
63 proto_close(res->hr_event); in child_cleanup()
64 res->hr_event = NULL; in child_cleanup()
66 if (res->hr_conn != NULL) { in child_cleanup()
67 proto_close(res->hr_conn); in child_cleanup()
68 res->hr_conn = NULL; in child_cleanup()
70 res->hr_workerpid = 0; in child_cleanup()
[all …]
Dsecondary.c210 init_local(struct hast_resource *res) in init_local() argument
213 if (metadata_read(res, true) == -1) in init_local()
218 init_remote(struct hast_resource *res, struct nv *nvin) in init_remote() argument
227 if (proto_send(res->hr_remoteout, NULL, 0) == -1) in init_remote()
232 nv_add_int64(nvout, (int64_t)res->hr_datasize, "datasize"); in init_remote()
233 nv_add_int32(nvout, (int32_t)res->hr_extentsize, "extentsize"); in init_remote()
235 res->hr_primary_localcnt = nv_get_uint64(nvin, "localcnt"); in init_remote()
236 res->hr_primary_remotecnt = nv_get_uint64(nvin, "remotecnt"); in init_remote()
237 nv_add_uint64(nvout, res->hr_secondary_localcnt, "localcnt"); in init_remote()
238 nv_add_uint64(nvout, res->hr_secondary_remotecnt, "remotecnt"); in init_remote()
[all …]
Dprimary.c179 #define ISCONNECTED(res, no) \ argument
180 ((res)->hr_remotein != NULL && (res)->hr_remoteout != NULL)
281 cleanup(struct hast_resource *res) in cleanup() argument
289 if (res->hr_ggateunit >= 0) { in cleanup()
294 ggiod.gctl_unit = res->hr_ggateunit; in cleanup()
296 if (ioctl(res->hr_ggatefd, G_GATE_CMD_DESTROY, &ggiod) == -1) { in cleanup()
299 res->hr_provname); in cleanup()
301 res->hr_ggateunit = -1; in cleanup()
335 hast_activemap_flush(struct hast_resource *res) in hast_activemap_flush() argument
341 mtx_lock(&res->hr_amp_diskmap_lock); in hast_activemap_flush()
[all …]
Dmetadata.c47 metadata_read(struct hast_resource *res, bool openrw) in metadata_read() argument
63 if (res->hr_localfd == -1) { in metadata_read()
64 if (provinfo(res, openrw) == -1) { in metadata_read()
69 pjdlog_debug(1, "Obtained info about %s.", res->hr_localpath); in metadata_read()
71 if (flock(res->hr_localfd, LOCK_EX | LOCK_NB) == -1) { in metadata_read()
75 res->hr_localpath); in metadata_read()
79 res->hr_localpath); in metadata_read()
83 pjdlog_debug(1, "Locked %s.", res->hr_localpath); in metadata_read()
103 done = pread(res->hr_localfd, buf, METADATA_SIZE, 0); in metadata_read()
114 res->hr_localpath); in metadata_read()
[all …]
Dhastd.c102 descriptors_cleanup(struct hast_resource *res) in descriptors_cleanup() argument
108 if (tres == res) { in descriptors_cleanup()
109 PJDLOG_VERIFY(res->hr_role == HAST_ROLE_SECONDARY || in descriptors_cleanup()
110 (res->hr_remotein == NULL && in descriptors_cleanup()
111 res->hr_remoteout == NULL)); in descriptors_cleanup()
166 descriptors_assert(const struct hast_resource *res, int pjdlogmode) in descriptors_assert() argument
185 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, in descriptors_assert()
186 role2str(res->hr_role)); in descriptors_assert()
213 } else if (fd == proto_descriptor(res->hr_event)) { in descriptors_assert()
226 } else if (fd == proto_descriptor(res->hr_ctrl)) { in descriptors_assert()
[all …]
/freebsd-9-stable/contrib/ntp/ntpd/
Dntp_restrict.c162 restrict_u * res; in alloc_res4() local
165 UNLINK_HEAD_SLIST(res, resfree4, link); in alloc_res4()
166 if (res != NULL) in alloc_res4()
167 return res; in alloc_res4()
171 res = (void *)((char *)rl + (count - 1) * cb); in alloc_res4()
173 LINK_SLIST(resfree4, res, link); in alloc_res4()
174 res = (void *)((char *)res - cb); in alloc_res4()
176 INSIST(rl == res); in alloc_res4()
178 return res; in alloc_res4()
188 restrict_u * res; in alloc_res6() local
[all …]
/freebsd-9-stable/sys/dev/acpica/
Dacpi_resource.c54 struct resource *res; member
61 acpi_lookup_irq_handler(ACPI_RESOURCE *res, void *context) in acpi_lookup_irq_handler() argument
67 switch (res->Type) { in acpi_lookup_irq_handler()
69 irqnum = res->Data.Irq.InterruptCount; in acpi_lookup_irq_handler()
70 irq = res->Data.Irq.Interrupts[0]; in acpi_lookup_irq_handler()
74 irqnum = res->Data.ExtendedIrq.InterruptCount; in acpi_lookup_irq_handler()
75 irq = res->Data.ExtendedIrq.Interrupts[0]; in acpi_lookup_irq_handler()
89 KASSERT(irq == rman_get_start(req->res), in acpi_lookup_irq_handler()
91 bcopy(res, req->acpi_res, len); in acpi_lookup_irq_handler()
96 acpi_lookup_irq_resource(device_t dev, int rid, struct resource *res, in acpi_lookup_irq_resource() argument
[all …]
/freebsd-9-stable/usr.sbin/bsnmpd/modules/snmp_hast/
Dhast_snmp.c156 struct hast_snmp_resource *res; in free_resources() local
158 while ((res = TAILQ_FIRST(&resources)) != NULL) { in free_resources()
159 TAILQ_REMOVE(&resources, res, link); in free_resources()
160 free(res); in free_resources()
273 struct hast_snmp_resource *res; in update_resources() local
300 res = calloc(1, sizeof(*res)); in update_resources()
301 if (res == NULL) { in update_resources()
303 "resource", sizeof(*res)); in update_resources()
306 res->index = i + 1; in update_resources()
307 strncpy(res->name, str, sizeof(res->name) - 1); in update_resources()
[all …]
/freebsd-9-stable/crypto/heimdal/lib/roken/
Dcopyhostent.c48 struct hostent *res; in copyhostent() local
52 res = malloc (sizeof (*res)); in copyhostent()
53 if (res == NULL) in copyhostent()
55 res->h_name = NULL; in copyhostent()
56 res->h_aliases = NULL; in copyhostent()
57 res->h_addrtype = h->h_addrtype; in copyhostent()
58 res->h_length = h->h_length; in copyhostent()
59 res->h_addr_list = NULL; in copyhostent()
60 res->h_name = strdup (h->h_name); in copyhostent()
61 if (res->h_name == NULL) { in copyhostent()
[all …]
/freebsd-9-stable/contrib/amd/amd/
Dnfs_subr.c122 static char res; in nfsproc_null_2_svc() local
124 return (voidp) &res; in nfsproc_null_2_svc()
131 static nfsattrstat res; in nfsproc_getattr_2_svc() local
148 res.ns_status = nfs_error(retry); in nfsproc_getattr_2_svc()
149 return &res; in nfsproc_getattr_2_svc()
152 res = mp->am_attr; in nfsproc_getattr_2_svc()
156 (int) res.ns_u.ns_attr_u.na_size, in nfsproc_getattr_2_svc()
157 (long) res.ns_u.ns_attr_u.na_mtime.nt_seconds, in nfsproc_getattr_2_svc()
158 (long) res.ns_u.ns_attr_u.na_mtime.nt_useconds); in nfsproc_getattr_2_svc()
166 return &res; in nfsproc_getattr_2_svc()
[all …]
/freebsd-9-stable/lib/libstand/
Dzalloc_malloc.c56 Guard *res; in Malloc() local
64 while ((res = znalloc(&MallocPool, bytes)) == NULL) { in Malloc()
78 res->ga_Magic = GAMAGIC; in Malloc()
80 res->ga_Bytes = bytes; in Malloc()
82 *((signed char *)res + bytes - 1) = -2; in Malloc()
85 return((char *)res + MALLOCALIGN); in Malloc()
94 Guard *res = (void *)((char *)ptr - MALLOCALIGN); in Free() local
99 if (res->ga_Magic == GAFREE) { in Free()
103 if (res->ga_Magic != GAMAGIC) in Free()
105 res->ga_Magic = GAFREE; in Free()
[all …]
/freebsd-9-stable/crypto/heimdal/lib/krb5/
Dget_addrs.c49 gethostname_fallback (krb5_context context, krb5_addresses *res) in gethostname_fallback() argument
67 res->len = 1; in gethostname_fallback()
68 res->val = malloc (sizeof(*res->val)); in gethostname_fallback()
69 if (res->val == NULL) { in gethostname_fallback()
73 res->val[0].addr_type = hostent->h_addrtype; in gethostname_fallback()
74 res->val[0].address.data = NULL; in gethostname_fallback()
75 res->val[0].address.length = 0; in gethostname_fallback()
76 ret = krb5_data_copy (&res->val[0].address, in gethostname_fallback()
80 free (res->val); in gethostname_fallback()
99 find_all_addresses (krb5_context context, krb5_addresses *res, int flags) in find_all_addresses() argument
[all …]
/freebsd-9-stable/contrib/wpa/src/tls/
Dlibtommath.c210 int olduse, res, min, max; in s_mp_add() local
227 if ((res = mp_grow (c, max + 1)) != MP_OKAY) { in s_mp_add()
228 return res; in s_mp_add()
297 int olduse, res, min, max; in s_mp_sub() local
305 if ((res = mp_grow (c, max)) != MP_OKAY) { in s_mp_sub()
306 return res; in s_mp_sub()
413 int sa, sb, res; in mp_add() local
424 res = s_mp_add (a, b, c); in mp_add()
432 res = s_mp_sub (b, a, c); in mp_add()
435 res = s_mp_sub (a, b, c); in mp_add()
[all …]
/freebsd-9-stable/usr.sbin/rpc.statd/
Dtest.c20 static struct sm_stat_res res; local
22 bzero((char *)&res, sizeof(res));
23 if (clnt_call(clnt, SM_STAT, xdr_sm_name, argp, xdr_sm_stat_res, &res, TIMEOUT) != RPC_SUCCESS) {
26 return (&res);
35 static struct sm_stat_res res; local
37 bzero((char *)&res, sizeof(res));
38 if (clnt_call(clnt, SM_MON, xdr_mon, argp, xdr_sm_stat_res, &res, TIMEOUT) != RPC_SUCCESS) {
41 return (&res);
50 static struct sm_stat res; local
52 bzero((char *)&res, sizeof(res));
[all …]
/freebsd-9-stable/usr.sbin/bootparamd/bootparamd/
Dbootparamd.c52 static bp_whoami_res res; local
78 res.client_name = hostname;
80 res.domain_name = domain_name;
82 if ( res.router_address.address_type != IP_ADDR_TYPE ) {
83 res.router_address.address_type = IP_ADDR_TYPE;
84 bcopy( &route_addr, &res.router_address.bp_address_u.ip_addr, sizeof(in_addr_t));
88 res.client_name,
89 res.domain_name,
90 255 & res.router_address.bp_address_u.ip_addr.net,
91 255 & res.router_address.bp_address_u.ip_addr.host,
[all …]
/freebsd-9-stable/usr.sbin/rpc.ypupdated/
Dypupdated_server.c97 static int res; in ypu_change_1_svc() local
101 res = 0; in ypu_change_1_svc()
107 return(&res); in ypu_change_1_svc()
113 res = localupdate(netname, "/etc/publickey", YPOP_CHANGE, in ypu_change_1_svc()
117 if (res) in ypu_change_1_svc()
118 return (&res); in ypu_change_1_svc()
120 res = ypmap_update(netname, args->mapname, YPOP_CHANGE, in ypu_change_1_svc()
124 return (&res); in ypu_change_1_svc()
131 static int res; in ypu_insert_1_svc() local
135 res = 0; in ypu_insert_1_svc()
[all …]
/freebsd-9-stable/contrib/ntp/sntp/libopts/
Dparse-duration.c176 time_t res = 0; in parse_year_month_day() local
178 res = parse_scaled_value (0, &pz, ps, SEC_PER_YEAR); in parse_year_month_day()
187 res = parse_scaled_value (res, &pz, ps, SEC_PER_MONTH); in parse_year_month_day()
191 return parse_scaled_value (res, &pz, ps, SEC_PER_DAY); in parse_year_month_day()
198 time_t res = 0; in parse_yearmonthday() local
211 res = parse_scaled_value (0, &pz, buf + 4, SEC_PER_YEAR); in parse_yearmonthday()
216 res = parse_scaled_value (res, &pz, buf + 2, SEC_PER_MONTH); in parse_yearmonthday()
221 return parse_scaled_value (res, &pz, buf + 2, SEC_PER_DAY); in parse_yearmonthday()
228 time_t res = 0; in parse_YMWD() local
232 res = parse_scaled_value (0, &pz, ps, SEC_PER_YEAR); in parse_YMWD()
[all …]

12345678910>>...53