Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 3513) sorted by relevance

12345678910>>...141

/freebsd/contrib/atf/atf-c/
H A Dbuild.c44 atf_error_t err; in append_config_var() local
47 err = atf_text_split(atf_env_get_with_default(var, default_value), in append_config_var()
49 if (atf_is_error(err)) in append_config_var()
55 return err; in append_config_var()
69 atf_error_t err; in append_arg2() local
71 err = append_arg1(flag, argv); in append_arg2()
72 if (!atf_is_error(err)) in append_arg2()
73 err = append_arg1(arg, argv); in append_arg2()
75 return err; in append_arg2()
82 atf_error_t err; in append_optargs() local
[all …]
H A Derror_test.c43 test_format(const atf_error_t err ATF_DEFS_ATTRIBUTE_UNUSED, in test_format()
61 atf_error_t err; in ATF_TC_BODY() local
64 err = atf_error_new("test_error", NULL, 0, NULL); in ATF_TC_BODY()
65 ATF_REQUIRE(atf_error_is(err, "test_error")); in ATF_TC_BODY()
66 ATF_REQUIRE(!atf_error_is(err, "unknown_error")); in ATF_TC_BODY()
67 ATF_REQUIRE(atf_error_data(err) == NULL); in ATF_TC_BODY()
68 atf_error_free(err); in ATF_TC_BODY()
71 err = atf_error_new("test_data_error", &data, sizeof(data), NULL); in ATF_TC_BODY()
72 ATF_REQUIRE(atf_error_is(err, "test_data_error")); in ATF_TC_BODY()
73 ATF_REQUIRE(!atf_error_is(err, "unknown_error")); in ATF_TC_BODY()
[all …]
H A Derror.c51 error_format(const atf_error_t err, char *buf, size_t buflen) in error_format() argument
53 PRE(err != NULL); in error_format()
54 snprintf(buf, buflen, "Error '%s'", err->m_type); in error_format()
59 error_init(atf_error_t err, const char *type, void *data, size_t datalen, in error_init() argument
67 err->m_free = false; in error_init()
68 err->m_type = type; in error_init()
69 err->m_format = (format == NULL) ? error_format : format; in error_init()
73 err->m_data = NULL; in error_init()
75 err->m_data = malloc(datalen); in error_init()
76 if (err->m_data == NULL) { in error_init()
[all …]
H A Dcheck.c57 atf_error_t err; in create_tmpdir() local
59 err = atf_fs_path_init_fmt(dir, "%s/check.XXXXXX", in create_tmpdir()
61 if (atf_is_error(err)) in create_tmpdir()
64 err = atf_fs_mkdtemp(dir); in create_tmpdir()
65 if (atf_is_error(err)) { in create_tmpdir()
70 INV(!atf_is_error(err)); in create_tmpdir()
72 return err; in create_tmpdir()
81 atf_error_t err = atf_fs_unlink(outfile); in cleanup_tmpdir() local
82 if (atf_is_error(err)) { in cleanup_tmpdir()
83 INV(atf_error_is(err, "libc") && in cleanup_tmpdir()
[all …]
/freebsd/contrib/atf/atf-c/detail/
H A Dtp_main.c76 name ## _format(const atf_error_t err, char *buf, size_t buflen) \
80 PRE(atf_error_is(err, #name)); \
82 data = atf_error_data(err); \
90 atf_error_t err; \
98 err = atf_error_new(#name, &data, sizeof(data), name ## _format); \
100 return err; \
112 print_error(const atf_error_t err) in print_error() argument
116 PRE(atf_is_error(err)); in print_error()
118 atf_error_format(err, buf, sizeof(buf)); in print_error()
121 if (atf_error_is(err, "usage")) in print_error()
[all …]
H A Dfs.c88 invalid_umask_format(const atf_error_t err, char *buf, size_t buflen) in invalid_umask_format() argument
92 PRE(atf_error_is(err, "invalid_umask")); in invalid_umask_format()
94 data = atf_error_data(err); in invalid_umask_format()
106 atf_error_t err; in invalid_umask_error() local
116 err = atf_error_new("invalid_umask", &data, sizeof(data), in invalid_umask_error()
119 return err; in invalid_umask_error()
134 unknown_type_format(const atf_error_t err, char *buf, size_t buflen) in unknown_type_format() argument
138 PRE(atf_error_is(err, "unknown_type")); in unknown_type_format()
140 data = atf_error_data(err); in unknown_type_format()
149 atf_error_t err; in unknown_type_error() local
[all …]
H A Dtext.c42 atf_error_t err; in atf_text_for_each_word() local
47 err = atf_no_memory_error(); in atf_text_for_each_word()
51 err = atf_no_error(); in atf_text_for_each_word()
53 while (str2 != NULL && !atf_is_error(err)) { in atf_text_for_each_word()
54 err = func(str2, data); in atf_text_for_each_word()
60 return err; in atf_text_for_each_word()
66 atf_error_t err; in atf_text_format() local
70 err = atf_text_format_ap(dest, fmt, ap); in atf_text_format()
73 return err; in atf_text_format()
79 atf_error_t err; in atf_text_format_ap() local
[all …]
H A Dprocess.c63 atf_error_t err; in stream_prepare_init() local
72 err = atf_libc_error(errno, "Failed to create pipe"); in stream_prepare_init()
74 err = atf_no_error(); in stream_prepare_init()
78 err = atf_no_error(); in stream_prepare_init()
80 return err; in stream_prepare_init()
271 atf_error_t err; in atf_process_child_wait() local
275 err = atf_libc_error(errno, "Failed waiting for process %d", in atf_process_child_wait()
279 err = atf_process_status_init(s, status); in atf_process_child_wait()
282 return err; in atf_process_child_wait()
313 atf_error_t err; in safe_dup() local
[all …]
/freebsd/sys/dev/cxgb/common/
H A Dcxgb_ael1002.c101 int err; in set_phy_regs() local
103 for (err = 0; rv->mmd_addr && !err; rv++) { in set_phy_regs()
105 err = mdio_write(phy, rv->mmd_addr, rv->reg_addr, in set_phy_regs()
108 err = t3_mdio_change_bits(phy, rv->mmd_addr, in set_phy_regs()
112 return err; in set_phy_regs()
129 int i, err; in ael_i2c_rd() local
132 err = mdio_write(phy, MDIO_DEV_PMA_PMD, AEL_I2C_CTRL, in ael_i2c_rd()
134 if (err) in ael_i2c_rd()
135 return err; in ael_i2c_rd()
139 err = mdio_read(phy, MDIO_DEV_PMA_PMD, AEL_I2C_STAT, &stat); in ael_i2c_rd()
[all …]
H A Dcxgb_aq100x.c106 int err; in aq100x_reset() local
107 err = t3_phy_reset(phy, MDIO_DEV_PMA_PMD, wait); in aq100x_reset()
108 if (!err) in aq100x_reset()
109 err = aq100x_set_defaults(phy); in aq100x_reset()
110 return (err); in aq100x_reset()
168 int err; in aq100x_vendor_intr() local
171 err = mdio_read(phy, MDIO_DEV_VEND1, 0xfc01, &cause); in aq100x_vendor_intr()
172 if (err) in aq100x_vendor_intr()
173 return (err); in aq100x_vendor_intr()
176 err = mdio_read(phy, MDIO_DEV_VEND1, 0xcc00, &v); in aq100x_vendor_intr()
[all …]
H A Dcxgb_vsc8211.c135 int err, sp = -1, dplx = -1, pause = 0; in vsc8211_get_link_status() local
137 err = mdio_read(cphy, 0, MII_BMCR, &bmcr); in vsc8211_get_link_status()
138 if (!err) in vsc8211_get_link_status()
139 err = mdio_read(cphy, 0, MII_BMSR, &status); in vsc8211_get_link_status()
140 if (err) in vsc8211_get_link_status()
141 return err; in vsc8211_get_link_status()
149 err = mdio_read(cphy, 0, MII_BMSR, &status); in vsc8211_get_link_status()
150 if (err) in vsc8211_get_link_status()
151 return err; in vsc8211_get_link_status()
164 err = mdio_read(cphy, 0, VSC8211_AUX_CTRL_STAT, &status); in vsc8211_get_link_status()
[all …]
/freebsd/crypto/openssl/test/
H A Dffc_internal_test.c185 goto err; in ffc_params_validate_g_unverified_test()
189 goto err; in ffc_params_validate_g_unverified_test()
192 goto err; in ffc_params_validate_g_unverified_test()
205 goto err; in ffc_params_validate_g_unverified_test()
212 goto err; in ffc_params_validate_g_unverified_test()
219 goto err; in ffc_params_validate_g_unverified_test()
226 goto err; in ffc_params_validate_g_unverified_test()
233 goto err; in ffc_params_validate_g_unverified_test()
236 err: in ffc_params_validate_g_unverified_test()
254 goto err; in ffc_params_validate_pq_test()
[all …]
/freebsd/contrib/bc/tests/
H A Dbcl.c47 err(BclError e) in err() function
63 err(e); in main()
67 err(e); in main()
69 err(e); in main()
73 if (bcl_abortOnFatalError()) err(BCL_ERROR_FATAL_UNKNOWN_ERR); in main()
78 if (!bcl_abortOnFatalError()) err(BCL_ERROR_FATAL_UNKNOWN_ERR); in main()
90 if (scale != 10) err(BCL_ERROR_FATAL_UNKNOWN_ERR); in main()
95 if (scale != 16) err(BCL_ERROR_FATAL_UNKNOWN_ERR); in main()
100 if (scale != 16) err(BCL_ERROR_FATAL_UNKNOWN_ERR); in main()
105 if (scale != 10) err(BCL_ERROR_FATAL_UNKNOWN_ER in main()
[all...]
/freebsd/sys/contrib/zlib/test/
H A Dexample.c22 #define CHECK_ERR(err, msg) { \ argument
23 if (err != Z_OK) { \
24 fprintf(stderr, "%s error: %d\n", msg, err); \
62 int err; in test_compress() local
65 err = compress(compr, &comprLen, (const Bytef*)hello, len); in test_compress()
66 CHECK_ERR(err, "compress"); in test_compress()
70 err = uncompress(uncompr, &uncomprLen, compr, comprLen); in test_compress()
71 CHECK_ERR(err, "uncompress"); in test_compress()
88 int err; in test_gzio()
100 fprintf(stderr, "gzputs err: %s\n", gzerror(file, &err)); in test_gzio()
[all …]
/freebsd/lib/libxo/tests/
H A DMakefile11 .SUFFIXES: .c .err .o .out .sh
15 .PATH.err: ${LIBXOSRC}/tests/core/saved
24 ${PACKAGE}FILES+= test_01.E.err
26 ${PACKAGE}FILES+= test_01.H.err
28 ${PACKAGE}FILES+= test_01.HIPx.err
30 ${PACKAGE}FILES+= test_01.HP.err
32 ${PACKAGE}FILES+= test_01.J.err
34 ${PACKAGE}FILES+= test_01.JP.err
36 ${PACKAGE}FILES+= test_01.T.err
38 ${PACKAGE}FILES+= test_01.X.err
[all …]
/freebsd/cddl/usr.sbin/dtrace/tests/common/funcs/
H A DMakefile8 err.D_FUNC_UNDEF.progenyofbad1.d \
9 err.D_OP_VFPTR.badop.d \
10 err.D_PROTO_ARG.chillbadarg.d \
11 err.D_PROTO_ARG.copyoutbadarg.d \
12 err.D_PROTO_ARG.mobadarg.d \
13 err.D_PROTO_ARG.raisebadarg.d \
14 err.D_PROTO_ARG.tolower.d \
15 err.D_PROTO_ARG.toupper.d \
16 err.D_PROTO_LEN.allocanoarg.d \
17 err.D_PROTO_LEN.badbreakpoint.d \
[all …]
/freebsd/cddl/usr.sbin/dtrace/tests/common/speculation/
H A DMakefile9 err.BufSizeVariations1.d \
10 err.BufSizeVariations2.d \
11 err.D_ACT_SPEC.SpeculateWithBreakPoint.d \
12 err.D_ACT_SPEC.SpeculateWithChill.d \
13 err.D_ACT_SPEC.SpeculateWithCopyOut.d \
14 err.D_ACT_SPEC.SpeculateWithCopyOutStr.d \
15 err.D_ACT_SPEC.SpeculateWithPanic.d \
16 err.D_ACT_SPEC.SpeculateWithRaise.d \
17 err.D_ACT_SPEC.SpeculateWithStop.d \
18 err.D_AGG_COMM.AggAftCommit.d \
[all …]
/freebsd/crypto/openssl/ssl/
H A Dssl_txt.c39 goto err; in SSL_SESSION_print()
42 goto err; in SSL_SESSION_print()
45 goto err; in SSL_SESSION_print()
51 goto err; in SSL_SESSION_print()
55 goto err; in SSL_SESSION_print()
61 goto err; in SSL_SESSION_print()
64 goto err; in SSL_SESSION_print()
67 goto err; in SSL_SESSION_print()
70 goto err; in SSL_SESSION_print()
73 goto err; in SSL_SESSION_print()
[all …]
/freebsd/sys/contrib/zstd/zlibWrapper/examples/
H A Dexample.c44 #define CHECK_ERR(err, msg) { \ argument
45 if (err != Z_OK) { \
46 fprintf(stderr, "%s error: %d\n", msg, err); \
117 int err; local
120 err = compress(compr, &comprLen, (const Bytef*)hello, len);
121 CHECK_ERR(err, "compress");
125 err = uncompress(uncompr, &uncomprLen, compr, comprLen);
126 CHECK_ERR(err, "uncompress");
147 int err;
159 fprintf(stderr, "gzputs err: %s\n", gzerror(file, &err));
[all …]
H A Dexample_original.c39 #define CHECK_ERR(err, msg) { \ argument
40 if (err != Z_OK) { \
41 fprintf(stderr, "%s error: %d\n", msg, err); \
109 int err; local
112 err = compress(compr, &comprLen, (const Bytef*)hello, len);
113 CHECK_ERR(err, "compress");
117 err = uncompress(uncompr, &uncomprLen, compr, comprLen);
118 CHECK_ERR(err, "uncompress");
139 int err;
151 fprintf(stderr, "gzputs err: %s\n", gzerror(file, &err));
[all …]
/freebsd/sys/dev/mthca/
H A Dmthca_mcg.c70 int err; in find_mgm() local
79 err = mthca_MGID_HASH(dev, mailbox, hash); in find_mgm()
80 if (err) { in find_mgm()
81 mthca_err(dev, "MGID_HASH failed (%d)\n", err); in find_mgm()
92 err = mthca_READ_MGM(dev, *index, mgm_mailbox); in find_mgm()
93 if (err) { in find_mgm()
94 mthca_err(dev, "READ_MGM failed (%d)\n", err); in find_mgm()
101 err = -EINVAL; in find_mgm()
117 return err; in find_mgm()
129 int err; in mthca_multicast_attach() local
[all …]
/freebsd/contrib/opencsd/decoder/source/etmv4/
H A Dtrc_pkt_decode_etmv4i.cpp66 ocsd_err_t err = OCSD_OK; in processPacket() local
75 err = m_out_elem.resetElemStack(); in processPacket()
76 if (!err) in processPacket()
77 err = m_out_elem.addElemType(m_index_curr_pkt, OCSD_GEN_TRC_ELEM_NO_SYNC); in processPacket()
78 if (!err) in processPacket()
109 err = decodePacket(); in processPacket()
110 if (err) in processPacket()
118 err = decodePacket(); in processPacket()
119 if (err) in processPacket()
122 if (err == OCSD_ERR_UNSUPP_DECODE_PKT) in processPacket()
[all …]
/freebsd/sys/dev/iicbus/rtc/
H A Dnxprtc.c262 int err; in nxprtc_readfrom() local
279 if ((err = iicbus_transfer_excl(slavedev, &msg, 1, waithow)) != 0) in nxprtc_readfrom()
280 return (err); in nxprtc_readfrom()
307 int err; in read_timeregs() local
318 if ((err = read_reg(sc, sc->secaddr, &sec)) != 0) in read_timeregs()
320 if ((err = read_reg(sc, sc->tmcaddr, &tmr1)) != 0) in read_timeregs()
322 if ((err = read_reg(sc, sc->tmcaddr, &tmr2)) != 0) in read_timeregs()
327 if ((err = nxprtc_readfrom(sc->dev, sc->secaddr, tregs, in read_timeregs()
350 return (err); in read_timeregs()
365 int err, freqppm, newppm; in freqadj_sysctl() local
[all …]
/freebsd/contrib/openbsm/bin/auditd/
H A Dauditd.c199 int err; in swap_audit_file() local
229 err = auditd_swap_trail(TS, &newfile, audit_review_gid, in swap_audit_file()
231 if (err != ADE_NOERR) { in swap_audit_file()
232 auditd_log_err("%s: %m", auditd_strerror(err)); in swap_audit_file()
233 if (err != ADE_ACTL) in swap_audit_file()
256 newfile, auditd_strerror(err)); in swap_audit_file()
270 int err; in do_trail_file() local
275 err = auditd_read_dirs(audit_warn_soft, audit_warn_hard); in do_trail_file()
276 if (err) { in do_trail_file()
278 auditd_strerror(err)); in do_trail_file()
[all …]
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_fw.c37 int err; in mlx5_cmd_query_adapter() local
43 err = mlx5_cmd_exec(dev, in, sizeof(in), out, outlen); in mlx5_cmd_query_adapter()
44 return err; in mlx5_cmd_query_adapter()
51 int err; in mlx5_query_board_id() local
55 err = mlx5_cmd_query_adapter(dev, out, outlen); in mlx5_query_board_id()
56 if (err) in mlx5_query_board_id()
68 return err; in mlx5_query_board_id()
75 int err; in mlx5_core_query_vendor_id() local
79 err = mlx5_cmd_query_adapter(mdev, out, outlen); in mlx5_core_query_vendor_id()
80 if (err) in mlx5_core_query_vendor_id()
97 int err; mlx5_core_query_special_contexts() local
137 int err; mlx5_query_hca_caps() local
398 int err; mlx5_reg_mcc_query() local
422 int err, in_size = MLX5_ST_SZ_BYTES(mcda_reg) + size; mlx5_reg_mcda_set() local
457 int err; mlx5_reg_mcqi_query() local
501 int err; mlx5_fsm_lock() local
565 int err; mlx5_fsm_query_state() local
[all...]

12345678910>>...141