Home
last modified time | relevance | path

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

12345

/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/node/deps/uv/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/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/node/deps/uv/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/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/ltp/lib/
Dtst_tmpdir.c102 static int rmobj(const char *obj, char **errmsg);
193 static int rmobj(const char *obj, char **errmsg) in rmobj() argument
203 ret_val = purge_dir(obj, errmsg); in rmobj()
212 if (errmsg != NULL) { in rmobj()
216 *errmsg = err_msg; in rmobj()
225 if (errmsg != NULL) { in rmobj()
229 *errmsg = err_msg; in rmobj()
236 if (errmsg != NULL) { in rmobj()
240 *errmsg = err_msg; in rmobj()
247 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.c3661 char *errmsg = NULL; in test_evp_init_seq() local
3665 errmsg = "CTX_ALLOC"; in test_evp_init_seq()
3669 errmsg = "CIPHER_FETCH"; in test_evp_init_seq()
3673 errmsg = "EMPTY_ENC_INIT"; in test_evp_init_seq()
3677 errmsg = "PADDING"; in test_evp_init_seq()
3681 errmsg = "KEY_INIT (before iv)"; in test_evp_init_seq()
3685 errmsg = "IV_INIT"; in test_evp_init_seq()
3689 errmsg = "KEY_INIT (after iv)"; in test_evp_init_seq()
3693 errmsg = "FINAL_ENC_INIT"; in test_evp_init_seq()
3697 errmsg = "CIPHER_UPDATE"; in test_evp_init_seq()
[all …]
/third_party/rust/crates/nix/src/mount/
Dbsd.rs114 errmsg: Option<String>, field
120 pub fn errmsg(&self) -> Option<&str> { in errmsg() method
121 self.errmsg.as_deref() in errmsg()
129 fn new(error: Error, errmsg: Option<&CStr>) -> Self { in new()
132 errmsg: errmsg.map(CStr::to_string_lossy).map(Cow::into_owned), in new()
143 if let Some(errmsg) = &self.errmsg { in fmt()
144 write!(f, "{:?}: {}: {}", self.errno, errmsg, self.errno.desc()) in fmt()
380 let mut errmsg = vec![0u8; 255]; in nmount() localVariable
389 iov_base: errmsg.as_mut_ptr() as *mut c_void, in nmount()
390 iov_len: errmsg.len(), in nmount()
[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/node/deps/base64/base64/test/
Dbenchmark.c69 get_random_data (struct buffers *b, char **errmsg) in get_random_data() argument
75 *errmsg = "Error: CryptAcquireContext"; in get_random_data()
81 *errmsg = "Error: CryptGenRandom"; in get_random_data()
86 *errmsg = "Error: CryptReleaseContext"; in get_random_data()
98 *errmsg = "Cannot open " RANDOMDEV; in get_random_data()
106 *errmsg = "Read error"; in get_random_data()
241 char *errmsg = NULL; in main() local
250 errmsg = "Out of memory"; in main()
257 errmsg = "Out of memory"; in main()
263 if (get_random_data(&b, &errmsg) == false) { in main()
[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/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/glib/patch/
Dbackport-gregex-Use-pcre2-error-messages-if-we-dont-provide-a-specific-one.patch82 @@ -743,7 +777,6 @@ translate_compile_error (gint *errcode, const gchar **errmsg)
86 - *errmsg = _("internal error");
90 @@ -772,12 +805,10 @@ translate_compile_error (gint *errcode, const gchar **errmsg)
94 - *errmsg = _("internal error");
99 - g_assert (*errmsg != NULL);
127 translate_compile_error (&errcode, &errmsg);
129 + if (!errmsg)
131 + errmsg = _("unknown error");
142 - pattern, offset_str, errmsg);
144 + pcre2_errmsg ? pcre2_errmsg : errmsg);
Dbackport-replace-pcre1-with-pcre2.patch551 translate_compile_error (gint *errcode, const gchar **errmsg)
560 + * errmsg. If errcode is unknown we put the generic
572 *errmsg = _("\\ at end of pattern");
577 *errmsg = _("\\c at end of pattern");
583 *errmsg = _("unrecognized character following \\");
588 *errmsg = _("numbers out of order in {} quantifier");
593 *errmsg = _("number too big in {} quantifier");
598 *errmsg = _("missing terminating ] for character class");
603 *errmsg = _("invalid escape sequence in character class");
608 *errmsg = _("range out of order in character class");
[all …]
Dbackport-gregex-ensure-we-translate-the-errcode.patch12 So, set errcode and errmsg to invalid values before translating and
29 @@ -476,8 +476,12 @@ translate_compile_error (gint *errcode, const gchar **errmsg)
37 + *errmsg = NULL;
43 @@ -725,7 +729,7 @@ translate_compile_error (gint *errcode, const gchar **errmsg)
49 g_assert (*errmsg != NULL);
/third_party/node/src/api/
Dexceptions.cc158 char* errmsg = nullptr; in winapi_strerror() local
165 reinterpret_cast<LPTSTR>(&errmsg), in winapi_strerror()
169 if (errmsg) { in winapi_strerror()
173 for (int i = strlen(errmsg) - 1; in winapi_strerror()
174 i >= 0 && (errmsg[i] == '\n' || errmsg[i] == '\r'); in winapi_strerror()
176 errmsg[i] = '\0'; in winapi_strerror()
179 return errmsg; in winapi_strerror()
/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()

12345