Lines Matching refs:errno

21 #include <errno.h>
53 if (errno == ENOENT)
56 return log_warning_errno(errno, "Failed to open /proc/sysvipc/shm: %m");
86 if (errno == EIDRM || errno == EINVAL)
89 ret = log_warning_errno(errno,
98 return log_warning_errno(errno, "Failed to read /proc/sysvipc/shm: %m");
109 if (errno == ENOENT)
112 return log_warning_errno(errno, "Failed to open /proc/sysvipc/sem: %m");
137 if (errno == EIDRM || errno == EINVAL)
140 ret = log_warning_errno(errno,
149 return log_warning_errno(errno, "Failed to read /proc/sysvipc/sem: %m");
160 if (errno == ENOENT)
163 return log_warning_errno(errno, "Failed to open /proc/sysvipc/msg: %m");
189 if (errno == EIDRM || errno == EINVAL)
192 ret = log_warning_errno(errno,
201 return log_warning_errno(errno, "Failed to read /proc/sysvipc/msg: %m");
217 if (errno == ENOENT)
220 log_warning_errno(errno, "Failed to stat() POSIX shared memory segment %s: %m", de->d_name);
221 ret = -errno;
233 if (errno != ENOENT) {
234 log_warning_errno(errno, "Failed to enter shared memory directory %s: %m", de->d_name);
235 ret = -errno;
245 if (errno == ENOENT)
248 log_warning_errno(errno, "Failed to remove POSIX shared memory directory %s: %m", de->d_name);
249 ret = -errno;
255 if (errno == ENOENT)
258 log_warning_errno(errno, "Failed to remove POSIX shared memory segment %s: %m", de->d_name);
259 ret = -errno;
267 log_warning_errno(errno, "Failed to read /dev/shm: %m");
268 return -errno;
276 if (errno == ENOENT)
279 return log_warning_errno(errno, "Failed to open /dev/shm: %m");
292 if (errno == ENOENT)
295 return log_warning_errno(errno, "Failed to open /dev/mqueue: %m");
306 if (errno == ENOENT)
309 ret = log_warning_errno(errno,
322 if (errno == ENOENT)
325 ret = log_warning_errno(errno,
334 return log_warning_errno(errno, "Failed to read /dev/mqueue: %m");