Lines Matching refs:err
143 int err;
150 err = sigaction (SIGCHLD, &sa, NULL);
152 if (err < 0) {
162 int err;
169 err = sigaction (SIGCHLD, &sa, NULL);
171 if (err < 0) {
226 int err;
236 err = setrlimit(contents[0], &rlim);
238 if (err < 0) {
551 int err;
560 err = prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0);
562 if (err < 0) {
569 err = prctl(PR_CAPBSET_DROP, i, 0, 0, 0);
570 if (err < 0) {
586 err = mountEmulatedStorage(uid, mountMode);
587 if (err < 0) {
602 err = setgroupsIntarray(gids);
603 if (err < 0) {
608 err = setrlimitsFromArray(rlimits);
609 if (err < 0) {
614 err = setresgid(gid, gid, gid);
615 if (err < 0) {
620 err = setresuid(uid, uid, uid);
621 if (err < 0) {
634 err = setCapabilities(permittedCapabilities, effectiveCapabilities);
635 if (err != 0) {
637 permittedCapabilities, effectiveCapabilities, strerror(err));
641 err = set_sched_policy(0, SP_DEFAULT);
642 if (err < 0) {
643 ALOGE("cannot set_sched_policy(0, SP_DEFAULT): %s", strerror(-err));
647 err = setSELinuxContext(uid, isSystemServer, seInfo, niceName);
648 if (err < 0) {