Lines Matching refs:errno

89   // It's necessary to save and restore the errno during this function.
90 // Since errno is stored per thread, changing it here modifies the errno
92 // between a call and an errno check, it's possible to get the errno set
95 int saved_errno = errno;
129 if (pid < 0 && errno != ECHILD) {
130 ALOGW("Zygote SIGCHLD error in waitpid: %s", strerror(errno));
133 errno = saved_errno;
150 ALOGW("Error setting SIGCHLD handler: %s", strerror(errno));
162 ALOGW("Error unsetting SIGCHLD handler: %s", strerror(errno));
228 if (errno == EINVAL) {
258 errno = -set_sched_policy(0, SP_DEFAULT);
259 if (errno != 0) {
270 ALOGE("Error opening /proc/mounts: %s", strerror(errno));
271 return -errno;
287 ALOGW("Failed to unmount %s: %s", path.c_str(), strerror(errno));
301 ALOGW("Failed to unshare(): %s", strerror(errno));
318 ALOGW("Failed to mount %s to /storage: %s", storageSource.string(), strerror(errno));
330 ALOGW("Failed to mount %s to /storage/self: %s", userSource.string(), strerror(errno));
376 ALOGE("Failed to open /dev/null: %s", strerror(errno));
380 ALOGV("Switching descriptor %d to /dev/null: %s", ar[i], strerror(errno));
382 ALOGE("Failed dup2() on descriptor %d: %s", ar[i], strerror(errno));
410 errno = pthread_setname_np(pthread_self(), buf);
411 if (errno != 0) {
412 ALOGW("Unable to set the name of current thread to '%s': %s", buf, strerror(errno));
483 ALOGW("Failed to mount emulated storage: %s", strerror(errno));
484 if (errno == ENOTCONN || errno == EROFS) {
518 ALOGE("setresgid(%d) failed: %s", gid, strerror(errno));
524 ALOGE("setresuid(%d) failed: %s", uid, strerror(errno));
533 ALOGW("personality(%d) failed: %s", new_personality, strerror(errno));