/freebsd/sbin/dhclient/ |
H A D | alloc.c | 51 struct string_list *rval; in new_string_list() local 53 rval = calloc(1, sizeof(struct string_list) + size); in new_string_list() 54 if (rval != NULL) in new_string_list() 55 rval->string = ((char *)rval) + sizeof(struct string_list); in new_string_list() 56 return (rval); in new_string_list() 62 struct hash_table *rval; in new_hash_table() local 64 rval = calloc(1, sizeof(struct hash_table) - in new_hash_table() 67 if (rval == NULL) in new_hash_table() 69 rval->hash_count = count; in new_hash_table() 70 return (rval); in new_hash_table() [all …]
|
/freebsd/sys/dev/qlxgb/ |
H A D | qla_misc.c | 669 uint32_t val, rval; in qla_flash_write_enable() local 677 rval = qla_wait_for_flash_busy(ha); in qla_flash_write_enable() 679 if (rval) in qla_flash_write_enable() 682 return (rval); in qla_flash_write_enable() 688 uint32_t val, rval; in qla_flash_unprotect() local 699 rval = qla_wait_for_flash_busy(ha); in qla_flash_unprotect() 701 if (rval) { in qla_flash_unprotect() 703 return rval; in qla_flash_unprotect() 715 rval = qla_wait_for_flash_busy(ha); in qla_flash_unprotect() 717 if (rval) in qla_flash_unprotect() [all …]
|
H A D | qla_ioctl.c | 82 int rval = 0; in qla_eioctl() local 106 if ((rval = qla_rdwr_indreg32(ha, rv->reg, &rv->val, in qla_eioctl() 108 rval = ENXIO; in qla_eioctl() 114 if ((rval = qla_rd_flash32(ha, rdf->off, &rdf->data))) in qla_eioctl() 115 rval = ENXIO; in qla_eioctl() 120 if ((rval = qla_wr_flash_buffer(ha, wrf->off, wrf->size, in qla_eioctl() 122 rval = ENXIO; in qla_eioctl() 128 rval = ENXIO; in qla_eioctl() 144 return rval; in qla_eioctl()
|
/freebsd/usr.sbin/rpc.ypupdated/ |
H A D | yp_dbupdate.c | 84 int rval = 0; in ypmap_update() local 102 rval = yp_del_record(dbp, &key); in ypmap_update() 103 if (rval == YP_TRUE) in ypmap_update() 104 rval = 0; in ypmap_update() 107 rval = yp_put_record(dbp, &key, &data, 0); in ypmap_update() 108 if (rval == YP_TRUE) in ypmap_update() 109 rval = 0; in ypmap_update() 112 rval = yp_put_record(dbp, &key, &data, 1); in ypmap_update() 113 if (rval == YP_TRUE) in ypmap_update() 114 rval = 0; in ypmap_update() [all …]
|
/freebsd/usr.bin/number/ |
H A D | number.c | 111 int flen, len, rval; in convert() local 154 rval = len > 0 ? unit(len, line) : 0; in convert() 158 if (rval) in convert() 166 rval = 1; in convert() 170 if (!rval) in convert() 179 int off, rval; in unit() local 181 rval = 0; in unit() 187 rval = 1; in unit() 196 rval = 1; in unit() 205 rval = 1; in unit() [all …]
|
/freebsd/contrib/pjdfstest/ |
H A D | pjdfstest.c | 671 int name, rval; in call_syscall() local 754 rval = open(STR(0), (int)flags, (mode_t)NUM(2)); in call_syscall() 760 rval = open(STR(0), (int)flags); in call_syscall() 762 if (rval >= 0) in call_syscall() 763 descriptor_add(rval); in call_syscall() 773 rval = openat(NUM(0), STR(1), (int)flags, in call_syscall() 780 rval = openat(NUM(0), STR(1), (int)flags); in call_syscall() 782 if (rval >= 0) in call_syscall() 783 descriptor_add(rval); in call_syscall() 787 rval = open(STR(0), O_CREAT | O_EXCL, (mode_t)NUM(1)); in call_syscall() [all …]
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | qlnx_ioctl.c | 105 int rval = EINVAL; in qlnx_grc_dump() local 122 return (rval); in qlnx_grc_dump() 125 if ((rval = ecore_dbg_grc_dump(p_hwfn, p_ptt, in qlnx_grc_dump() 129 rval = 0; in qlnx_grc_dump() 133 hwfn_index, rval); in qlnx_grc_dump() 137 return (rval); in qlnx_grc_dump() 157 int rval = 0; in qlnx_get_grc_dump() local 167 rval = qlnx_grc_dump(ha, &dwords, i); in qlnx_get_grc_dump() 169 if (rval) in qlnx_get_grc_dump() 176 rval = copyout(ha->grcdump[i], grcdump->grcdump[i], in qlnx_get_grc_dump() [all …]
|
/freebsd/usr.sbin/rmt/ |
H A D | rmt.c | 68 int rval; in main() local 83 rval = 0; in main() 116 rval = lseek(tape, (off_t)strtoll(count, NULL, 10), atoi(pos)); in main() 117 if (rval < 0) in main() 133 rval = write(tape, record, n); in main() 134 if (rval < 0) in main() 143 rval = read(tape, record, n); in main() 144 if (rval < 0) in main() 146 (void)sprintf(resp, "A%d\n", rval); in main() 148 (void)write(STDOUT_FILENO, record, rval); in main() [all …]
|
/freebsd/usr.bin/locale/ |
H A D | locale.c | 620 static char rval[64]; in format_grouping() local 632 rval[0] = '\0'; in format_grouping() 639 len = snprintf(&rval[roff], sizeof(rval) - roff, "%u;", *cp); in format_grouping() 640 if (len < 0 || (unsigned)len >= sizeof(rval) - roff) in format_grouping() 649 rval[roff - 1] = '\0'; in format_grouping() 651 return (&rval[0]); in format_grouping() 661 char *rval; in kwval_lconv() local 663 rval = NULL; in kwval_lconv() 667 rval = format_grouping(lc->grouping); in kwval_lconv() 670 rval = lc->int_curr_symbol; in kwval_lconv() [all …]
|
/freebsd/sbin/ipf/common/ |
H A D | lexer.c | 183 int c, n, isbuilding, rval, lnext, nokey = 0; in yylex() local 189 rval = 0; in yylex() 258 rval = YY_COMMENT; in yylex() 269 rval = -2; in yylex() 313 rval = -2; in yylex() 321 rval = YY_STR; in yylex() 344 rval = c; in yylex() 348 rval = c; in yylex() 370 rval = '-'; in yylex() 375 rval = '-'; in yylex() [all …]
|
/freebsd/sys/dev/qlxgbe/ |
H A D | ql_ioctl.c | 88 int rval = 0; in ql_eioctl() local 121 if ((rval = ql_rdwr_indreg32(ha, u.rv->reg, &u.rv->val, in ql_eioctl() 123 rval = ENXIO; in ql_eioctl() 130 rval = EIO; in ql_eioctl() 135 if ((rval = ql_rd_flash32(ha, u.rdf->off, &u.rdf->data))) in ql_eioctl() 136 rval = ENXIO; in ql_eioctl() 144 rval = ENXIO; in ql_eioctl() 149 rval = ENXIO; in ql_eioctl() 154 rval = EIO; in ql_eioctl() 159 if ((rval = ql_wr_flash_buffer(ha, u.wrf->off, u.wrf->size, in ql_eioctl() [all …]
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_map.c | 42 int maxformat, rval; in dt_strdata_add() local 66 rval = dt_set_errno(dtp, errno); in dt_strdata_add() 68 return (rval); in dt_strdata_add() 115 int rval, i; local 164 rval = dt_set_errno(dtp, errno); 166 return (rval); 184 rval = dt_ioctl(dtp, DTRACEIOC_EPROBE, enabled); 186 rval = dt_ioctl(dtp, DTRACEIOC_EPROBE, &enabled); 189 if (rval == -1) { 190 rval = dt_set_errno(dtp, errno); [all …]
|
/freebsd/contrib/ntp/libntp/ |
H A D | audio.c | 243 int rval; in audio_init() local 288 rval = fd; in audio_init() 364 rval = ioctl(ctl_fd, AUDIO_SETINFO, (char *)&info); in audio_init() 365 if (rval < 0) { in audio_init() 369 return(rval); in audio_init() 371 rval = fd; in audio_init() 373 return (rval); in audio_init() 387 int rval; in audio_gain() local 395 rval = 0; /* GCC thinks rval i in audio_gain() [all...] |
/freebsd/sbin/newfs/ |
H A D | newfs.c | 126 int ch, rval; in main() local 169 rval = expand_number_int(optarg, §orsize); in main() 170 if (rval < 0 || sectorsize <= 0) in main() 187 rval = expand_number_int(optarg, &maxcontig); in main() 188 if (rval < 0 || maxcontig <= 0) in main() 193 rval = expand_number_int(optarg, &bsize); in main() 194 if (rval < 0) in main() 205 rval = expand_number_int(optarg, &maxblkspercg); in main() 206 if (rval < 0 || maxblkspercg <= 0) in main() 211 rval = expand_number_int(optarg, &maxbsize); in main() [all …]
|
/freebsd/usr.bin/mkuzip/ |
H A D | mkuz_blockcache.c | 56 int rval; in verify_match() local 58 rval = -1; in verify_match() 70 rval = (memcmp(cbp->data, vbuf, cbp->info.len) == 0) ? 1 : 0; in verify_match() 76 return (rval); in verify_match() 86 unsigned char rval; in digest_fold() local 88 rval = mdigest[0]; in digest_fold() 90 rval = rval ^ mdigest[i]; in digest_fold() 92 return (rval); in digest_fold() 99 int rval; in mkuz_blkcache_regblock() local 118 rval = verify_match(fd, bp, bcep); in mkuz_blkcache_regblock() [all …]
|
/freebsd/bin/rm/ |
H A D | rm.c | 170 int rval; in rm_tree() local 245 rval = 0; in rm_tree() 249 rval = lchflags(p->fts_accpath, in rm_tree() 251 if (rval == 0) { in rm_tree() 260 rval = rmdir(p->fts_accpath); in rm_tree() 261 if (rval == 0 || (fflag && errno == ENOENT)) { in rm_tree() 262 if (rval == 0 && vflag) in rm_tree() 265 if (rval == 0 && info) { in rm_tree() 275 rval = undelete(p->fts_accpath); in rm_tree() 276 if (rval == 0 && (fflag && errno == ENOENT)) { in rm_tree() [all …]
|
/freebsd/usr.bin/printf/ |
H A D | printf.c | 96 int end, rval; in main() local 138 rval = end = 0; in main() 156 fmt = printf_doformat(fmt, &rval); in main() 161 return (fmt == NULL ? 1 : rval); in main() 185 return (rval); in main() 196 printf_doformat(char *fmt, int *rval) in printf_doformat() argument 403 *rval = 1; in printf_doformat() 417 *rval = 1; in printf_doformat() 556 int rval; in getint() local 560 rval = 0; in getint() [all …]
|
/freebsd/usr.sbin/ckdist/ |
H A D | ckdist.c | 93 int rval, c, type; in main() local 137 rval = 0; in main() 140 rval |= ckdist(*argv, opt_type); in main() 142 rval |= fail(*argv, NULL); in main() 144 rval |= ckdist(*argv, opt_type); in main() 152 rval = fail(f->fts_path, "Directory causes a cycle"); in main() 157 rval = fail(f->fts_path, sys_errlist[f->fts_errno]); in main() 167 rval |= ckdist(f->fts_path, type); in main() 177 return rval; in main() 184 int rval, c; in ckdist() local [all …]
|
/freebsd/bin/cp/ |
H A D | cp.c | 270 int base = 0, dne, badcp, rval; in copy() local 285 for (badcp = rval = 0; (curr = fts_read(ftsp)) != NULL; badcp = 0) { in copy() 291 badcp = rval = 1; in copy() 295 badcp = rval = 1; in copy() 358 badcp = rval = 1; in copy() 420 rval = 1; in copy() 423 rval = 1; in copy() 431 rval = 1; in copy() 443 badcp = rval = 1; in copy() 464 badcp = rval in copy() [all...] |
/freebsd/sys/dev/mpi3mr/ |
H A D | mpi3mr_app.c | 783 long rval = EINVAL; in mpi3mr_app_mptcmds() local 817 return rval; in mpi3mr_app_mptcmds() 822 return rval; in mpi3mr_app_mptcmds() 837 rval = EFAULT; in mpi3mr_app_mptcmds() 845 rval = ENOMEM; in mpi3mr_app_mptcmds() 851 rval = EFAULT; in mpi3mr_app_mptcmds() 857 rval = EINVAL; in mpi3mr_app_mptcmds() 865 rval = ENOMEM; in mpi3mr_app_mptcmds() 924 rval = EINVAL; in mpi3mr_app_mptcmds() 932 rval = EINVAL; in mpi3mr_app_mptcmds() [all …]
|
/freebsd/usr.bin/fsync/ |
H A D | fsync.c | 43 int rval; in main() local 50 rval = EX_OK; in main() 54 if (rval == EX_OK) in main() 55 rval = EX_NOINPUT; in main() 61 if (rval == EX_OK) in main() 62 rval = EX_OSERR; in main() 66 exit(rval); in main()
|
/freebsd/lib/librpcsvc/ |
H A D | yp_update.c | 62 int rval; in yp_update() local 72 if ((rval = yp_master(domain, map, &master))) in yp_update() 73 return(rval); in yp_update() 129 if ((rval = clnt_call(clnt, YPU_CHANGE, in yp_update() 132 if (rval == RPC_AUTHERROR) in yp_update() 146 if ((rval = clnt_call(clnt, YPU_INSERT, in yp_update() 149 if (rval == RPC_AUTHERROR) in yp_update() 161 if ((rval = clnt_call(clnt, YPU_DELETE, in yp_update() 164 if (rval == RPC_AUTHERROR) in yp_update() 178 if ((rval = clnt_call(clnt, YPU_STORE, in yp_update() [all …]
|
/freebsd/sys/contrib/openzfs/lib/libefi/ |
H A D | rdwr_efi.c | 200 int rval = 0; in efi_get_info() local 221 rval = sscanf(dev_path, "/dev/%[a-zA-Z]%hu", in efi_get_info() 227 rval = sscanf(dev_path, "/dev/%[a-zA-Z]%hu", in efi_get_info() 234 rval = sscanf(dev_path, "/dev/md%[0-9]p%hu", in efi_get_info() 240 rval = sscanf(dev_path, "/dev/%[a-zA-Z]%hu", in efi_get_info() 246 rval = sscanf(dev_path, "/dev/%[a-zA-Z]%hu", in efi_get_info() 253 rval = sscanf(dev_path, "/dev/zd%[0-9]p%hu", in efi_get_info() 260 rval = sscanf(dev_path, "/dev/dm-%[0-9]p%hu", in efi_get_info() 267 rval = sscanf(dev_path, "/dev/ram%[0-9]p%hu", in efi_get_info() 274 rval = sscanf(dev_path, "/dev/loop%[0-9]p%hu", in efi_get_info() [all …]
|
/freebsd/usr.sbin/ypserv/ |
H A D | yp_dblookup.c | 456 int rval = 0; in yp_get_record() local 479 if ((rval = (dbp->get)(dbp, key, data, 0)) != 0) { in yp_get_record() 485 if (rval == 1) in yp_get_record() 513 int rval; in yp_first_record() local 521 if ((rval = (dbp->seq)(dbp,key,data,R_FIRST)) != 0) { in yp_first_record() 525 if (rval == 1) in yp_first_record() 533 if ((rval = (dbp->seq)(dbp,key,data,R_NEXT)) != 0) { in yp_first_record() 537 if (rval == 1) in yp_first_record() 567 int rval; in yp_next_record() local 574 rval = yp_first_record(dbp,key,data,allow); in yp_next_record() [all …]
|
/freebsd/sys/dev/usb/net/ |
H A D | if_urndis.c | 490 uint32_t rval; in urndis_ctrl_handle() local 500 rval = urndis_ctrl_handle_init(sc, hdr); in urndis_ctrl_handle() 504 rval = urndis_ctrl_handle_query(sc, hdr, buf, bufsz); in urndis_ctrl_handle() 508 rval = urndis_ctrl_handle_reset(sc, hdr); in urndis_ctrl_handle() 513 rval = le32toh(hdr->rm_status); in urndis_ctrl_handle() 520 rval = RNDIS_STATUS_FAILURE; in urndis_ctrl_handle() 523 return (rval); in urndis_ctrl_handle() 619 uint32_t rval; in urndis_ctrl_handle_reset() local 623 rval = le32toh(msg->rm_status); in urndis_ctrl_handle_reset() 628 rval, in urndis_ctrl_handle_reset() 659 uint32_t rval; urndis_ctrl_init() local 696 uint32_t rval; urndis_ctrl_halt() local 725 uint32_t datalen, rval; urndis_ctrl_query() local 771 uint32_t datalen, rval; urndis_ctrl_set() local [all...] |