Searched defs:operation (Results 1 - 3 of 3) sorted by relevance

/systemd/src/basic/
H A Dlockfile-util.h30 int operation; member in struct:LockFile
33 int make_lock_file(const char *p, int operation, LockFile *ret);
34 int make_lock_file_for(const char *p, int operation, LockFile *ret);
H A Dlockfile-util.c34 int make_lock_file(const char *p, int operation, LockFile *ret) { argument
56 .l_type = (operation & ~LOCK_NB) == LOCK_EX ? F_WRLCK : F_RDLCK,
65 r = fcntl(fd, (operation & LOCK_NB) ? F_OFD_SETLK : F_OFD_SETLKW, &fl);
70 r = flock(fd, operation);
93 ret->operation = operation;
101 int make_lock_file_for(const char *p, int operation, LockFile *ret) { argument
115 return make_lock_file(t, operation, ret);
131 (f->operation & ~LOCK_NB) == LOCK_SH) {
142 f->operation
[all...]
/systemd/src/shared/
H A Dmachine-image.c705 int image_path_lock(const char *path, int operation, LockFile *global, LockFile *local) { argument
732 r = make_lock_file_for(path, operation, &t);
739 r = make_lock_file(p, operation, global);
770 int image_name_lock(const char *name, int operation, LockFile *ret) { argument
787 return make_lock_file(p, operation, ret);

Completed in 1035 milliseconds