/illumos-gate/usr/src/boot/common/ |
H A D | commands.c | 228 int res; in command_commandlist() local 231 res = 0; in command_commandlist() 233 res = pager_output("Available commands:\n"); in command_commandlist() 235 if (res) in command_commandlist() 242 res = pager_output("\n"); in command_commandlist() 451 int res; in command_more() local 454 res = 0; in command_more() 461 res = page_file(argv[i]); in command_more() 462 if (!res) { in command_more() 465 res = pager_output(line); in command_more() [all …]
|
H A D | disk.c | 112 int res; in ptable_print() local 137 res = 0; in ptable_print() 152 res = ptable_iterate(table, &bsd, ptable_print); in ptable_print() 159 return (res); in ptable_print()
|
H A D | gfx_fb.c | 1282 int res = 0; in isqrt() local 1290 if (num >= res + bit) { in isqrt() 1291 num -= res + bit; in isqrt() 1292 res = (res >> 1) + bit; in isqrt() 1294 res >>= 1; in isqrt() 1297 return (res); in isqrt() 2474 TAILQ_INSERT_TAIL(res, rp, next); in gfx_get_edid_resolution() 2515 TAILQ_FOREACH(p, res, next) { in gfx_get_edid_resolution() 2518 if (TAILQ_FIRST(res) == p) in gfx_get_edid_resolution() 2525 TAILQ_INSERT_TAIL(res, rp, next); in gfx_get_edid_resolution() [all …]
|
H A D | interp.c | 146 int res; in command_include() local 156 res=CMD_OK; in command_include() 158 res = include(argvbuf[i]); in command_include() 164 return(res); in command_include() 201 int res = CMD_OK; in include() local 259 res = CMD_OK; in include() 262 res = bf_run(sp->text); in include() 263 if (res != FICL_VM_STATUS_OUT_OF_TEXT) { in include() 267 res = CMD_ERROR; in include() 270 res = CMD_OK; in include() [all …]
|
H A D | load_elf_obj.c | 194 int i, nsym, res, ret, shdrbytes, symstrindex; in __elfN() local 327 res = __elfN(obj_parse_modmetadata)(fp, ef); in __elfN() 328 if (res != 0) in __elfN()
|
/illumos-gate/usr/src/boot/efi/loader/arch/amd64/ |
H A D | trap.c | 381 int res; in command_grab_faults() local 383 res = efi_redirect_exceptions(); in command_grab_faults() 384 if (!res) in command_grab_faults()
|
/illumos-gate/usr/src/boot/efi/loader/ |
H A D | framebuffer.c | 498 efifb_get_edid(edid_res_list_t *res) in efifb_get_edid() argument 574 edid_res_list_t res; in print_efifb() local 577 TAILQ_INIT(&res); in print_efifb() 581 if (efifb_get_edid(&res)) { in print_efifb() 583 while ((rp = TAILQ_FIRST(&res)) != NULL) { in print_efifb() 585 TAILQ_REMOVE(&res, rp, next); in print_efifb() 700 edid_res_list_t res; in gop_default_mode() local 706 TAILQ_INIT(&res); in gop_default_mode() 707 if (efifb_get_edid(&res)) { in gop_default_mode() 708 while ((rp = TAILQ_FIRST(&res)) != NULL) { in gop_default_mode() [all …]
|
/illumos-gate/usr/src/boot/i386/libi386/ |
H A D | vbe.c | 601 vbe_get_edid(edid_res_list_t *res) in vbe_get_edid() argument 631 ret = gfx_get_edid_resolution(edidp, res); in vbe_get_edid() 701 edid_res_list_t res; in vbe_modelist() local 715 TAILQ_INIT(&res); in vbe_modelist() 716 edid = vbe_get_edid(&res); in vbe_modelist() 721 TAILQ_REMOVE(&res, rp, next); in vbe_modelist() 860 edid_res_list_t res; in vbe_default_mode() local 866 TAILQ_INIT(&res); in vbe_default_mode() 867 if (vbe_get_edid(&res)) { in vbe_default_mode() 868 while ((rp = TAILQ_FIRST(&res)) != NULL) { in vbe_default_mode() [all …]
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | dosfs.c | 428 size_t res; in dos_readdir() local 436 err = dos_read(fd, &dd, sizeof (dd), &res); in dos_readdir() 439 if (res == sizeof (dd)) in dos_readdir()
|
H A D | dosfs.h | 84 u_char res; /* reserved */ member
|
H A D | pkgfs.c | 269 pkg_read(struct open_file *f, void *buf, size_t size, size_t *res) in pkg_read() argument 278 if (res != NULL) in pkg_read() 279 *res = size; in pkg_read() 325 if (res != NULL) in pkg_read() 326 *res = size; in pkg_read() 336 size_t sz, res; in pkg_seek() local 369 error = pkg_read(f, buf, sz, &res); in pkg_seek() 374 delta -= sz - res; in pkg_seek()
|
H A D | rpc.c | 380 struct res { in rpc_getport() struct 382 } *res; in rpc_getport() local 415 args, sizeof(*args), (void **)&res, &pkt); in rpc_getport() 416 if (cc < sizeof(*res)) { in rpc_getport() 422 port = (int)ntohl(res->port); in rpc_getport()
|
H A D | tftp.c | 298 ssize_t res; in tftp_makereq() local 349 if (res == -1) { in tftp_makereq() 392 int res; in tftp_getnextblock() local 436 int res; in tftp_open() local 475 if (res < 0 || res > pathsize) { in tftp_open() 483 if (res) { in tftp_open() 487 return (res); in tftp_open() 499 size_t res; in tftp_read() local 503 res = size; in tftp_read() 559 res -= count; in tftp_read() [all …]
|
H A D | zalloc_malloc.c | 73 Guard *res; in Malloc_align() local 127 if (*((signed char *)res + res->ga_Bytes - 1) == -1) { in Free() 132 if (*((signed char *)res + res->ga_Bytes - 1) != -2) in Free() 135 *((signed char *)res + res->ga_Bytes - 1) = -1; in Free() 150 void *res; in Calloc() local 153 bzero(res, bytes); in Calloc() 159 return (res); in Calloc() 171 void *res; in Realloc() local 197 return (res); in Realloc() 203 void *res; in Reallocf() local [all …]
|
/illumos-gate/usr/src/boot/libsa/zfs/ |
H A D | zfs.c | 421 if (res != secsz) { in vdev_read() 433 if (res != secsz) { in vdev_read() 440 if (res != full_sec_size) { in vdev_read() 451 if (res != secsz) { in vdev_read() 471 ssize_t res; in vdev_write() local 510 if ((unsigned)res != secsz) { in vdev_write() 517 if ((unsigned)res != secsz) { in vdev_write() 533 if ((unsigned)res != secsz) { in vdev_write() 540 if ((unsigned)res != secsz) { in vdev_write() 557 if ((unsigned)res != secsz) { in vdev_write() [all …]
|
/illumos-gate/usr/src/boot/sys/ufs/ffs/ |
H A D | fs.h | 653 ufs_lbn_t res; in lbn_offset() local 655 for (res = 1; level > 0; level--) in lbn_offset() 656 res *= NINDIR(fs); in lbn_offset() 657 return (res); in lbn_offset()
|
/illumos-gate/usr/src/cmd/abi/appcert/scripts/ |
H A D | symcheck.pl | 1187 my ($tag, $tag0, $sub, $res); 1192 $res = &{$sub}($path_to_object); 1193 $warnings{$tag} = 1 if ($res);
|
/illumos-gate/usr/src/cmd/acctadm/ |
H A D | Makefile | 29 OBJS = main.o aconf.o res.o utils.o
|
H A D | res.c | 273 resset(ac_res_t *res, int id, int state) in resset() argument 276 resp = (ac_res_t *)((uintptr_t)res + (sizeof (ac_res_t) * (id - 1))); in resset() 285 resget(ac_res_t *res, int id) in resget() argument 288 resp = (ac_res_t *)((uintptr_t)res + (sizeof (ac_res_t) * (id - 1))); in resget()
|
/illumos-gate/usr/src/cmd/amt/ |
H A D | amt.sh | 37 res=$? 38 if [ $res != 0 ]; then 39 exit $res
|
/illumos-gate/usr/src/cmd/ast/libshell/common/tests/ |
H A D | sun_solaris_builtin_poll.sh | 55 cat /dev/zero | { redirect 5<&0 ; poll -e d1.res -t 5. d1.u ; } || err_exit "poll returned non-zero… 61 unset d1.res 64 { poll -e d1.res -t 5. d1.u ; } 5</dev/null 5>/dev/null || err_exit "poll returned non-zero exit co…
|
H A D | sun_solaris_vartree002.sh | 148 if ! ([[ -v dest_tree.l1["$a"] ]] ; res=$? ; unset dest_tree.l1["$a"] ; exit $res) ; then 153 …if ! ([[ -v dest_tree.l1["$a"].l2["$b"] ]] ; res=$? ; unset dest_tree.l1["$a"].l2["$b"] ; exit $re… 305 …bal1.l1[urw].l2[itc zapfdingbats]' ]] ; res=$? ; unset 'mytree_global1.l1[urw].l2[itc zapfdingbats… 307 …bal1.l1[urw].l2[itc zapfdingbats]' ]] ; res=$? ; unset 'mytree_global1.l1[urw].l2[itc zapfdingbats… 336 …[[ -v 'mytree_global1.l1[urw].l2[itc zapfdingbats].l3[medium].entries[abcd].filenames[0]' ]] ; res… 338 (( res == 0 )) || 343 …[[ -v 'mytree_local1.l1[urw].l2[itc zapfdingbats].l3[medium].entries[abcd].filenames[0]' ]] ; res=… 345 (( res == 0 )) ||
|
/illumos-gate/usr/src/cmd/auths/ |
H A D | auths.c | 142 add_auth(const char *authname, void *ctxt, void *res) in add_auth() argument 144 cbs_t *cbs = res; in add_auth()
|
/illumos-gate/usr/src/cmd/beadm/ |
H A D | beadm.c | 558 boolean_t res = B_FALSE; in confirm_destroy() local 570 return (res); in confirm_destroy() 576 return (res); in confirm_destroy() 587 res = B_TRUE; in confirm_destroy() 596 return (res); in confirm_destroy()
|
/illumos-gate/usr/src/cmd/bhyve/ |
H A D | acpi_device.c | 87 struct acpi_resource_list_entry *res; in acpi_device_destroy() local 89 res = SLIST_FIRST(&dev->crs); in acpi_device_destroy() 91 free(res); in acpi_device_destroy() 105 struct acpi_resource_list_entry *const res = calloc(1, sizeof(*res)); in acpi_device_add_res_fixed_ioport() local 106 if (res == NULL) { in acpi_device_add_res_fixed_ioport() 110 res->type = ACPI_RESOURCE_TYPE_FIXED_IO; in acpi_device_add_res_fixed_ioport() 111 res->data.FixedIo.Address = port; in acpi_device_add_res_fixed_ioport() 127 struct acpi_resource_list_entry *const res = calloc(1, sizeof(*res)); in acpi_device_add_res_fixed_memory32() local 128 if (res == NULL) { in acpi_device_add_res_fixed_memory32() 167 SLIST_FOREACH(res, &dev->crs, chain) { in acpi_device_write_dsdt_crs() [all …]
|