Searched defs:err (Results 1 - 25 of 43) sorted by relevance

12

/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 Dservices.c363 D("shell exited fd=%d of pid=%d err=%d\n", fd, pid, errno);
505 char* err = "unknown error"; local
509 atransport *t = acquire_one_transport(sinfo->state, sinfo->transport, sinfo->serial, &err);
513 sendfailmsg(fd, err);
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/libcutils/
H A Dsocket_local_client.c130 int err; local
132 err = socket_make_sockaddr_un(name, namespaceId, &addr, &alen);
134 if (err < 0) {
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...]
/system/core/libzipfile/
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) {
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;
/system/netd/
H A DInterfaceController.cpp80 int err = dlclose(libh_); local
81 if (err) {
/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/libsync/
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) {
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...]
/system/core/sh/bltin/
H A Dbltin.h64 #define err sh_err macro
/system/core/toolbox/
H A Dkill.c137 int err = kill(pid, sig); local
138 if (err < 0) {
139 result = err;
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...]
/system/extras/tests/framebuffer/
H A Drefresh.c144 int err; local
155 err = ioctl(fd, FBIOPUT_VSCREENINFO, &info);
/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/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...]
/system/core/libsysutils/src/
H A DSocketClient.cpp38 int err = getsockopt(socket, SOL_SOCKET, SO_PEERCRED, &creds, &szCreds); local
39 if (err == 0) {
/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/libsparse/
H A Dsparse_read.c51 static void verbose_error(bool verbose, int err, const char *fmt, ...) argument
80 if (err == -EOVERFLOW) {
84 if (err == -EINVAL) {
86 } else if (err == -ENOMEM) {
90 sparse_print_verbose("Unknown error %d%s%s\n", err, s, at);
/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) {

Completed in 157 milliseconds

12