| /netbsd-src/external/gpl3/gdb/dist/gnulib/import/glthread/ |
| H A D | lock.c | 266 int err; in glthread_rwlock_init_for_glibc() local 268 err = pthread_rwlockattr_init (&attributes); in glthread_rwlock_init_for_glibc() 269 if (err != 0) in glthread_rwlock_init_for_glibc() 270 return err; in glthread_rwlock_init_for_glibc() 275 err = pthread_rwlockattr_setkind_np (&attributes, in glthread_rwlock_init_for_glibc() 277 if (err == 0) in glthread_rwlock_init_for_glibc() 278 err = pthread_rwlock_init(lock, &attributes); in glthread_rwlock_init_for_glibc() 282 return err; in glthread_rwlock_init_for_glibc() 291 int err; in glthread_rwlock_init_multithreaded() local 293 err = pthread_rwlock_init (&lock->rwlock, NULL); in glthread_rwlock_init_multithreaded() [all …]
|
| /netbsd-src/external/bsd/atf/dist/atf-c/ |
| H A D | build.c | 48 atf_error_t err; in append_config_var() local 51 err = atf_text_split(atf_config_get(var), " ", &words); in append_config_var() 52 if (atf_is_error(err)) in append_config_var() 58 return err; in append_config_var() 72 atf_error_t err; in append_arg2() local 74 err = append_arg1(flag, argv); in append_arg2() 75 if (!atf_is_error(err)) in append_arg2() 76 err = append_arg1(arg, argv); in append_arg2() 78 return err; in append_arg2() 85 atf_error_t err; in append_optargs() local [all …]
|
| H A D | error_test.c | 48 test_format(const atf_error_t err ATF_DEFS_ATTRIBUTE_UNUSED, in test_format() 66 atf_error_t err; in ATF_TC_BODY() local 69 err = atf_error_new("test_error", NULL, 0, NULL); in ATF_TC_BODY() 70 ATF_REQUIRE(atf_error_is(err, "test_error")); in ATF_TC_BODY() 71 ATF_REQUIRE(!atf_error_is(err, "unknown_error")); in ATF_TC_BODY() 72 ATF_REQUIRE(atf_error_data(err) == NULL); in ATF_TC_BODY() 73 atf_error_free(err); in ATF_TC_BODY() 76 err = atf_error_new("test_data_error", &data, sizeof(data), NULL); in ATF_TC_BODY() 77 ATF_REQUIRE(atf_error_is(err, "test_data_error")); in ATF_TC_BODY() 78 ATF_REQUIRE(!atf_error_is(err, "unknown_error")); in ATF_TC_BODY() [all …]
|
| H A D | check.c | 60 atf_error_t err; in create_tmpdir() local 62 err = atf_fs_path_init_fmt(dir, "%s/check.XXXXXX", in create_tmpdir() 64 if (atf_is_error(err)) in create_tmpdir() 67 err = atf_fs_mkdtemp(dir); in create_tmpdir() 68 if (atf_is_error(err)) { in create_tmpdir() 73 INV(!atf_is_error(err)); in create_tmpdir() 75 return err; in create_tmpdir() 84 atf_error_t err = atf_fs_unlink(outfile); in cleanup_tmpdir() local 85 if (atf_is_error(err)) { in cleanup_tmpdir() 86 INV(atf_error_is(err, "libc") && in cleanup_tmpdir() [all …]
|
| H A D | error.c | 55 error_format(const atf_error_t err, char *buf, size_t buflen) in error_format() argument 57 PRE(err != NULL); in error_format() 58 snprintf(buf, buflen, "Error '%s'", err->m_type); in error_format() 63 error_init(atf_error_t err, const char *type, void *data, size_t datalen, in error_init() argument 71 err->m_free = false; in error_init() 72 err->m_type = type; in error_init() 73 err->m_format = (format == NULL) ? error_format : format; in error_init() 77 err->m_data = NULL; in error_init() 79 err->m_data = malloc(datalen); in error_init() 80 if (err->m_data == NULL) { in error_init() [all …]
|
| /netbsd-src/external/bsd/atf/dist/atf-c/detail/ |
| H A D | tp_main.c | 81 name ## _format(const atf_error_t err, char *buf, size_t buflen) \ 85 PRE(atf_error_is(err, #name)); \ 87 data = atf_error_data(err); \ 96 atf_error_t err; \ 104 err = atf_error_new(#name, &data, sizeof(data), name ## _format); \ 106 return err; \ 118 print_error(const atf_error_t err) in print_error() argument 122 PRE(atf_is_error(err)); in print_error() 124 atf_error_format(err, buf, sizeof(buf)); in print_error() 127 if (atf_error_is(err, "usage")) in print_error() [all …]
|
| H A D | fs.c | 93 invalid_umask_format(const atf_error_t err, char *buf, size_t buflen) in invalid_umask_format() argument 97 PRE(atf_error_is(err, "invalid_umask")); in invalid_umask_format() 99 data = atf_error_data(err); in invalid_umask_format() 111 atf_error_t err; in invalid_umask_error() local 121 err = atf_error_new("invalid_umask", &data, sizeof(data), in invalid_umask_error() 124 return err; in invalid_umask_error() 139 unknown_type_format(const atf_error_t err, char *buf, size_t buflen) in unknown_type_format() argument 143 PRE(atf_error_is(err, "unknown_type")); in unknown_type_format() 145 data = atf_error_data(err); in unknown_type_format() 154 atf_error_t err; in unknown_type_error() local [all …]
|
| /netbsd-src/usr.bin/scmdctl/ |
| H A D | common.c | 68 int err; in common_identify() local 70 err = (*(fb->func_clear))(fd, debug); in common_identify() 71 if (! err) { in common_identify() 72 err = (*(fb->func_phy_read))(fd, debug, a_module, SCMD_REG_ID, SCMD_REG_ID, &b); in common_identify() 73 if (! err) in common_identify() 75 err = (*(fb->func_phy_read))(fd, debug, a_module, SCMD_REG_FID, SCMD_REG_FID, &b); in common_identify() 76 if (! err) in common_identify() 78 err = (*(fb->func_phy_read))(fd, debug, a_module, SCMD_REG_CONFIG_BITS, SCMD_REG_CONFIG_BITS, &b); in common_identify() 79 if (! err) in common_identify() 81 err = (*(fb->func_phy_read))(fd, debug, a_module, SCMD_REG_SLAVE_ADDR, SCMD_REG_SLAVE_ADDR, &b); in common_identify() [all …]
|
| H A D | uart.c | 152 int err; in uart_phy_read_register() local 167 err = pure_uart_send_cmd(fd, cmdbuf, qbuf, 5); in uart_phy_read_register() 168 if (! err) { in uart_phy_read_register() 169 err = uart_get_response(fd, debug, qbuf, 5); in uart_phy_read_register() 181 err = ioctl(fd,SPI_IOCTL_TRANSFER,&spi_t); in uart_phy_read_register() 184 err,reg,reg & 0x7f); in uart_phy_read_register() 186 if (err == -1) in uart_phy_read_register() 200 err = ioctl(fd,SPI_IOCTL_TRANSFER,&spi_t); in uart_phy_read_register() 203 err,b); in uart_phy_read_register() 205 if (err == -1) in uart_phy_read_register() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/i915/selftests/ |
| H A D | i915_buddy.c | 51 int err = 0; in igt_check_block() local 59 err = -EINVAL; in igt_check_block() 67 err = -EINVAL; in igt_check_block() 72 err = -EINVAL; in igt_check_block() 77 err = -EINVAL; in igt_check_block() 82 err = -EINVAL; in igt_check_block() 87 err = -EINVAL; in igt_check_block() 94 err = -EINVAL; in igt_check_block() 100 err = -EINVAL; in igt_check_block() 105 err = -EINVAL; in igt_check_block() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/test/ |
| H A D | ffc_internal_test.c | 185 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 …]
|
| /netbsd-src/sys/arch/hppa/dev/ |
| H A D | pdc.c | 120 int err; in pdc_init() local 132 if ((err = pdc_call((iodcio_t)pdc, 0, PDC_IODC, PDC_IODC_READ, in pdc_init() 134 (err = pdc_call((iodcio_t)pdc, 0, PDC_IODC, PDC_IODC_READ, in pdc_init() 137 printf("pdc_init: failed reading IODC (%d)\n", err); in pdc_init() 473 int s, err __debugused, l, pagezero_cookie; in pdccnlookc() 477 err = pdc_call(pdc_kbdiodc, 0, pz_kbd->pz_hpa, IODC_IO_CONSIN, in pdccnlookc() 485 if (err < 0) in pdccnlookc() 486 printf("pdccnlookc: input error: %d\n", err); in pdccnlookc() 506 int s, err, pagezero_cookie; in pdccnputc() local 511 err = pdc_call(pdc_cniodc, 0, pz_cons->pz_hpa, IODC_IO_CONSOUT, in pdccnputc() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/i915/gt/ |
| H A D | selftest_mocs.c | 25 static int request_add_sync(struct i915_request *rq, int err) in request_add_sync() argument 30 err = -ETIME; in request_add_sync() 33 return err; in request_add_sync() 38 int err = 0; in request_add_spin() local 43 err = -ETIME; in request_add_spin() 46 return err; in request_add_spin() 53 int err; in create_scratch() local 67 err = i915_vma_pin(vma, 0, 0, PIN_GLOBAL); in create_scratch() 68 if (err) { in create_scratch() 70 return ERR_PTR(err); in create_scratch() [all …]
|
| H A D | selftest_hangcheck.c | 63 int err; in hang_init() local 76 err = PTR_ERR(h->hws); in hang_init() 82 err = PTR_ERR(h->obj); in hang_init() 89 err = PTR_ERR(vaddr); in hang_init() 97 err = PTR_ERR(vaddr); in hang_init() 112 return err; in hang_init() 125 int err; in move_to_active() local 128 err = i915_request_await_object(rq, vma->obj, in move_to_active() 130 if (err == 0) in move_to_active() 131 err = i915_vma_move_to_active(vma, rq, flags); in move_to_active() [all …]
|
| /netbsd-src/common/dist/zlib/contrib/pascal/ |
| H A D | example.pas | 37 procedure CHECK_ERR(err: Integer; msg: String); 39 if err <> Z_OK then 41 WriteLn(msg, ' error: ', err); 58 var err: Integer; 63 err := compress(compr, comprLen, hello, len); 64 CHECK_ERR(err, 'compress'); 68 err := uncompress(uncompr, uncomprLen, compr, comprLen); 69 CHECK_ERR(err, 'uncompress'); 85 var err: Integer; 101 WriteLn('gzputs err: ', gzerror(zfile, err)); [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/zlib/contrib/pascal/ |
| H A D | example.pas | 37 procedure CHECK_ERR(err: Integer; msg: String); 39 if err <> Z_OK then 41 WriteLn(msg, ' error: ', err); 58 var err: Integer; 63 err := compress(compr, comprLen, hello, len); 64 CHECK_ERR(err, 'compress'); 68 err := uncompress(uncompr, uncomprLen, compr, comprLen); 69 CHECK_ERR(err, 'uncompress'); 85 var err: Integer; 101 WriteLn('gzputs err: ', gzerror(zfile, err)); [all …]
|
| /netbsd-src/external/gpl3/gdb/dist/zlib/contrib/pascal/ |
| H A D | example.pas | 37 procedure CHECK_ERR(err: Integer; msg: String); 39 if err <> Z_OK then 41 WriteLn(msg, ' error: ', err); 58 var err: Integer; 63 err := compress(compr, comprLen, hello, len); 64 CHECK_ERR(err, 'compress'); 68 err := uncompress(uncompr, uncomprLen, compr, comprLen); 69 CHECK_ERR(err, 'uncompress'); 85 var err: Integer; 101 WriteLn('gzputs err: ', gzerror(zfile, err)); [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/zlib/contrib/pascal/ |
| H A D | example.pas | 37 procedure CHECK_ERR(err: Integer; msg: String); 39 if err <> Z_OK then 41 WriteLn(msg, ' error: ', err); 58 var err: Integer; 63 err := compress(compr, comprLen, hello, len); 64 CHECK_ERR(err, 'compress'); 68 err := uncompress(uncompr, uncomprLen, compr, comprLen); 69 CHECK_ERR(err, 'uncompress'); 85 var err: Integer; 101 WriteLn('gzputs err: ', gzerror(zfile, err)); [all …]
|
| /netbsd-src/external/gpl3/gdb.old/dist/zlib/contrib/pascal/ |
| H A D | example.pas | 37 procedure CHECK_ERR(err: Integer; msg: String); 39 if err <> Z_OK then 41 WriteLn(msg, ' error: ', err); 58 var err: Integer; 63 err := compress(compr, comprLen, hello, len); 64 CHECK_ERR(err, 'compress'); 68 err := uncompress(uncompr, uncomprLen, compr, comprLen); 69 CHECK_ERR(err, 'uncompress'); 85 var err: Integer; 101 WriteLn('gzputs err: ', gzerror(zfile, err)); [all …]
|
| /netbsd-src/external/gpl3/gdb/dist/zlib/ |
| H A D | example.c | 22 #define CHECK_ERR(err, msg) { \ argument 23 if (err != Z_OK) { \ 24 fprintf(stderr, "%s error: %d\n", msg, err); \ 63 int err; local 66 err = compress(compr, &comprLen, (const Bytef*)hello, len); 67 CHECK_ERR(err, "compress"); 71 err = uncompress(uncompr, &uncomprLen, compr, comprLen); 72 CHECK_ERR(err, "uncompress"); 93 int err; 105 fprintf(stderr, "gzputs err: %s\n", gzerror(file, &err)); [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/zlib/ |
| H A D | example.c | 22 #define CHECK_ERR(err, msg) { \ argument 23 if (err != Z_OK) { \ 24 fprintf(stderr, "%s error: %d\n", msg, err); \ 63 int err; local 66 err = compress(compr, &comprLen, (const Bytef*)hello, len); 67 CHECK_ERR(err, "compress"); 71 err = uncompress(uncompr, &uncomprLen, compr, comprLen); 72 CHECK_ERR(err, "uncompress"); 93 int err; 105 fprintf(stderr, "gzputs err: %s\n", gzerror(file, &err)); [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/zlib/ |
| H A D | example.c | 22 #define CHECK_ERR(err, msg) { \ argument 23 if (err != Z_OK) { \ 24 fprintf(stderr, "%s error: %d\n", msg, err); \ 63 int err; local 66 err = compress(compr, &comprLen, (const Bytef*)hello, len); 67 CHECK_ERR(err, "compress"); 71 err = uncompress(uncompr, &uncomprLen, compr, comprLen); 72 CHECK_ERR(err, "uncompress"); 93 int err; 105 fprintf(stderr, "gzputs err: %s\n", gzerror(file, &err)); [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/gold/ |
| H A D | gold-threads.cc | 101 int err = pthread_mutexattr_init(&attr); in Lock_impl_threads() local 102 if (err != 0) in Lock_impl_threads() 103 gold_fatal(_("pthead_mutexattr_init failed: %s"), strerror(err)); in Lock_impl_threads() 105 err = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP); in Lock_impl_threads() 106 if (err != 0) in Lock_impl_threads() 107 gold_fatal(_("pthread_mutexattr_settype failed: %s"), strerror(err)); in Lock_impl_threads() 110 err = pthread_mutex_init(&this->mutex_, &attr); in Lock_impl_threads() 111 if (err != 0) in Lock_impl_threads() 112 gold_fatal(_("pthread_mutex_init failed: %s"), strerror(err)); in Lock_impl_threads() 114 err = pthread_mutexattr_destroy(&attr); in Lock_impl_threads() [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/gold/ |
| H A D | gold-threads.cc | 101 int err = pthread_mutexattr_init(&attr); in Lock_impl_threads() local 102 if (err != 0) in Lock_impl_threads() 103 gold_fatal(_("pthead_mutexattr_init failed: %s"), strerror(err)); in Lock_impl_threads() 105 err = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP); in Lock_impl_threads() 106 if (err != 0) in Lock_impl_threads() 107 gold_fatal(_("pthread_mutexattr_settype failed: %s"), strerror(err)); in Lock_impl_threads() 110 err = pthread_mutex_init(&this->mutex_, &attr); in Lock_impl_threads() 111 if (err != 0) in Lock_impl_threads() 112 gold_fatal(_("pthread_mutex_init failed: %s"), strerror(err)); in Lock_impl_threads() 114 err = pthread_mutexattr_destroy(&attr); in Lock_impl_threads() [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/zlib/test/ |
| H A D | example.c | 22 #define CHECK_ERR(err, msg) { \ argument 23 if (err != Z_OK) { \ 24 fprintf(stderr, "%s error: %d\n", msg, err); \ 92 int err; local 95 err = compress(compr, &comprLen, (const Bytef*)hello, len); 96 CHECK_ERR(err, "compress"); 100 err = uncompress(uncompr, &uncomprLen, compr, comprLen); 101 CHECK_ERR(err, "uncompress"); 122 int err; 134 fprintf(stderr, "gzputs err: %s\n", gzerror(file, &err)); [all …]
|