Home
last modified time | relevance | path

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

123

/system/core/libsync/
Dsync.c39 int err; in sync_merge() local
44 err = ioctl(fd1, SYNC_IOC_MERGE, &data); in sync_merge()
45 if (err < 0) in sync_merge()
46 return err; in sync_merge()
54 int err; in sync_fence_info() local
61 err = ioctl(fd, SYNC_IOC_FENCE_INFO, info); in sync_fence_info()
62 if (err < 0) { in sync_fence_info()
105 int err; in sw_sync_fence_create() local
110 err = ioctl(fd, SW_SYNC_IOC_CREATE_FENCE, &data); in sw_sync_fence_create()
111 if (err < 0) in sw_sync_fence_create()
[all …]
Dsync_test.c38 int err; in sync_thread() local
42 err = sync_wait(sync_data->fd[i], 10000); in sync_thread()
45 if (err < 0) { in sync_thread()
122 int err; in main() local
125 err = sw_sync_timeline_inc(sync_timeline_fd, 1); in main()
126 if (err < 0) { in main()
/system/core/libcutils/
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/adb/
Dget_my_path_freebsd.c32 int err = readlink(proc, exe, maxLen - 1); in get_my_path() local
34 exe[err > 0 ? err : 0] = '\0'; in get_my_path()
Dget_my_path_linux.c26 int err = readlink(proc, exe, maxLen - 1); in get_my_path() local
27 if(err > 0) { in get_my_path()
28 exe[err] = '\0'; in get_my_path()
/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/libsuspend/
Dautosuspend_autosleep.c47 goto err; in autosuspend_autosleep_enable()
54 err: in autosuspend_autosleep_enable()
69 goto err; in autosuspend_autosleep_disable()
76 err: in autosuspend_autosleep_disable()
Dautosuspend_earlysuspend.c50 goto err; in autosuspend_earlysuspend_enable()
57 err: in autosuspend_earlysuspend_enable()
72 goto err; in autosuspend_earlysuspend_disable()
79 err: in autosuspend_earlysuspend_disable()
/system/core/libpixelflinger/tests/codegen/
Dcodegen.cpp43 int err = assembler.scanline(needs, (context_t*)c); in ggl_test_codegen() local
44 if (err != 0) { in ggl_test_codegen()
45 printf("error %08x (%s)\n", err, strerror(-err)); in ggl_test_codegen()
/system/core/logcat/
Dlogcat.cpp109 int err; in rotateLogs() local
129 err = rename (file0, file1); in rotateLogs()
131 if (err < 0 && errno != ENOENT) { in rotateLogs()
163 int err; in processBuffer() local
168 err = android_log_processBinaryLogBuffer(buf, &entry, g_eventTagMap, in processBuffer()
173 err = android_log_processLogBuffer(buf, &entry); in processBuffer()
175 if (err < 0) { in processBuffer()
459 int err; in main() local
576 err = setLogFormat (optarg); in main()
577 if (err < 0) { in main()
[all …]
/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.c183 int err; in read_central_dir() local
219 err = read_central_dir_values(file, eocd, (buf+bufsize)-eocd); in read_central_dir()
220 if (err != 0) { in read_central_dir()
238 err = read_central_directory_entry(file, entry, &p, &len); in read_central_dir()
239 if (err != 0) { in read_central_dir()
/system/core/libpixelflinger/codeflinger/
DCodeCache.cpp153 ssize_t err = mCacheData.add(key_t(keyBase), cache_entry_t(assembly, mWhen)); in cache() local
154 if (err >= 0) { in cache()
161 err = cacheflush(base, curr, 0); in cache()
162 ALOGE_IF(err, "__ARM_NR_cacheflush error %s\n", in cache()
168 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/toolbox/
Dls.c369 int err; in listdir() local
386 err = stat(tmp, &s); in listdir()
388 err = lstat(tmp, &s); in listdir()
390 if (err < 0) { in listdir()
415 int err; in listpath() local
422 err = stat(name, &s); in listpath()
424 err = lstat(name, &s); in listpath()
426 if (err < 0) { in listpath()
448 int err = 0; in ls_main() local
480 err = EXIT_FAILURE; in ls_main()
[all …]
Dkill.c135 int err = kill(pid, sig); in kill_main() local
136 if (err < 0) { in kill_main()
137 result = err; in kill_main()
/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()
/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/vold/
Dlogwrapper.c152 int err = set_sched_policy(getpid(), SP_BACKGROUND); in logwrap() local
153 if (err < 0) { in logwrap()
155 "Unable to background process (%s)", strerror(-err)); in logwrap()
/system/extras/tests/memtest/
Dmemtest.cpp111 int err = -1; in main() local
112 if (!strcmp(argv[1], "cpufreq")) err = cpufreq_test(argc-1, argv+1); in main()
113 else if (!strcmp(argv[1], "memcpy")) err = memcpy_test(argc-1, argv+1); in main()
114 else if (!strcmp(argv[1], "memset")) err = memset_test(argc-1, argv+1); in main()
115 else if (!strcmp(argv[1], "memcmp")) err = memcmp_test(argc-1, argv+1); in main()
116 else if (!strcmp(argv[1], "strlen")) err = strlen_test(argc-1, argv+1); in main()
117 else if (!strcmp(argv[1], "malloc")) err = malloc_test(argc-1, argv+1); in main()
118 else if (!strcmp(argv[1], "madvise")) err = madvise_test(argc-1, argv+1); in main()
119 else if (!strcmp(argv[1], "crash")) err = crash_test(argc-1, argv+1); in main()
120 else if (!strcmp(argv[1], "stack")) err = stack_smasher_test(argc-1, argv+1); in main()
[all …]
/system/core/liblog/
Dlogprint.c313 int err; in android_log_addFilterString() local
319 err = android_log_addFilterRule(p_format, p_ret); in android_log_addFilterString()
321 if (err < 0) { in android_log_addFilterString()
943 int err; in logprint_run_tests() local
985 err = android_log_addFilterRule(p_format, "random:z"); in logprint_run_tests()
986 assert (err < 0); in logprint_run_tests()
991 err = android_log_addFilterString(p_format, " "); in logprint_run_tests()
992 assert(err == 0); in logprint_run_tests()
996 err = android_log_addFilterString(p_format, "*:s random:d "); in logprint_run_tests()
997 assert(err == 0); in logprint_run_tests()
[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()

123