Home
last modified time | relevance | path

Searched refs:errmsg (Results 1 – 25 of 148) sorted by relevance

123456

/third_party/ltp/testcases/kernel/fs/doio/
Ddatabin.c83 int databinchk(int mode, char *buffer, int bsize, int offset, char **errmsg) in databinchk() argument
92 if (errmsg != NULL) in databinchk()
93 *errmsg = Errmsg; in databinchk()
155 char *errmsg; in main() local
167 ret = databinchk('a', buffer, size, 0, &errmsg); in main()
169 size, ret, errmsg); in main()
176 ret = databinchk('a', &buffer[1], size - 1, offset, &errmsg); in main()
178 size, offset, ret, errmsg); in main()
189 ret = databinchk('a', &buffer[1], size - 1, offset + 1, &errmsg); in main()
191 size - 1, offset + 1, ret, errmsg); in main()
[all …]
Ddataascii.c74 int offset, char **errmsg) in dataasciichk() argument
94 if (errmsg != NULL) in dataasciichk()
95 *errmsg = Errmsg; in dataasciichk()
119 char *errmsg; in main() local
130 ret = dataasciichk(NULL, buffer, size, 0, &errmsg); in main()
132 size, ret, errmsg); in main()
139 ret = dataasciichk(NULL, &buffer[1], size - 1, 1, &errmsg); in main()
141 size - 1, ret, errmsg); in main()
151 ret = dataasciichk(NULL, &buffer[1], size - 1, 1, &errmsg); in main()
153 size - 1, ret, errmsg); in main()
[all …]
Ddatapid.c181 int datapidchk(int pid, char *buffer, int bsize, int offset, char **errmsg) in datapidchk() argument
194 if (errmsg != NULL) { in datapidchk()
195 *errmsg = Errmsg; in datapidchk()
286 if (errmsg != NULL) { in datapidchk()
287 *errmsg = Errmsg; in datapidchk()
309 char *errmsg; local
325 ret = datapidchk(-1, buffer, size, 3, &errmsg);
327 size, ret, errmsg);
328 ret = datapidchk(-1, &buffer[1], size - 1, 4, &errmsg);
330 size - 1, ret, errmsg);
[all …]
Dfile_lock.c54 static char errmsg[256]; variable
86 sprintf(errmsg, in file_lock()
88 *errormsg = errmsg; in file_lock()
114 sprintf(errmsg, in file_lock()
117 *errormsg = errmsg; in file_lock()
158 sprintf(errmsg, in record_lock()
160 *errormsg = errmsg; in record_lock()
186 sprintf(errmsg, in record_lock()
189 *errormsg = errmsg; in record_lock()
Dgrowfiles.c1955 char *errmsg; in growfile() local
1999 random_range(min_size, max_size, mult_size, &errmsg); in growfile()
2000 if (errmsg != NULL) { in growfile()
2004 errmsg); in growfile()
2043 lio_write_buffer(fd, io_type, "w", 1, SIGUSR1, &errmsg, 0); in growfile()
2045 ret = write_buffer(fd, io_type, "w", 1, 0, &errmsg); in growfile()
2051 Iter_cnt, errmsg); in growfile()
2210 SIGUSR1, &errmsg, 0); in growfile()
2212 ret = write_buffer(fd, io_type, buf, grow_incr, 0, &errmsg); in growfile()
2263 Iter_cnt, errmsg); in growfile()
[all …]
/third_party/libuv/src/unix/
Ddl.c35 lib->errmsg = NULL; in uv_dlopen()
42 uv__free(lib->errmsg); in uv_dlclose()
43 lib->errmsg = NULL; in uv_dlclose()
61 return lib->errmsg ? lib->errmsg : "no error"; in uv_dlerror()
66 const char* errmsg; in uv__dlerror() local
68 uv__free(lib->errmsg); in uv__dlerror()
70 errmsg = dlerror(); in uv__dlerror()
72 if (errmsg) { in uv__dlerror()
73 lib->errmsg = uv__strdup(errmsg); in uv__dlerror()
77 lib->errmsg = NULL; in uv__dlerror()
/third_party/libuv/src/win/
Ddl.c32 lib->errmsg = NULL; in uv_dlopen()
53 if (lib->errmsg) { in uv_dlclose()
54 LocalFree((void*)lib->errmsg); in uv_dlclose()
55 lib->errmsg = NULL; in uv_dlclose()
74 return lib->errmsg ? lib->errmsg : "no error"; in uv_dlerror()
87 (LPSTR) &lib->errmsg, in uv__format_fallback_error()
98 if (lib->errmsg) { in uv__dlerror()
99 LocalFree(lib->errmsg); in uv__dlerror()
100 lib->errmsg = NULL; in uv__dlerror()
110 (LPSTR) &lib->errmsg, 0, NULL); in uv__dlerror()
[all …]
Derror.c37 const char* errmsg; in uv_fatal_error() local
44 errmsg = buf; in uv_fatal_error()
46 errmsg = "Unknown error"; in uv_fatal_error()
52 fprintf(stderr, "%s: (%d) %s", syscall, errorno, errmsg); in uv_fatal_error()
54 fprintf(stderr, "(%d) %s", errorno, errmsg); in uv_fatal_error()
/third_party/ltp/lib/
Dtst_tmpdir.c102 static int rmobj(const char *obj, char **errmsg);
178 static int rmobj(const char *obj, char **errmsg) in rmobj() argument
188 ret_val = purge_dir(obj, errmsg); in rmobj()
197 if (errmsg != NULL) { in rmobj()
201 *errmsg = err_msg; in rmobj()
210 if (errmsg != NULL) { in rmobj()
214 *errmsg = err_msg; in rmobj()
221 if (errmsg != NULL) { in rmobj()
225 *errmsg = err_msg; in rmobj()
232 if (errmsg != NULL) { in rmobj()
[all …]
/third_party/python/Lib/tkinter/test/
Dwidget_tests.py68 def checkInvalidParam(self, widget, name, value, errmsg=None, *, argument
71 if errmsg is not None:
72 errmsg = errmsg.format(value)
75 if errmsg is not None:
76 self.assertEqual(str(cm.exception), errmsg)
83 if errmsg is not None:
84 self.assertEqual(str(cm.exception), errmsg)
97 errmsg='expected integer but got ""')
99 errmsg='expected integer but got "10p"')
101 errmsg='expected integer but got "3.2"')
[all …]
/third_party/openssl/test/
Dpkits-test.pl778 my $errmsg = "";
784 $errmsg .= "Abnormal OpenSSL termination\n";
788 $errmsg .= "Return code:$ret, ";
789 $errmsg .= "expected $exp_ret\n";
795 print $errmsg;
815 my $errmsg = "";
827 $errmsg .= "Abnormal OpenSSL termination\n";
866 $errmsg .= "Explicit policy:$epol, ";
867 $errmsg .= "expected $exp_epol\n";
871 $errmsg .= "Authority policy set :$aset, ";
[all …]
Devp_extra_test.c518 char *errmsg = NULL; in test_evp_init_seq() local
522 errmsg = "CTX_ALLOC"; in test_evp_init_seq()
526 errmsg = "GET_CIPHERBYNAME"; in test_evp_init_seq()
530 errmsg = "EMPTY_ENC_INIT"; in test_evp_init_seq()
534 errmsg = "PADDING"; in test_evp_init_seq()
538 errmsg = "KEY_INIT (before iv)"; in test_evp_init_seq()
542 errmsg = "IV_INIT"; in test_evp_init_seq()
546 errmsg = "KEY_INIT (after iv)"; in test_evp_init_seq()
550 errmsg = "FINAL_ENC_INIT"; in test_evp_init_seq()
554 errmsg = "CIPHER_UPDATE"; in test_evp_init_seq()
[all …]
/third_party/libsnd/regtest/
Ddatabase.c110 char * errmsg = NULL ; in db_create() local
126 err = sqlite3_exec (db->sql, cmd, callback, 0, &errmsg) ; in db_create()
128 printf ("Line %d : SQL error: %s\n", __LINE__, errmsg) ; in db_create()
154 char * errmsg ; in db_file_exists() local
164 err = sqlite3_exec (db->sql, db->cmdbuf, (sqlite3_callback) count_callback, db, &errmsg) ; in db_file_exists()
176 char * errmsg ; in db_add_file() local
212 err = sqlite3_exec (db->sql, db->cmdbuf, callback, 0, &errmsg) ; in db_add_file()
214 { printf ("Line %d : SQL error: %s\n", __LINE__, errmsg) ; in db_add_file()
244 char * errmsg ; in db_check_all() local
253 err = sqlite3_exec (db->sql, db->cmdbuf, (sqlite3_callback) ekey_max_callback, db, &errmsg) ; in db_check_all()
[all …]
/third_party/glib/glib/
Dgregex.c598 translate_compile_error (gint *errcode, const gchar **errmsg) in translate_compile_error() argument
615 *errmsg = _("\\ at end of pattern"); in translate_compile_error()
618 *errmsg = _("\\c at end of pattern"); in translate_compile_error()
621 *errmsg = _("unrecognized character following \\"); in translate_compile_error()
624 *errmsg = _("numbers out of order in {} quantifier"); in translate_compile_error()
627 *errmsg = _("number too big in {} quantifier"); in translate_compile_error()
630 *errmsg = _("missing terminating ] for character class"); in translate_compile_error()
633 *errmsg = _("invalid escape sequence in character class"); in translate_compile_error()
636 *errmsg = _("range out of order in character class"); in translate_compile_error()
639 *errmsg = _("nothing to repeat"); in translate_compile_error()
[all …]
/third_party/libuv/test/
Drunner.c167 char errmsg[1024] = ""; in run_test() local
210 snprintf(errmsg, in run_test()
211 sizeof errmsg, in run_test()
234 snprintf(errmsg, in run_test()
235 sizeof errmsg, in run_test()
247 snprintf(errmsg, in run_test()
248 sizeof errmsg, in run_test()
274 snprintf(errmsg, in run_test()
275 sizeof errmsg, in run_test()
282 snprintf(errmsg, in run_test()
[all …]
/third_party/gettext/gettext-tools/src/
Dxg-encoding.c65 char *errmsg; in non_ascii_error_message() local
75 errmsg = in non_ascii_error_message()
79 errmsg = in non_ascii_error_message()
84 errmsg = in non_ascii_error_message()
90 return errmsg; in non_ascii_error_message()
/third_party/node/src/
Dnode_binding.cc459 std::string errmsg = dlib->errmsg_.c_str(); in DLOpen() local
463 errmsg += *filename; in DLOpen()
465 THROW_ERR_DLOPEN_FAILED(env, errmsg.c_str()); in DLOpen()
490 char errmsg[1024]; in DLOpen() local
491 snprintf(errmsg, in DLOpen()
492 sizeof(errmsg), in DLOpen()
495 THROW_ERR_DLOPEN_FAILED(env, errmsg); in DLOpen()
510 char errmsg[1024]; in DLOpen() local
511 snprintf(errmsg, in DLOpen()
512 sizeof(errmsg), in DLOpen()
[all …]
/third_party/python/Parser/
Dpegen_errors.c205 _PyPegen_raise_error(Parser *p, PyObject *errtype, const char *errmsg, ...) in _PyPegen_raise_error() argument
209 va_start(va, errmsg); in _PyPegen_raise_error()
210 _PyPegen_raise_error_known_location(p, errtype, 0, 0, 0, -1, errmsg, va); in _PyPegen_raise_error()
234 va_start(va, errmsg); in _PyPegen_raise_error()
235 …error_known_location(p, errtype, t->lineno, col_offset, t->end_lineno, end_col_offset, errmsg, va); in _PyPegen_raise_error()
268 const char *errmsg, va_list va) in _PyPegen_raise_error_known_location() argument
285 Py_ssize_t len = strlen(fstring_msg) + strlen(errmsg); in _PyPegen_raise_error_known_location()
294 memcpy(new_errmsg + strlen(fstring_msg), errmsg, strlen(errmsg)); in _PyPegen_raise_error_known_location()
296 errmsg = new_errmsg; in _PyPegen_raise_error_known_location()
298 errstr = PyUnicode_FromFormatV(errmsg, va); in _PyPegen_raise_error_known_location()
[all …]
/third_party/grpc/third_party/upb/tests/bindings/lua/
Dtest_upb.lua545 local errmsg = "not an integer or out of range"
547 assert_error_match(errmsg, function() array[3] = vals.too_small end)
550 assert_error_match(errmsg, function() array[3] = vals.too_big end)
553 assert_error_match(errmsg, function() array[3] = vals.other_bad end)
557 errmsg = "bad argument #3"
558 assert_error_match(errmsg, function() array[3] = "abc" end)
559 assert_error_match(errmsg, function() array[3] = true end)
560 assert_error_match(errmsg, function() array[3] = false end)
561 assert_error_match(errmsg, function() array[3] = nil end)
562 assert_error_match(errmsg, function() array[3] = {} end)
[all …]
/third_party/node/src/api/
Dexceptions.cc155 char* errmsg = nullptr; in winapi_strerror() local
162 reinterpret_cast<LPTSTR>(&errmsg), in winapi_strerror()
166 if (errmsg) { in winapi_strerror()
170 for (int i = strlen(errmsg) - 1; in winapi_strerror()
171 i >= 0 && (errmsg[i] == '\n' || errmsg[i] == '\r'); in winapi_strerror()
173 errmsg[i] = '\0'; in winapi_strerror()
176 return errmsg; in winapi_strerror()
/third_party/mindspore/mindspore/ccsrc/minddata/mindrecord/io/
Dshard_segment.cc44 char *errmsg = nullptr; in GetCategoryFields() local
45 …c = sqlite3_exec(database_paths_[0], common::SafeCStr(sql), SelectCallback, &field_names, &errmsg); in GetCategoryFields()
48 oss << "Failed to execute sql [ " << common::SafeCStr(sql) << " ], " << errmsg; in GetCategoryFields()
49 sqlite3_free(errmsg); in GetCategoryFields()
60 sqlite3_free(errmsg); in GetCategoryFields()
69 sqlite3_free(errmsg); in GetCategoryFields()
107 char *errmsg = nullptr; in WrapCategoryInfo() local
108 … if (sqlite3_exec(db, common::SafeCStr(sql), SelectCallback, &field_count, &errmsg) != SQLITE_OK) { in WrapCategoryInfo()
110 oss << "Failed to execute sql [ " << common::SafeCStr(sql) << " ], " << errmsg; in WrapCategoryInfo()
111 sqlite3_free(errmsg); in WrapCategoryInfo()
[all …]
Dshard_reader.cc145 char *errmsg = nullptr; in VerifyDataset() local
146 if (sqlite3_exec(*db, common::SafeCStr(sql), SelectCallback, &name, &errmsg) != SQLITE_OK) { in VerifyDataset()
148 oss << "Failed to execute sql [ " << sql + " ], " << errmsg; in VerifyDataset()
149 sqlite3_free(errmsg); in VerifyDataset()
157 sqlite3_free(errmsg); in VerifyDataset()
412 char *errmsg = nullptr; in ReadAllRowsInShard() local
413 int rc = sqlite3_exec(db, common::SafeCStr(sql), SelectCallback, &labels, &errmsg); in ReadAllRowsInShard()
416 oss << "Failed to execute sql [ " << sql + " ], " << errmsg; in ReadAllRowsInShard()
417 sqlite3_free(errmsg); in ReadAllRowsInShard()
428 sqlite3_free(errmsg); in ReadAllRowsInShard()
[all …]
/third_party/ltp/testcases/kernel/mce-test/tsrc/
Dthugetlb.c193 errmsg("Target page is out of range.\n"); in main()
196 errmsg("Avoid which page?\n"); in main()
210 errmsg("Failed in alloc_shm_hugepage()"); in main()
215 errmsg("Failed in alloc_anonymous_hugepage()"); in main()
221 errmsg("Failed in alloc_filebacked_hugepage()"); in main()
/third_party/python/Lib/test/
Dtest_html.py20 errmsg = 'unescape(%r) should have returned %r'
23 msg=errmsg % (text, expected))
28 msg=errmsg % (text, expected))
/third_party/e2fsprogs/lib/ext2fs/
Dfinddev.c180 const char *errmsg = "Couldn't parse %s: %s\n"; in main() local
190 fprintf(stderr, errmsg, "device number", argv[1]); in main()
196 fprintf(stderr, errmsg, "major number", argv[1]); in main()
201 fprintf(stderr, errmsg, "minor number", argv[2]); in main()

123456