Home
last modified time | relevance | path

Searched refs:res (Results 151 – 175 of 2447) sorted by relevance

12345678910>>...98

/freebsd/tools/test/stress2/misc/
H A Dsyzkaller7.sh111 long res = 0;
113 res = syscall(SYS_open, 0x20001180, 0x8240, 0);
114 if (res != -1)
115 r[0] = res;
116 res = syscall(SYS_socketpair, 1, 1, 0, 0x20000100);
117 if (res != -1) {
123 if (res != -1)
124 r[3] = res;
125 res = syscall(SYS_dup, r[3]);
126 if (res != -1)
[all …]
/freebsd/contrib/ntp/libntp/
H A Dsocktoa.c37 char * res; in socktoa() local
42 LIB_GETBUF(res); in socktoa()
45 strlcpy(res, "(null)", LIB_BUFLENGTH); in socktoa()
51 inet_ntop(AF_INET, PSOCK_ADDR4(sock), res, in socktoa()
59 if (0 != scope && !strchr(res, '%')) { in socktoa()
60 addr = res; in socktoa()
61 LIB_GETBUF(res); in socktoa()
62 snprintf(res, LIB_BUFLENGTH, "%s%%%lu", in socktoa()
64 res[LIB_BUFLENGTH - 1] = '\0'; in socktoa()
69 snprintf(res, LIB_BUFLENGTH, in socktoa()
[all …]
/freebsd/sys/dev/pci/
H A Dpci_host_generic.c121 if (sc->res == NULL) { in pci_host_generic_core_attach()
240 if (sc->res != NULL) in pci_host_generic_core_attach()
275 sc->ranges[tuple].res); in pci_host_generic_core_detach()
284 if (sc->res != NULL) in pci_host_generic_core_detach()
417 struct resource *res) in pci_host_generic_core_release_resource() argument
424 switch (rman_get_type(res)) { in pci_host_generic_core_release_resource()
512 struct resource *res; in pci_host_generic_core_alloc_resource() local
535 if (res == NULL) { in pci_host_generic_core_alloc_resource()
540 return (res); in pci_host_generic_core_alloc_resource()
595 switch (rman_get_type(res)) { in generic_pcie_adjust_resource()
[all …]
/freebsd/crypto/heimdal/lib/asn1/
H A Dtimegm.c58 time_t res = 0; in _der_timegm() local
81 res += is_leap(i) ? 366 : 365; in _der_timegm()
84 res += ndays[is_leap(tm->tm_year)][i]; in _der_timegm()
85 res += tm->tm_mday - 1; in _der_timegm()
86 res *= 24; in _der_timegm()
87 res += tm->tm_hour; in _der_timegm()
88 res *= 60; in _der_timegm()
89 res += tm->tm_min; in _der_timegm()
90 res *= 60; in _der_timegm()
91 res += tm->tm_sec; in _der_timegm()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/gen/posix_spawn/
H A Dh_fileactions.c51 int res = EXIT_SUCCESS; in main() local
73 res = EXIT_FAILURE; in main()
79 res = EXIT_FAILURE; in main()
85 res = EXIT_FAILURE; in main()
91 res = EXIT_FAILURE; in main()
98 res = EXIT_FAILURE; in main()
103 res = EXIT_FAILURE; in main()
108 res = EXIT_FAILURE; in main()
112 res = EXIT_FAILURE; in main()
115 return res; in main()
/freebsd/crypto/openssl/test/testutil/
H A Dprovider.c102 int res; in fips_provider_version_eq() local
105 return res == 0; in fips_provider_version_eq()
112 int res; in fips_provider_version_ne() local
115 return res == 0; in fips_provider_version_ne()
122 int res; in fips_provider_version_le() local
125 return res == 0; in fips_provider_version_le()
135 int res; in fips_provider_version_lt() local
138 return res == 0; in fips_provider_version_lt()
148 int res; in fips_provider_version_gt() local
151 return res == 0; in fips_provider_version_gt()
[all …]
/freebsd/contrib/wpa/src/utils/
H A Dcommon.c193 int res; in hwaddr_mask_txt() local
209 return res; in hwaddr_mask_txt()
768 char *res; in dup_binstr() local
778 return res; in dup_binstr()
849 int res; in freq_range_list_str() local
875 pos += res; in freq_range_list_str()
906 *res = NULL; in int_array_concat()
912 *res = NULL; in int_array_concat()
917 *res = n; in int_array_concat()
964 for (reslen = 0; *res && (*res)[reslen]; reslen++) { in int_array_add_unique()
[all …]
/freebsd/sys/dev/proto/
H A Dproto_core.c91 struct resource *res) in proto_add_resource() argument
103 r->r_d.res = res; in proto_add_resource()
179 u_int res; in proto_attach() local
185 for (res = 0; res < sc->sc_rescnt; res++) { in proto_attach()
186 r = sc->sc_res + res; in proto_attach()
227 u_int res; in proto_detach() local
238 for (res = 0; res < sc->sc_rescnt; res++) { in proto_detach()
239 r = sc->sc_res + res; in proto_detach()
245 r->r_d.res); in proto_detach()
249 r->r_d.res); in proto_detach()
[all …]
H A Dproto_bus_isa.c66 struct resource *res; in proto_isa_probe() local
71 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); in proto_isa_probe()
72 if (res == NULL) { in proto_isa_probe()
74 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); in proto_isa_probe()
76 if (res == NULL) in proto_isa_probe()
80 sbuf_printf(sb, "%s:%#jx", proto_isa_prefix, rman_get_start(res)); in proto_isa_probe()
84 bus_release_resource(dev, type, rid, res); in proto_isa_probe()
91 struct resource *res; in proto_isa_alloc() local
98 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); in proto_isa_alloc()
99 if (res == NULL) in proto_isa_alloc()
[all …]
/freebsd/sbin/ipf/libipf/
H A Dnametokva.c18 ipfunc_resolve_t res; in nametokva() local
21 strncpy(res.ipfu_name, name, sizeof(res.ipfu_name)); in nametokva()
22 res.ipfu_addr = NULL; in nametokva()
30 (void) (*iocfunc)(fd, SIOCFUNCL, &res); in nametokva()
33 if (res.ipfu_addr == NULL) in nametokva()
34 res.ipfu_addr = (ipfunc_t)-1; in nametokva()
35 return (res.ipfu_addr); in nametokva()
/freebsd/contrib/bsnmp/lib/
H A Dsupport.c130 struct addrinfo **res) in getaddrinfo() argument
143 if ((*res = malloc(sizeof(**res))) == NULL) in getaddrinfo()
146 (*res)->ai_flags = hints->ai_flags; in getaddrinfo()
147 (*res)->ai_family = hints->ai_family; in getaddrinfo()
148 (*res)->ai_socktype = hints->ai_socktype; in getaddrinfo()
149 (*res)->ai_protocol = hints->ai_protocol; in getaddrinfo()
150 (*res)->ai_next = NULL; in getaddrinfo()
153 freeaddrinfo(*res); in getaddrinfo()
156 (*res)->ai_addrlen = sizeof(struct sockaddr_in); in getaddrinfo()
157 s = (struct sockaddr_in *)(*res)->ai_addr; in getaddrinfo()
[all …]
/freebsd/usr.bin/gzip/
H A Dunzstd.c37 ssize_t res; in unzstd() local
63 res = read(in, ibuf, BUFLEN); in unzstd()
64 if (res < 0) in unzstd()
66 if (res == 0) in unzstd()
68 infile_newdata(res); in unzstd()
70 zib.size = res; in unzstd()
73 *bytes_in += res; in unzstd()
80 res = write(out, obuf, zob.pos); in unzstd()
81 if (res < 0) in unzstd()
84 bytes_out += res; in unzstd()
/freebsd/sys/dev/ata/chipsets/
H A Data-acerlabs.c125 if (res->bars[i] == NULL) { in ata_ali_chipinit()
130 free(res, M_ATAPCI); in ata_ali_chipinit()
134 ctlr->chipset_data = res; in ata_ali_chipinit()
178 res = ctlr->chipset_data; in ata_ali_chipdeinit()
185 free(res, M_ATAPCI); in ata_ali_chipdeinit()
226 res = ctlr->chipset_data; in ata_ali_sata_ch_attach()
228 io = res->bars[2]; in ata_ali_sata_ch_attach()
229 ctlio = res->bars[3]; in ata_ali_sata_ch_attach()
231 io = res->bars[0]; in ata_ali_sata_ch_attach()
232 ctlio = res->bars[1]; in ata_ali_sata_ch_attach()
[all …]
/freebsd/sys/dev/dpaa/
H A Dfman.c103 rman_get_start(res) - in fman_activate_resource()
108 rman_set_bustag(res, bt); in fman_activate_resource()
138 rman_get_rid(res)); in fman_release_resource()
141 KASSERT(rle->res != NULL, in fman_release_resource()
143 rle->res = NULL; in fman_release_resource()
157 struct resource *res; in fman_alloc_resource() local
172 KASSERT(rle->res == NULL, in fman_alloc_resource()
181 res = NULL; in fman_alloc_resource()
190 if (res == NULL) in fman_alloc_resource()
203 rle->res = res; in fman_alloc_resource()
[all …]
/freebsd/usr.sbin/nscd/
H A Dagent.c41 int res; in agent_cmp_func() local
43 res = strcmp(ap1->name, ap2->name); in agent_cmp_func()
44 if (res == 0) { in agent_cmp_func()
46 res = 0; in agent_cmp_func()
48 res = -1; in agent_cmp_func()
50 res = 1; in agent_cmp_func()
53 return (res); in agent_cmp_func()
96 struct agent **res; in find_agent() local
103 res = bsearch(&model_p, at->agents, at->agents_num, in find_agent()
107 return ( res == NULL ? NULL : *res); in find_agent()
/freebsd/contrib/unbound/libunbound/
H A Dcontext.c124 ub_resolve_free(q->res); in context_query_delete()
164 q->res = (struct ub_result*)calloc(1, sizeof(*q->res)); in context_new()
165 if(!q->res) { in context_new()
170 if(!q->res->qname) { in context_new()
171 free(q->res); in context_new()
175 q->res->qtype = rrtype; in context_new()
265 q->res = (struct ub_result*)calloc(1, sizeof(*q->res)); in context_deserialize_new_query()
266 if(!q->res) { in context_deserialize_new_query()
273 if(!q->res->qname) { in context_deserialize_new_query()
274 free(q->res); in context_deserialize_new_query()
[all …]
/freebsd/contrib/sendmail/libsm/
H A Dt-fget.c66 char res[256]; local
75 l = snprintf(res, sizeof(res), "%c%s\n", '\0', "test ing");
76 check(res, l);
78 l = snprintf(res, sizeof(res), "%c%s%c\n", '\0', "test ing", '\0');
79 check(res, l);
81 l = snprintf(res, sizeof(res), "%c%s%c%s\n",
83 check(res, l);
/freebsd/sys/libkern/
H A Dmurmur3_32.c47 size_t res; in murmur3_32_hash() local
51 res = len; in murmur3_32_hash()
55 while (res >= 4) { in murmur3_32_hash()
59 res -= 4; in murmur3_32_hash()
71 if (res > 0) { in murmur3_32_hash()
73 switch (res) { in murmur3_32_hash()
107 size_t res; in murmur3_32_hash32() local
110 for (res = count, hash = seed; res > 0; res--, data++) { in murmur3_32_hash32()
/freebsd/contrib/tcp_wrappers/
H A Dtcpdmatch.c59 struct addrinfo hints, *hp, *res; local
189 for (res = hp, count = 0; res; res = res->ai_next, count++) {
190 memcpy(&server_sin, res->ai_addr, res->ai_addrlen);
234 if (getaddrinfo(client, NULL, &hints, &res) == 0) {
235 freeaddrinfo(res);
265 for (res = hp, count = 0; res; res = res->ai_next, count++) {
266 memcpy(&client_sin, res->ai_addr, res->ai_addrlen);
273 if (res->ai_family != AF_INET6 ||
274 !IN6_IS_ADDR_LINKLOCAL(&((struct sockaddr_in6 *)res->ai_addr)->sin6_addr)) {
285 if (res->ai_next)
/freebsd/contrib/ncurses/form/
H A Dfld_opts.c57 int res = E_BAD_ARGUMENT; in FORM_EXPORT() local
63 res = _nc_Synchronize_Options(Normalize_Field(field), opts); in FORM_EXPORT()
64 RETURN(res); in FORM_EXPORT()
98 int res = E_BAD_ARGUMENT; in field_opts_on() local
106 res = _nc_Synchronize_Options(field, field->opts | opts); in field_opts_on()
108 RETURN(res); in field_opts_on()
126 int res = E_BAD_ARGUMENT; in field_opts_off() local
134 res = _nc_Synchronize_Options(field, field->opts & ~opts); in field_opts_off()
136 RETURN(res); in field_opts_off()
/freebsd/usr.sbin/bootparamd/callbootd/
H A Dcallbootd.c158 printwhoami(bp_whoami_res *res) in printwhoami() argument
160 if ( res) { in printwhoami()
162 res->client_name, res->domain_name); in printwhoami()
164 255 & res->router_address.bp_address_u.ip_addr.net, in printwhoami()
165 255 & res->router_address.bp_address_u.ip_addr.host, in printwhoami()
166 255 & res->router_address.bp_address_u.ip_addr.lh, in printwhoami()
167 255 & res->router_address.bp_address_u.ip_addr.impno); in printwhoami()
179 printgetfile(bp_getfile_res *res) in printgetfile() argument
181 if (res) { in printgetfile()
183 res->server_name, in printgetfile()
[all …]
/freebsd/bin/dd/
H A Dargs.c184 uintmax_t res; in f_bs() local
187 if (res < 1 || res > SSIZE_MAX) in f_bs()
195 uintmax_t res; in f_cbs() local
198 if (res < 1 || res > SSIZE_MAX) in f_cbs()
206 uintmax_t res; in f_count() local
211 if (res == 0) in f_count()
214 cpy_cnt = res; in f_count()
239 uintmax_t res; in f_ibs() local
243 if (res < 1 || res > SSIZE_MAX) in f_ibs()
293 uintmax_t res; in f_obs() local
[all …]
/freebsd/tests/sys/file/
H A Dflock_helper.c189 int res; in test2() local
260 int res; in test3() local
415 int res; in test5() local
501 int res; in test6() local
604 int res; in test7() local
676 int res; in test8() local
753 int res; in test9() local
892 int res; in test11() local
978 int res; in test12() local
1056 int res; in test13() local
[all …]
/freebsd/contrib/netbsd-tests/net/bpf/
H A Dh_bpf.h87 unsigned int res; in exec_prog() local
97 res = fn(NULL, &args); in exec_prog()
103 return res; in exec_prog()
116 unsigned int res; in interp_prog_mchain2() local
127 return res; in interp_prog_mchain2()
140 unsigned int res; in exec_prog_mchain2() local
150 res = fn(NULL, &args); in exec_prog_mchain2()
156 return res; in exec_prog_mchain2()
162 bool res; in prog_validate() local
165 res = rumpns_bpf_validate(insns, insn_count); in prog_validate()
[all …]
/freebsd/sys/dev/bhnd/bhndb/
H A Dbhndb_pci_hwdata.c99 .res = { SYS_RES_MEMORY, PCIR_BAR(0) }
132 .res = { SYS_RES_MEMORY, PCIR_BAR(0) }
147 .res = { SYS_RES_MEMORY, PCIR_BAR(0) }
298 .res = { SYS_RES_MEMORY, PCIR_BAR(0) }
306 .res = { SYS_RES_MEMORY, PCIR_BAR(0) }
327 .res = { SYS_RES_MEMORY, PCIR_BAR(0) }
343 .res = { SYS_RES_MEMORY, PCIR_BAR(0) }
380 .res = { SYS_RES_MEMORY, PCIR_BAR(0) }
388 .res = { SYS_RES_MEMORY, PCIR_BAR(0) }
403 .res = { SYS_RES_MEMORY, PCIR_BAR(0) }
[all …]

12345678910>>...98