Lines Matching defs:err
44 int err = 0;
62 err = -EINVAL;
89 err = mkdir_parents_label(slink, 0755);
90 if (err != 0 && err != -ENOENT)
93 err = symlink(target, slink);
94 if (err != 0)
95 err = -errno;
97 } while (err == -ENOENT);
98 if (err == 0)
106 err = mkdir_parents_label(slink_tmp, 0755);
107 if (err != 0 && err != -ENOENT)
110 err = symlink(target, slink_tmp);
111 if (err != 0)
112 err = -errno;
114 } while (err == -ENOENT);
115 if (err != 0) {
119 err = rename(slink_tmp, slink);
120 if (err != 0) {
125 return err;
207 int err;
212 err = mkdir_parents(filename, 0755);
213 if (err != 0 && err != -ENOENT)
219 err = -errno;
220 } while (err == -ENOENT);
259 int err = 0;
267 err = log_debug_errno(errno, "can not stat() node '%s' (%m)", devnode);
272 err = -EEXIST;
284 err = chmod(devnode, mode);
285 if (err < 0)
287 err = chown(devnode, uid, gid);
288 if (err < 0)
334 return err;