Searched refs:err (Results 1 - 25 of 65) sorted by relevance

123

/system/core/adb/
H A Dget_my_path_freebsd.c32 int err = readlink(proc, exe, maxLen - 1); local
34 exe[err > 0 ? err : 0] = '\0';
H A Dget_my_path_linux.c26 int err = readlink(proc, exe, maxLen - 1); local
27 if(err > 0) {
28 exe[err] = '\0';
H A Dusb_linux_client.c271 goto err;
277 goto err;
283 goto err;
289 goto err;
295 goto err;
300 err:
416 int err; local
418 err = ioctl(h->bulk_in, FUNCTIONFS_CLEAR_HALT);
419 if (err < 0)
422 err
[all...]
/system/core/fastboot/
H A Dutil_linux.c43 int err = readlink(proc, path, PATH_MAX - 1); local
45 if(err <= 0) {
48 path[err] = 0;
/system/core/libsync/
H A Dsync.c40 int err; local
45 err = ioctl(fd1, SYNC_IOC_MERGE, &data);
46 if (err < 0)
47 return err;
55 int err; local
62 err = ioctl(fd, SYNC_IOC_FENCE_INFO, info);
63 if (err < 0) {
106 int err; local
111 err = ioctl(fd, SW_SYNC_IOC_CREATE_FENCE, &data);
112 if (err <
[all...]
H A Dsync_test.c38 int err; local
42 err = sync_wait(sync_data->fd[i], 10000);
45 if (err < 0) {
122 int err; local
125 err = sw_sync_timeline_inc(sync_timeline_fd, 1);
126 if (err < 0) {
/system/core/libsuspend/
H A Dautosuspend_earlysuspend.c50 int err = 0; local
55 err = read(fd, &buf, 1);
56 } while (err < 0 && errno == EINTR);
57 ALOGE_IF(err < 0,
60 return err < 0 ? err : 0;
65 int err = 0; local
70 err = read(fd, &buf, 1);
71 } while (err < 0 && errno == EINTR);
72 ALOGE_IF(err <
[all...]
H A Dautosuspend_autosleep.c47 goto err;
54 err:
69 goto err;
76 err:
/system/core/libcutils/
H A 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) {
H A Dzygote.c166 int err; local
190 err = read(fd, &dummy, sizeof(dummy));
191 } while ((err < 0 && errno == EINTR) || err != 0);
194 err = close(fd);
195 } while (err < 0 && errno == EINTR);
219 int err; local
234 err = nanosleep (&ts, &ts);
235 } while (err < 0 && errno == EINTR);
248 err
[all...]
H A Dsocket_local_client.c130 int err; local
132 err = socket_make_sockaddr_un(name, namespaceId, &addr, &alen);
134 if (err < 0) {
/system/core/libpixelflinger/tests/codegen/
H A Dcodegen.cpp56 int err = assembler.scanline(needs, (context_t*)c); local
57 if (err != 0) {
58 printf("error %08x (%s)\n", err, strerror(-err));
/system/core/libzipfile/
H A Dzipfile.c12 int err; local
20 err = read_central_dir(file);
21 if (err != 0) goto fail;
83 int err = 0; local
108 err = -1;
112 return err;
H A Dtest_zipfile.c17 int err; local
79 err = decompress_zipentry(entry, scratch, size);
80 if (err != 0) {
H A Dcentraldir.c183 int err; local
219 err = read_central_dir_values(file, eocd, (buf+bufsize)-eocd);
220 if (err != 0) {
238 err = read_central_directory_entry(file, entry, &p, &len);
239 if (err != 0) {
/system/core/toolbox/
H A Dls.c369 int err; local
386 err = stat(tmp, &s);
388 err = lstat(tmp, &s);
390 if (err < 0) {
415 int err; local
422 err = stat(name, &s);
424 err = lstat(name, &s);
426 if (err < 0) {
448 int err = 0; local
480 err
[all...]
H A Dkill.c137 int err = kill(pid, sig); local
138 if (err < 0) {
139 result = err;
/system/netd/
H A DInterfaceController.cpp80 int err = dlclose(libh_); local
81 if (err) {
/system/core/libpixelflinger/codeflinger/
H A DCodeCache.cpp199 ssize_t err = mCacheData.add(key_t(keyBase), cache_entry_t(assembly, mWhen)); local
200 if (err >= 0) {
207 err = cacheflush(base, curr, 0);
208 ALOGE_IF(err, "cacheflush error %s\n",
214 return err;
/system/core/logcat/
H A Dlogcat.cpp109 int err; local
129 err = rename (file0, file1);
131 if (err < 0 && errno != ENOENT) {
163 int err; local
168 err = android_log_processBinaryLogBuffer(buf, &entry, g_eventTagMap,
173 err = android_log_processLogBuffer(buf, &entry);
175 if (err < 0) {
459 int err; local
576 err = setLogFormat (optarg);
577 if (err <
[all...]
/system/vold/
H A Dlogwrapper.c152 int err = set_sched_policy(getpid(), SP_BACKGROUND); local
153 if (err < 0) {
155 "Unable to background process (%s)", strerror(-err));
/system/core/libpixelflinger/tinyutils/
H A DVectorImpl.cpp460 ssize_t err = NAME_NOT_FOUND;
471 err = l = mid;
480 return err;
503 ssize_t err = add( reinterpret_cast<const char*>(buffer) + i*is );
504 if (err<0) {
505 return err;
515 ssize_t err = NO_ERROR;
519 err = VectorImpl::insertVectorAt(static_cast<const VectorImpl&>(vector), 0);
521 err = VectorImpl::appendVector(static_cast<const VectorImpl&>(vector));
524 err
[all...]
/system/core/sh/
H A Doptions.c406 int err = 0; local
433 err |= setvarsafe("OPTARG", s, 0);
450 err |= setvarsafe("OPTARG", s, 0);
462 err |= setvarsafe("OPTARG", p, 0);
465 err |= setvarsafe("OPTARG", "", 0);
476 err |= setvarsafe("OPTIND", s, VNOFUNC);
479 err |= setvarsafe(optvar, s, 0);
480 if (err) {
/system/core/toolbox/cp/
H A Dcp.c69 #include <err.h>
246 err(EXIT_FAILURE, "%s", to.p_path);
268 err(EXIT_FAILURE, "%s", *argv);
341 err(EXIT_FAILURE, "%s", argv[0]);
488 err(EXIT_FAILURE, "%s",
493 err(EXIT_FAILURE, "%s",
547 err(EXIT_FAILURE, "fts_read");
/system/extras/tests/memtest/
H A Dmemtest.cpp111 int err = -1; local
112 if (!strcmp(argv[1], "cpufreq")) err = cpufreq_test(argc-1, argv+1);
113 else if (!strcmp(argv[1], "memcpy")) err = memcpy_test(argc-1, argv+1);
114 else if (!strcmp(argv[1], "memset")) err = memset_test(argc-1, argv+1);
115 else if (!strcmp(argv[1], "memcmp")) err = memcmp_test(argc-1, argv+1);
116 else if (!strcmp(argv[1], "strlen")) err = strlen_test(argc-1, argv+1);
117 else if (!strcmp(argv[1], "malloc")) err = malloc_test(argc-1, argv+1);
118 else if (!strcmp(argv[1], "madvise")) err = madvise_test(argc-1, argv+1);
119 else if (!strcmp(argv[1], "crash")) err = crash_test(argc-1, argv+1);
120 else if (!strcmp(argv[1], "stack")) err
[all...]

Completed in 162 milliseconds

123