Home
last modified time | relevance | path

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

12345678910>>...87

/freebsd-12-stable/contrib/llvm-project/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h25 #define __sanitizer_syscall_post_time(res, tloc) \ argument
26 __sanitizer_syscall_post_impl_time(res, (long)(tloc))
29 #define __sanitizer_syscall_post_stime(res, tptr) \ argument
30 __sanitizer_syscall_post_impl_stime(res, (long)(tptr))
33 #define __sanitizer_syscall_post_gettimeofday(res, tv, tz) \ argument
34 __sanitizer_syscall_post_impl_gettimeofday(res, (long)(tv), (long)(tz))
37 #define __sanitizer_syscall_post_settimeofday(res, tv, tz) \ argument
38 __sanitizer_syscall_post_impl_settimeofday(res, (long)(tv), (long)(tz))
41 #define __sanitizer_syscall_post_adjtimex(res, txc_p) \ argument
42 __sanitizer_syscall_post_impl_adjtimex(res, (long)(txc_p))
[all …]
Dnetbsd_syscall_hooks.h36 #define __sanitizer_syscall_post_syscall(res, code, arg0, arg1, arg2, arg3, \ argument
39 res, (long long)(code), (long long)(arg0), (long long)(arg1), \
44 #define __sanitizer_syscall_post_exit(res, rval) \ argument
45 __sanitizer_syscall_post_impl_exit(res, (long long)(rval))
47 #define __sanitizer_syscall_post_fork(res) \ argument
48 __sanitizer_syscall_post_impl_fork(res)
52 #define __sanitizer_syscall_post_read(res, fd, buf, nbyte) \ argument
53 __sanitizer_syscall_post_impl_read(res, (long long)(fd), (long long)(buf), \
58 #define __sanitizer_syscall_post_write(res, fd, buf, nbyte) \ argument
59 __sanitizer_syscall_post_impl_write(res, (long long)(fd), (long long)(buf), \
[all …]
/freebsd-12-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 …]
/freebsd-12-stable/contrib/amd/amq/
Damq_clnt.c53 static char res; in amqproc_null_1() local
55 memset((char *) &res, 0, sizeof(res)); in amqproc_null_1()
58 (XDRPROC_T_TYPE) xdr_void, &res, TIMEOUT) in amqproc_null_1()
62 return ((voidp) &res); in amqproc_null_1()
69 static amq_mount_tree_p res; in amqproc_mnttree_1() local
71 memset((char *) &res, 0, sizeof(res)); in amqproc_mnttree_1()
74 (XDRPROC_T_TYPE) xdr_amq_mount_tree_p, (SVC_IN_ARG_TYPE) &res, in amqproc_mnttree_1()
78 return (&res); in amqproc_mnttree_1()
85 static char res; in amqproc_umnt_1() local
87 memset((char *) &res, 0, sizeof(res)); in amqproc_umnt_1()
[all …]
/freebsd-12-stable/contrib/ntp/libntp/
Dvint64ops.c29 vint64 res; in strtouv64() local
59 memset(&res, 0xFF, sizeof(res)); in strtouv64()
61 return res; in strtouv64()
64 memset(&res, 0, sizeof(res)); in strtouv64()
78 res.Q_s = res.Q_s * base + digit; in strtouv64()
85 accu = (uint32_t)res.W_s.ll * base; in strtouv64()
86 res.W_s.ll = (uint16_t)accu; in strtouv64()
88 + (uint32_t)res.W_s.lh * base; in strtouv64()
89 res.W_s.lh = (uint16_t)accu; in strtouv64()
91 res.D_s.hi = res.D_s.hi * base + (accu >> 16); in strtouv64()
[all …]
/freebsd-12-stable/contrib/ntp/ntpd/
Dntp_restrict.c127 restrict_u * res, in dump_restrict() argument
135 inet_ntop(AF_INET6, &res->u.v6.addr, as, sizeof as); in dump_restrict()
136 inet_ntop(AF_INET6, &res->u.v6.mask, ms, sizeof ms); in dump_restrict()
138 struct in_addr sia = { htonl(res->u.v4.addr) }; in dump_restrict()
139 struct in_addr sim = { htonl(res->u.v4.mask) }; in dump_restrict()
145 res, as, ms, res->count, res->rflags, res->mflags, in dump_restrict()
146 res->ippeerlimit, res->expire, res->link); in dump_restrict()
157 restrict_u * res; in dump_restricts() local
162 for (res = &restrict_def4; res != NULL; res = next) { in dump_restricts()
163 dump_restrict(res, 0); in dump_restricts()
[all …]
/freebsd-12-stable/contrib/amd/hlfsd/
Dstubs.c90 static char res; in nfsproc_null_2_svc() local
92 return (voidp) &res; in nfsproc_null_2_svc()
107 static nfsattrstat res; in nfsproc_getattr_2_svc() local
122 res.ns_status = NFSERR_STALE; in nfsproc_getattr_2_svc()
123 return &res; in nfsproc_getattr_2_svc()
137 res.ns_status = NFS_OK; in nfsproc_getattr_2_svc()
138 res.ns_u.ns_attr_u = rootfattr; in nfsproc_getattr_2_svc()
157 res.ns_status = NFS_OK; in nfsproc_getattr_2_svc()
158 res.ns_u.ns_attr_u = slinkfattr; in nfsproc_getattr_2_svc()
161 res.ns_status = NFSERR_STALE; in nfsproc_getattr_2_svc()
[all …]
/freebsd-12-stable/contrib/libarchive/libarchive/
Darchive_entry_link_resolver.c102 struct archive_entry_linkresolver *res; in archive_entry_linkresolver_new() local
109 res = calloc(1, sizeof(struct archive_entry_linkresolver)); in archive_entry_linkresolver_new()
110 if (res == NULL) in archive_entry_linkresolver_new()
112 res->number_buckets = links_cache_initial_size; in archive_entry_linkresolver_new()
113 res->buckets = calloc(res->number_buckets, sizeof(res->buckets[0])); in archive_entry_linkresolver_new()
114 if (res->buckets == NULL) { in archive_entry_linkresolver_new()
115 free(res); in archive_entry_linkresolver_new()
118 return (res); in archive_entry_linkresolver_new()
122 archive_entry_linkresolver_set_strategy(struct archive_entry_linkresolver *res, in archive_entry_linkresolver_set_strategy() argument
131 res->strategy = ARCHIVE_ENTRY_LINKIFY_LIKE_OLD_CPIO; in archive_entry_linkresolver_set_strategy()
[all …]
/freebsd-12-stable/sbin/hastd/
Dcontrol.c59 child_cleanup(struct hast_resource *res) in child_cleanup() argument
62 proto_close(res->hr_ctrl); in child_cleanup()
63 res->hr_ctrl = NULL; in child_cleanup()
64 if (res->hr_event != NULL) { in child_cleanup()
65 proto_close(res->hr_event); in child_cleanup()
66 res->hr_event = NULL; in child_cleanup()
68 if (res->hr_conn != NULL) { in child_cleanup()
69 proto_close(res->hr_conn); in child_cleanup()
70 res->hr_conn = NULL; in child_cleanup()
72 res->hr_workerpid = 0; in child_cleanup()
[all …]
Dsecondary.c212 init_local(struct hast_resource *res) in init_local() argument
215 if (metadata_read(res, true) == -1) in init_local()
220 init_remote(struct hast_resource *res, struct nv *nvin) in init_remote() argument
229 if (proto_send(res->hr_remoteout, NULL, 0) == -1) in init_remote()
234 nv_add_int64(nvout, (int64_t)res->hr_datasize, "datasize"); in init_remote()
235 nv_add_int32(nvout, (int32_t)res->hr_extentsize, "extentsize"); in init_remote()
237 res->hr_primary_localcnt = nv_get_uint64(nvin, "localcnt"); in init_remote()
238 res->hr_primary_remotecnt = nv_get_uint64(nvin, "remotecnt"); in init_remote()
239 nv_add_uint64(nvout, res->hr_secondary_localcnt, "localcnt"); in init_remote()
240 nv_add_uint64(nvout, res->hr_secondary_remotecnt, "remotecnt"); in init_remote()
[all …]
Dprimary.c181 #define ISCONNECTED(res, no) \ argument
182 ((res)->hr_remotein != NULL && (res)->hr_remoteout != NULL)
283 cleanup(struct hast_resource *res) in cleanup() argument
291 if (res->hr_ggateunit >= 0) { in cleanup()
296 ggiod.gctl_unit = res->hr_ggateunit; in cleanup()
298 if (ioctl(res->hr_ggatefd, G_GATE_CMD_DESTROY, &ggiod) == -1) { in cleanup()
301 res->hr_provname); in cleanup()
303 res->hr_ggateunit = -1; in cleanup()
336 hast_activemap_flush(struct hast_resource *res) __unlocks(res->hr_amp_lock) in hast_activemap_flush() argument
342 mtx_lock(&res->hr_amp_diskmap_lock); in hast_activemap_flush()
[all …]
Dmetadata.c49 metadata_read(struct hast_resource *res, bool openrw) in metadata_read() argument
65 if (res->hr_localfd == -1) { in metadata_read()
66 if (provinfo(res, openrw) == -1) { in metadata_read()
71 pjdlog_debug(1, "Obtained info about %s.", res->hr_localpath); in metadata_read()
73 if (flock(res->hr_localfd, LOCK_EX | LOCK_NB) == -1) { in metadata_read()
77 res->hr_localpath); in metadata_read()
81 res->hr_localpath); in metadata_read()
85 pjdlog_debug(1, "Locked %s.", res->hr_localpath); in metadata_read()
105 done = pread(res->hr_localfd, buf, METADATA_SIZE, 0); in metadata_read()
116 res->hr_localpath); in metadata_read()
[all …]
/freebsd-12-stable/contrib/apr-util/dbd/
Dapr_dbd_pgsql.c52 PGresult *res; member
61 apr_dbd_results_t *res; member
86 PGresult *res; in dbd_pgsql_select() local
93 PGresult *res = PQexec(sql->conn, "SAVEPOINT APR_DBD_TXN_SP"); in dbd_pgsql_select() local
94 if (res) { in dbd_pgsql_select()
95 int ret = PQresultStatus(res); in dbd_pgsql_select()
96 PQclear(res); in dbd_pgsql_select()
105 res = PQexec(sql->conn, query); in dbd_pgsql_select()
106 if (res) { in dbd_pgsql_select()
107 ret = PQresultStatus(res); in dbd_pgsql_select()
[all …]
/freebsd-12-stable/sys/contrib/libsodium/test/default/
DMakefile.am81 aead_aes256gcm.res \
82 aead_chacha20poly1305.res \
83 aead_xchacha20poly1305.res \
84 auth.res \
85 auth2.res \
86 auth3.res \
87 auth5.res \
88 auth6.res \
89 auth7.res \
90 box.res \
[all …]
/freebsd-12-stable/contrib/bc/tests/
Dbcl.c56 char* res; in main() local
123 res = bcl_string(bcl_dup(n3)); in main()
124 if (strcmp(res, "-25452.9108273")) err(BCL_ERROR_FATAL_UNKNOWN_ERR); in main()
128 free(res); in main()
136 res = bcl_string(n5); in main()
138 if (strcmp(res, "-351137.0060159482")) in main()
141 free(res); in main()
143 res = bcl_string(n6); in main()
145 if (strcmp(res, ".00000152374405414")) in main()
148 free(res); in main()
[all …]
/freebsd-12-stable/contrib/netbsd-tests/fs/common/
Dfstest_ext2fs.c59 int res; in ext2fs_fstest_newfs() local
66 res = system(cmd); in ext2fs_fstest_newfs()
67 if (res != 0) in ext2fs_fstest_newfs()
68 return res; in ext2fs_fstest_newfs()
70 res = rump_init(); in ext2fs_fstest_newfs()
71 if (res != 0) in ext2fs_fstest_newfs()
72 return res; in ext2fs_fstest_newfs()
82 res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK); in ext2fs_fstest_newfs()
83 if (res != 0) { in ext2fs_fstest_newfs()
85 return res; in ext2fs_fstest_newfs()
[all …]
Dfstest_v7fs.c59 int res; in v7fs_fstest_newfs() local
66 res = system(cmd); in v7fs_fstest_newfs()
67 if (res != 0) in v7fs_fstest_newfs()
68 return res; in v7fs_fstest_newfs()
70 res = rump_init(); in v7fs_fstest_newfs()
71 if (res != 0) in v7fs_fstest_newfs()
72 return res; in v7fs_fstest_newfs()
83 res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK); in v7fs_fstest_newfs()
84 if (res != 0) { in v7fs_fstest_newfs()
86 return res; in v7fs_fstest_newfs()
[all …]
Dfstest_sysvbfs.c59 int res; in sysvbfs_fstest_newfs() local
66 res = system(cmd); in sysvbfs_fstest_newfs()
67 if (res != 0) in sysvbfs_fstest_newfs()
68 return res; in sysvbfs_fstest_newfs()
70 res = rump_init(); in sysvbfs_fstest_newfs()
71 if (res != 0) in sysvbfs_fstest_newfs()
72 return res; in sysvbfs_fstest_newfs()
82 res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK); in sysvbfs_fstest_newfs()
83 if (res != 0) { in sysvbfs_fstest_newfs()
85 return res; in sysvbfs_fstest_newfs()
[all …]
Dfstest_msdosfs.c59 int res; in msdosfs_fstest_newfs() local
66 res = system(cmd); in msdosfs_fstest_newfs()
67 if (res != 0) in msdosfs_fstest_newfs()
68 return res; in msdosfs_fstest_newfs()
70 res = rump_init(); in msdosfs_fstest_newfs()
71 if (res != 0) in msdosfs_fstest_newfs()
72 return res; in msdosfs_fstest_newfs()
83 res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK); in msdosfs_fstest_newfs()
84 if (res != 0) { in msdosfs_fstest_newfs()
86 return res; in msdosfs_fstest_newfs()
[all …]
Dfstest_lfs.c66 int res; in lfs_fstest_newfs() local
73 res = system(cmd); in lfs_fstest_newfs()
74 if (res != 0) in lfs_fstest_newfs()
75 return res; in lfs_fstest_newfs()
77 res = rump_init(); in lfs_fstest_newfs()
78 if (res != 0) in lfs_fstest_newfs()
79 return res; in lfs_fstest_newfs()
91 res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK); in lfs_fstest_newfs()
92 if (res != 0) { in lfs_fstest_newfs()
94 return res; in lfs_fstest_newfs()
[all …]
Dfstest_udf.c60 int res; in udf_fstest_newfs() local
73 res = system(cmd); in udf_fstest_newfs()
75 if (res != 0) in udf_fstest_newfs()
76 return res; in udf_fstest_newfs()
78 res = rump_init(); in udf_fstest_newfs()
79 if (res != 0) in udf_fstest_newfs()
80 return res; in udf_fstest_newfs()
91 res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK); in udf_fstest_newfs()
92 if (res != 0) { in udf_fstest_newfs()
94 return res; in udf_fstest_newfs()
[all …]
/freebsd-12-stable/usr.sbin/bsnmpd/modules/snmp_hast/
Dhast_snmp.c158 struct hast_snmp_resource *res; in free_resources() local
160 while ((res = TAILQ_FIRST(&resources)) != NULL) { in free_resources()
161 TAILQ_REMOVE(&resources, res, link); in free_resources()
162 free(res); in free_resources()
275 struct hast_snmp_resource *res; in update_resources() local
302 res = calloc(1, sizeof(*res)); in update_resources()
303 if (res == NULL) { in update_resources()
305 "resource", sizeof(*res)); in update_resources()
308 res->index = i + 1; in update_resources()
309 strncpy(res->name, str, sizeof(res->name) - 1); in update_resources()
[all …]
/freebsd-12-stable/sys/dev/ncv/
Dncr53c500.c160 ncvhw_select_register_0(struct resource *res, struct ncv_hw *hw) in ncvhw_select_register_0() argument
163 bus_write_1(res, cr0_cfg4, hw->hw_cfg4); in ncvhw_select_register_0()
167 ncvhw_select_register_1(struct resource *res, struct ncv_hw *hw) in ncvhw_select_register_1() argument
170 bus_write_1(res, cr1_cfg5, hw->hw_cfg5); in ncvhw_select_register_1()
174 ncvhw_fpush(struct resource *res, u_int8_t *buf, int len) in ncvhw_fpush() argument
179 bus_write_1(res, cr0_sfifo, buf[ptr]); in ncvhw_fpush()
183 ncvhw_set_count(struct resource *res, int count) in ncvhw_set_count() argument
186 bus_write_1(res, cr0_tclsb, (u_int8_t) count); in ncvhw_set_count()
187 bus_write_1(res, cr0_tcmsb, (u_int8_t) (count >> NBBY)); in ncvhw_set_count()
188 bus_write_1(res, cr0_tchsb, (u_int8_t) (count >> (NBBY * 2))); in ncvhw_set_count()
[all …]
/freebsd-12-stable/crypto/heimdal/lib/roken/
Dcopyhostent.c45 struct hostent *res; in copyhostent() local
49 res = malloc (sizeof (*res)); in copyhostent()
50 if (res == NULL) in copyhostent()
52 res->h_name = NULL; in copyhostent()
53 res->h_aliases = NULL; in copyhostent()
54 res->h_addrtype = h->h_addrtype; in copyhostent()
55 res->h_length = h->h_length; in copyhostent()
56 res->h_addr_list = NULL; in copyhostent()
57 res->h_name = strdup (h->h_name); in copyhostent()
58 if (res->h_name == NULL) { in copyhostent()
[all …]
/freebsd-12-stable/sys/dev/acpica/
Dacpi_resource.c68 acpi_lookup_irq_handler(ACPI_RESOURCE *res, void *context) in acpi_lookup_irq_handler() argument
74 switch (res->Type) { in acpi_lookup_irq_handler()
76 irqnum = res->Data.Irq.InterruptCount; in acpi_lookup_irq_handler()
77 irq = res->Data.Irq.Interrupts[0]; in acpi_lookup_irq_handler()
79 trig = res->Data.Irq.Triggering; in acpi_lookup_irq_handler()
80 pol = res->Data.Irq.Polarity; in acpi_lookup_irq_handler()
83 irqnum = res->Data.ExtendedIrq.InterruptCount; in acpi_lookup_irq_handler()
84 irq = res->Data.ExtendedIrq.Interrupts[0]; in acpi_lookup_irq_handler()
86 trig = res->Data.ExtendedIrq.Triggering; in acpi_lookup_irq_handler()
87 pol = res->Data.ExtendedIrq.Polarity; in acpi_lookup_irq_handler()
[all …]

12345678910>>...87