/openbsd/usr.sbin/eigrpctl/ |
H A D | parser.c | 233 memset(&res, 0, sizeof(res)); in parse() 256 return (&res); in parse() 282 res->action = t->value; in match_token() 290 res->flags |= t->value; in match_token() 300 res->family = AF_INET; in match_token() 306 res->family = AF_INET6; in match_token() 316 if (parse_addr(word, &res->family, &res->addr)) { in match_token() 320 res->action = t->value; in match_token() 324 if (parse_prefix(word, &res->family, &res->addr, in match_token() 325 &res->prefixlen)) { in match_token() [all …]
|
/openbsd/bin/pax/ |
H A D | file_subs.c | 129 int res = 0; in file_close() local 172 int res; in lnk_creat() local 191 if (res == 0) { in lnk_creat() 195 if (res < 0) { in lnk_creat() 201 return (res); in lnk_creat() 351 int res; in node_creat() local 386 res = -1; in node_creat() 397 res = 0; in node_creat() 453 if (res == 0) in node_creat() 478 res = 0; in node_creat() [all …]
|
/openbsd/usr.sbin/ldpctl/ |
H A D | parser.c | 191 memset(&res, 0, sizeof(res)); in parse() 214 return (&res); in parse() 219 struct parse_result *res) in match_token() argument 240 res->action = t->value; in match_token() 248 res->flags |= t->value; in match_token() 258 res->family = AF_INET; in match_token() 264 res->family = AF_INET6; in match_token() 268 if (parse_addr(word, &res->family, &res->addr)) { in match_token() 272 res->action = t->value; in match_token() 279 sizeof(res->ifname)) in match_token() [all …]
|
/openbsd/usr.sbin/smtpd/ |
H A D | rfc5322.c | 118 _rfc5322_next(struct rfc5322_parser *parser, struct rfc5322_result *res) in _rfc5322_next() argument 129 res->hdr = parser->hdr.buf; in _rfc5322_next() 139 res->value = line; in _rfc5322_next() 146 res->value = parser->val.buf; in _rfc5322_next() 163 res->hdr = parser->hdr.buf; in _rfc5322_next() 164 res->value = pos + 1; in _rfc5322_next() 177 res->value = line; in _rfc5322_next() 191 res->value = line; in _rfc5322_next() 205 rfc5322_next(struct rfc5322_parser *parser, struct rfc5322_result *res) in rfc5322_next() argument 207 memset(res, 0, sizeof(*res)); in rfc5322_next() [all …]
|
/openbsd/gnu/usr.bin/perl/cpan/Test-Simple/t/Legacy/Test2/ |
H A D | Subtest.t | 7 my $res = intercept { 13 is(@$res, 2, "2 results"); 15 isa_ok($res->[0], 'Test2::Event::Note'); 16 is($res->[0]->message, 'Subtest: foo', "got subtest note"); 18 isa_ok($res->[1], 'Test2::Event::Subtest'); 19 ok($res->[1]->pass, "subtest passed"); 21 my $subs = $res->[1]->subevents;
|
/openbsd/lib/libcurses/base/ |
H A D | lib_beep.c | 65 int res = ERR; in NCURSES_EXPORT() local 71 res = CallDriver_1(SP_PARM, td_doBeepOrFlash, TRUE); in NCURSES_EXPORT() 75 res = ERR; in NCURSES_EXPORT() 77 res = NCURSES_PUTP2_FLUSH("bell", bell); in NCURSES_EXPORT() 79 res = NCURSES_PUTP2_FLUSH("flash_screen", flash_screen); in NCURSES_EXPORT() 84 returnCode(res); in NCURSES_EXPORT()
|
/openbsd/sys/dev/acpi/ |
H A D | acpitoshiba.c | 235 struct aml_value res; in toshiba_read_events() local 239 bzero(&res, sizeof(res)); in toshiba_read_events() 248 i, args, &res)) { in toshiba_read_events() 258 aml_freevalue(&res); in toshiba_read_events() 428 struct aml_value res; in toshiba_get_brightness() local 432 bzero(&res, sizeof(res)); in toshiba_get_brightness() 441 i, args, &res)) { in toshiba_get_brightness() 454 aml_freevalue(&res); in toshiba_get_brightness() 466 bzero(&res, sizeof(res)); in toshiba_get_video_output() 475 i, args, &res)) { in toshiba_get_video_output() [all …]
|
H A D | acpivout.c | 161 struct aml_value res; in acpivout_get_brightness() local 165 level = aml_val2int(&res); in acpivout_get_brightness() 166 aml_freevalue(&res); in acpivout_get_brightness() 216 struct aml_value args, res; in acpivout_set_brightness() local 225 aml_freevalue(&res); in acpivout_set_brightness() 232 struct aml_value res; in acpivout_get_bcl() local 236 if (res.type != AML_OBJTYPE_PACKAGE) { in acpivout_get_bcl() 248 if (res.length <= 2) { in acpivout_get_bcl() 252 sc->sc_bcl_len = res.length - 2; in acpivout_get_bcl() 259 value = aml_val2int(res.v_package[i + 2]); in acpivout_get_bcl() [all …]
|
/openbsd/lib/libm/src/ |
H A D | s_lround.c | 52 RESTYPE res; in LROUNDNAME() local 79 res = (shift < RESTYPE_BITS ? (RESTYPE)i1 << shift : 0); in LROUNDNAME() 81 res = (shift > -RESTYPE_BITS ? (RESTYPE)i1 >> -shift : 0); in LROUNDNAME() 84 res |= (shift < RESTYPE_BITS ? (RESTYPE)i0 << shift : 0); in LROUNDNAME() 86 res |= (shift > -RESTYPE_BITS ? (RESTYPE)i0 >> -shift : 0); in LROUNDNAME() 88 return (s ? -res : res); in LROUNDNAME()
|
/openbsd/sbin/ldattach/ |
H A D | atomicio.c | 48 ssize_t res; in atomicio() local 54 res = (f) (fd, s + pos, n - pos); in atomicio() 55 switch (res) { in atomicio() 68 pos += (size_t)res; in atomicio() 82 ssize_t res; in atomiciov() local 96 res = (f) (fd, iov, iovcnt); in atomiciov() 97 switch (res) { in atomiciov() 110 rem = (size_t)res; in atomiciov()
|
/openbsd/gnu/gcc/gcc/ |
H A D | prefix.c | 139 LONG res; in lookup_key() local 143 res = RegOpenKeyExA (HKEY_LOCAL_MACHINE, "SOFTWARE", 0, in lookup_key() 146 if (res == ERROR_SUCCESS) in lookup_key() 147 res = RegOpenKeyExA (reg_key, "Free Software Foundation", 0, in lookup_key() 150 if (res == ERROR_SUCCESS) in lookup_key() 151 res = RegOpenKeyExA (reg_key, WIN32_REGISTRY_KEY, 0, in lookup_key() 154 if (res != ERROR_SUCCESS) in lookup_key() 164 res = RegQueryValueExA (reg_key, key, 0, &type, (LPBYTE) dst, &size); in lookup_key() 165 if (res == ERROR_MORE_DATA && type == REG_SZ) in lookup_key() 168 res = RegQueryValueExA (reg_key, key, 0, &type, (LPBYTE) dst, &size); in lookup_key() [all …]
|
/openbsd/usr.sbin/wsfontload/ |
H A D | wsfontload.c | 80 int c, res, wsfd, ffd, list, i; in main() local 148 res = ioctl(wsfd, WSDISPLAYIO_LSFONT, &f); in main() 149 if (res == 0) { in main() 163 } while(res == 0); in main() 182 res = ioctl(wsfd, WSDISPLAYIO_GETSCREENTYPE, &screens); in main() 183 if (res == 0) { in main() 226 res = read(ffd, buf, len); in main() 227 if (res == -1) in main() 229 if (res != len) in main() 234 res = ioctl(wsfd, WSDISPLAYIO_LDFONT, &f); in main() [all …]
|
/openbsd/gnu/usr.bin/gcc/gcc/config/sh/ |
H A D | sshmedia.h | 38 unsigned long long res; in sh_media_GETCON() local 39 __asm__ __volatile__ ("getcon cr%1, %0" : "=r" (res) : "n" (k)); in sh_media_GETCON() 40 return res; in sh_media_GETCON() 54 unsigned long long res; in sh_media_GETCFG() local 55 __asm__ __volatile__ ("getcfg %1, %2, %0" : "=r" (res) : "r" (mm), "n" (s)); in sh_media_GETCFG() 56 return res; in sh_media_GETCFG()
|
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/ |
H A D | complex-6.c | 13 __complex__ TYPE res; \ 15 res = ~x; \ 17 return res; \ 23 __complex__ TYPE res, x; \ 27 res = ctest_ ## FUNC (x); \ 29 if (res != 1.0 - 2.0i) \
|
/openbsd/usr.sbin/acme-client/ |
H A D | dnsproc.c | 56 struct addrinfo hints, *res0, *res; in host_dns() local 82 for (vecsz = 0, res = res0; in host_dns() 83 res != NULL && vecsz < MAX_SERVERS_DNS; in host_dns() 84 res = res->ai_next) { in host_dns() 85 if (res->ai_family != AF_INET && in host_dns() 86 res->ai_family != AF_INET6) in host_dns() 89 sa = res->ai_addr; in host_dns() 91 if (res->ai_family == AF_INET) { in host_dns()
|
/openbsd/gnu/llvm/llvm/utils/rsp_bisect_test/ |
H A D | test.py | 27 res = subprocess.run(args, capture_output=True, encoding='UTF-8') 29 print('Ran {} with return code {}'.format(args, res.returncode)) 31 print(res.stdout) 33 print(res.stderr) 34 if res.returncode != (0 if success else 1): 35 print(res.stdout) 36 print(res.stderr) 38 return res.stdout
|
/openbsd/gnu/gcc/gcc/config/sh/ |
H A D | sshmedia.h | 41 unsigned long long res; in sh_media_GETCON() local 42 __asm__ __volatile__ ("getcon cr%1, %0" : "=r" (res) : "n" (k)); in sh_media_GETCON() 43 return res; in sh_media_GETCON() 60 unsigned long long res; in sh_media_GETCFG() local 61 __asm__ __volatile__ ("getcfg %1, %2, %0" : "=r" (res) : "r" (mm), "n" (s)); in sh_media_GETCFG() 62 return res; in sh_media_GETCFG()
|
/openbsd/usr.bin/rsync/ |
H A D | socket.c | 150 struct addrinfo hints, *res0, *res; in inet_resolve() local 186 for (res = res0; res != NULL; res = res->ai_next) in inet_resolve() 187 if (res->ai_family == AF_INET || in inet_resolve() 188 res->ai_family == AF_INET6) in inet_resolve() 204 for (i = 0, res = res0; res != NULL; res = res->ai_next) { in inet_resolve() 205 if (res->ai_family != AF_INET && in inet_resolve() 206 res->ai_family != AF_INET6) in inet_resolve() 213 src[i].salen = res->ai_addrlen; in inet_resolve() 214 memcpy(&src[i].sa, res->ai_addr, src[i].salen); in inet_resolve() 218 sa = res->ai_addr; in inet_resolve() [all …]
|
/openbsd/bin/ksh/ |
H A D | expr.c | 286 int64_t res = 0; in evalexpr() local 346 res = vl->val.i * vr->val.i; in evalexpr() 351 res = LONG_MIN; in evalexpr() 358 res = 0; in evalexpr() 364 res = vl->val.i + vr->val.i; in evalexpr() 368 res = vl->val.i - vr->val.i; in evalexpr() 445 res = vr->val.i; in evalexpr() 448 res = vr->val.i; in evalexpr() 452 vr->val.i = res; in evalexpr() 456 setint(vasn, res); in evalexpr() [all …]
|
/openbsd/usr.sbin/vmctl/ |
H A D | vmctl.c | 242 int res; in vm_start_complete() local 247 if (res) { in vm_start_complete() 387 int res; in pause_vm_complete() local 392 if (res) { in pause_vm_complete() 393 errno = res; in pause_vm_complete() 426 int res; in unpause_vm_complete() local 431 if (res) { in unpause_vm_complete() 432 errno = res; in unpause_vm_complete() 503 int res; in terminate_vm_complete() local 583 memset(&res, 0, sizeof(res)); in terminate_all() [all …]
|
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/symbolizer/ |
H A D | sanitizer_wrappers.cpp | 106 #define RETURN_OR_SET_ERRNO(T, res) \ argument 108 if (__sanitizer::internal_iserror(res, &rverrno)) { \ 112 return (T)res; 115 unsigned long res; in open() local 123 res = __sanitizer::internal_open(filename, flags); in open() 125 RETURN_OR_SET_ERRNO(int, res); in open() 129 unsigned long res = __sanitizer::internal_close(fd); in close() local 130 RETURN_OR_SET_ERRNO(int, res); in close() 135 RETURN_OR_SET_ERRNO(int, res); 158 unsigned long res = in mmap() local [all …]
|
/openbsd/gnu/usr.bin/gcc/gcc/ |
H A D | prefix.c | 137 LONG res; local 141 res = RegOpenKeyExA (HKEY_LOCAL_MACHINE, "SOFTWARE", 0, 144 if (res == ERROR_SUCCESS) 145 res = RegOpenKeyExA (reg_key, "Free Software Foundation", 0, 148 if (res == ERROR_SUCCESS) 149 res = RegOpenKeyExA (reg_key, WIN32_REGISTRY_KEY, 0, 152 if (res != ERROR_SUCCESS) 162 res = RegQueryValueExA (reg_key, key, 0, &type, dst, &size); 163 if (res == ERROR_MORE_DATA && type == REG_SZ) 166 res = RegQueryValueExA (reg_key, key, 0, &type, dst, &size); [all …]
|
/openbsd/usr.sbin/iscsictl/ |
H A D | parser.c | 98 static struct parse_result res; variable 106 bzero(&res, sizeof(res)); in parse() 129 return (&res); in parse() 154 res.action = t->value; in match_token() 162 res.flags |= t->value; in match_token() 166 if (!parse_addr(word, &res.addr)) { in match_token() 170 res.action = t->value; in match_token() 175 if (strlcpy(res.name, word, sizeof(res.name)) >= in match_token() 176 sizeof(res.name)) in match_token()
|
/openbsd/sys/dev/pci/drm/i915/ |
H A D | intel_region_ttm.c | 170 struct ttm_resource *res, in intel_region_ttm_resource_to_rsgt() argument 175 to_ttm_range_mgr_node(res); in intel_region_ttm_resource_to_rsgt() 181 return i915_rsgt_from_buddy_resource(res, mem->region.start, in intel_region_ttm_resource_to_rsgt() 212 struct ttm_resource *res; in intel_region_ttm_resource_alloc() local 244 ret = man->func->alloc(man, &mock_bo, &place, &res); in intel_region_ttm_resource_alloc() 250 res->bo = NULL; /* Rather blow up, then some uaf */ in intel_region_ttm_resource_alloc() 251 return ret ? ERR_PTR(ret) : res; in intel_region_ttm_resource_alloc() 262 struct ttm_resource *res) in intel_region_ttm_resource_free() argument 267 mock_bo.base.size = res->size; in intel_region_ttm_resource_free() 269 res->bo = &mock_bo; in intel_region_ttm_resource_free() [all …]
|
/openbsd/regress/lib/libm/fpaccuracy/ |
H A D | trailer.h | 19 static struct point { double arg, res, err1, err2; } points[N+1]; member 47 q->res = F( q->arg ); in Fn() 53 q->res = points[N/2].res+points[N/3].res+points[N/4].res; in Fn() 68 t = scalb(q->res,p->val_e) - p->val; in Fn() 105 by_err2[i]->err2, Fs, by_err2[i]->arg, by_err2[i]->res ); in Fn() 112 by_err1[i]->err1, Fs, by_err1[i]->arg, by_err1[i]->res ); in Fn() 116 by_err1[0]->err1, by_err1[0]->arg, by_err1[0]->res ); in Fn()
|