Home
last modified time | relevance | path

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

12

/system/core/libcutils/
Dadb_networking.c48 int err; in adb_networking_connect_fd() local
63 err = connect(fd, (struct sockaddr *) &local_addr, sizeof(local_addr)); in adb_networking_connect_fd()
64 } while (err < 0 && errno == EINTR); in adb_networking_connect_fd()
66 if (err < 0) { in adb_networking_connect_fd()
82 err = write(fd, buf, 4); in adb_networking_connect_fd()
83 } while (err < 0 && errno == EINTR); in adb_networking_connect_fd()
87 err = write(fd, cmd, strlen(cmd)); in adb_networking_connect_fd()
88 } while (err < 0 && errno == EINTR); in adb_networking_connect_fd()
119 int err; in adb_networking_gethostbyname() local
136 err = write(fd, buf, 4); in adb_networking_gethostbyname()
[all …]
Dsocket_local_server.c58 int err; local
60 err = socket_make_sockaddr_un(name, namespaceId, &addr, &alen);
62 if (err < 0) {
97 int err; local
103 err = socket_local_server_bind(s, name, namespace);
105 if (err < 0) {
Dzygote.c166 int err; in zygote_run_wait() local
190 err = read(fd, &dummy, sizeof(dummy)); in zygote_run_wait()
191 } while ((err < 0 && errno == EINTR) || err != 0); in zygote_run_wait()
194 err = close(fd); in zygote_run_wait()
195 } while (err < 0 && errno == EINTR); in zygote_run_wait()
219 int err; in zygote_run_oneshot() local
234 err = nanosleep (&ts, &ts); in zygote_run_oneshot()
235 } while (err < 0 && errno == EINTR); in zygote_run_oneshot()
248 err = close(fd); in zygote_run_oneshot()
249 } while (err < 0 && errno == EINTR); in zygote_run_oneshot()
Dsocket_local_client.c130 int err; in socket_local_client_connect() local
132 err = socket_make_sockaddr_un(name, namespaceId, &addr, &alen); in socket_local_client_connect()
134 if (err < 0) { in socket_local_client_connect()
/system/core/logcat/
Dlogcat.cpp55 int err; in rotateLogs() local
75 err = rename (file0, file1); in rotateLogs()
77 if (err < 0 && errno != ENOENT) { in rotateLogs()
109 int err; in processBuffer() local
114 err = android_log_processBinaryLogBuffer(buf, &entry, g_eventTagMap, in processBuffer()
119 err = android_log_processLogBuffer(buf, &entry); in processBuffer()
121 if (err < 0) in processBuffer()
281 int err; in main() local
378 err = setLogFormat (optarg); in main()
379 if (err < 0) { in main()
[all …]
/system/wlan/ti/sta_dk_4_0_4_32/pform/linux/src/
Dioctl_utils.c104 int print_err_desc(int err) in print_err_desc() argument
109 if(configMgr_error_desc[i].err_code == err ) in print_err_desc()
111 print_err("---err(%d) configMgr() = %s\n", err, configMgr_error_desc[i].desc ); in print_err_desc()
112 return -err; in print_err_desc()
115 print_err("---err(%d) configMgr failed\n", err); in print_err_desc()
116 return -err; in print_err_desc()
/system/core/toolbox/
Dls.c186 int err; in listdir() local
201 err = stat(tmp, &s); in listdir()
203 err = lstat(tmp, &s); in listdir()
205 if (err < 0) { in listdir()
225 int err; in listpath() local
232 err = stat(name, &s); in listpath()
234 err = lstat(name, &s); in listpath()
236 if (err < 0) { in listpath()
263 int err = 0; in ls_main() local
275 err = EXIT_FAILURE; in ls_main()
[all …]
Dkill.c24 int err = kill(pid, sig); in kill_main() local
25 if (err < 0) { in kill_main()
26 result = err; in kill_main()
Dnewfs_msdos.c238 static void err(int val, const char *fmt, ...) { in err() function
399 err(1, NULL); in newfs_msdos_main()
411 err(1, "%s", fname); in newfs_msdos_main()
413 err(1, "%s", fname); in newfs_msdos_main()
528 err(1, NULL); in newfs_msdos_main()
531 err(1, "%s", bname); in newfs_msdos_main()
646 err(1, NULL); in newfs_msdos_main()
655 err(1, "%s", bname); in newfs_msdos_main()
659 err(1, "%s", bname); in newfs_msdos_main()
747 err(1, "%s", fname); in newfs_msdos_main()
[all …]
/system/core/adb/
Dget_my_path_linux.c26 int err = readlink(proc, exe, PATH_MAX - 1); in get_my_path() local
27 if(err > 0) { in get_my_path()
28 exe[err] = 0; in get_my_path()
Dcommandline.c518 int err; in ppp()
538 err = execvp("pppd", (char * const *)ppp_args); in ppp()
540 if (err < 0) { in ppp()
1243 int err; in install_app() local
1259 err = stat(filename, &st); in install_app()
1260 if (err != 0) { in install_app()
1270 if (!(err = do_sync_push(filename, to, 1 /* verify APK */))) { in install_app()
1277 return err; in install_app()
/system/core/fastboot/
Dutil_linux.c43 int err = readlink(proc, path, PATH_MAX - 1); in get_my_path() local
45 if(err <= 0) { in get_my_path()
48 path[err] = 0; in get_my_path()
/system/core/libpixelflinger/codeflinger/
DCodeCache.cpp131 ssize_t err = mCacheData.add(key_t(keyBase), cache_entry_t(assembly, mWhen)); in cache() local
132 if (err >= 0) { in cache()
139 err = cacheflush(base, curr, 0); in cache()
140 LOGE_IF(err, "__ARM_NR_cacheflush error %s\n", in cache()
146 return err; in cache()
DARMAssemblerInterface.cpp75 int err = buildImmediate(immediate, rot, imm); in imm() local
77 LOG_ALWAYS_FATAL_IF(err==-EINVAL, in imm()
81 LOG_ALWAYS_FATAL_IF(err, in imm()
/system/core/libzipfile/
Dzipfile.c12 int err; in init_zipfile() local
20 err = read_central_dir(file); in init_zipfile()
21 if (err != 0) goto fail; in init_zipfile()
83 int err = 0; in uninflate() local
108 err = -1; in uninflate()
112 return err; in uninflate()
Dtest_zipfile.c17 int err; in main() local
77 err = decompress_zipentry(entry, scratch, size); in main()
78 if (err != 0) { in main()
Dcentraldir.c185 int err; in read_central_dir() local
221 err = read_central_dir_values(file, eocd, (buf+bufsize)-eocd); in read_central_dir()
222 if (err != 0) { in read_central_dir()
240 err = read_central_directory_entry(file, entry, &p, &len); in read_central_dir()
241 if (err != 0) { in read_central_dir()
/system/core/sh/
Doptions.c406 int err = 0; in getopts() local
433 err |= setvarsafe("OPTARG", s, 0); in getopts()
450 err |= setvarsafe("OPTARG", s, 0); in getopts()
462 err |= setvarsafe("OPTARG", p, 0); in getopts()
465 err |= setvarsafe("OPTARG", "", 0); in getopts()
476 err |= setvarsafe("OPTIND", s, VNOFUNC); in getopts()
479 err |= setvarsafe(optvar, s, 0); in getopts()
480 if (err) { in getopts()
Dexec.c954 int err = 0; in typecmd() local
982 err = 1; in typecmd()
1029 err = 126; in typecmd()
1058 err = 127; in typecmd()
1062 return err; in typecmd()
/system/core/libpixelflinger/tinyutils/
DVectorImpl.cpp460 ssize_t err = NAME_NOT_FOUND; in _indexOrderOf() local
471 err = l = mid; in _indexOrderOf()
480 return err; in _indexOrderOf()
503 ssize_t err = add( reinterpret_cast<const char*>(buffer) + i*is ); in merge() local
504 if (err<0) { in merge()
505 return err; in merge()
515 ssize_t err = NO_ERROR; in merge() local
519 err = VectorImpl::insertVectorAt(static_cast<const VectorImpl&>(vector), 0); in merge()
521 err = VectorImpl::appendVector(static_cast<const VectorImpl&>(vector)); in merge()
524 err = merge(static_cast<const VectorImpl&>(vector)); in merge()
[all …]
/system/core/liblog/
Dlogprint.c314 int err; in android_log_addFilterString() local
320 err = android_log_addFilterRule(p_format, p_ret); in android_log_addFilterString()
322 if (err < 0) { in android_log_addFilterString()
899 int err; in logprint_run_tests() local
941 err = android_log_addFilterRule(p_format, "random:z"); in logprint_run_tests()
942 assert (err < 0); in logprint_run_tests()
947 err = android_log_addFilterString(p_format, " "); in logprint_run_tests()
948 assert(err == 0); in logprint_run_tests()
952 err = android_log_addFilterString(p_format, "*:s random:d "); in logprint_run_tests()
953 assert(err == 0); in logprint_run_tests()
[all …]
/system/extras/tests/memtest/
Dmemtest.cpp107 int err = -1; in main() local
108 if (!strcmp(argv[1], "cpufreq")) err = cpufreq_test(argc-1, argv+1); in main()
109 else if (!strcmp(argv[1], "memcpy")) err = memcpy_test(argc-1, argv+1); in main()
110 else if (!strcmp(argv[1], "memset")) err = memset_test(argc-1, argv+1); in main()
111 else if (!strcmp(argv[1], "memcmp")) err = memcmp_test(argc-1, argv+1); in main()
112 else if (!strcmp(argv[1], "strlen")) err = strlen_test(argc-1, argv+1); in main()
113 else if (!strcmp(argv[1], "malloc")) err = malloc_test(argc-1, argv+1); in main()
114 else if (!strcmp(argv[1], "madvise")) err = madvise_test(argc-1, argv+1); in main()
115 else if (!strcmp(argv[1], "crash")) err = crash_test(argc-1, argv+1); in main()
116 else if (!strcmp(argv[1], "stack")) err = stack_smasher_test(argc-1, argv+1); in main()
[all …]
/system/extras/tests/bionic/libc/other/
Dtest_jpeg.c70 cinfo->err->error_exit((j_common_ptr)cinfo); in _source_fill_input_buffer()
80 cinfo->err->error_exit((j_common_ptr)cinfo); in _source_skip_input_data()
127 ErrorMgr error = (ErrorMgr) cinfo->err; in _error_exit()
153 cinfo.err = jpeg_std_error(&errmgr.jpeg_mgr); in decompress()
/system/extras/tests/framebuffer/
Drefresh.c146 int err; in main() local
157 err = ioctl(fd, FBIOPUT_VSCREENINFO, &info); in main()
/system/core/sh/bltin/
Dbltin.h64 #define err sh_err macro

12