taglinefilesource code
flock16fs/fcntl.cextern int fcntl_getlk(unsigned int, struct flock *);
flock17fs/fcntl.cextern int fcntl_setlk(unsigned int, unsigned int, struct flock *);
flock95fs/fcntl.creturn fcntl_getlk(fd, (struct flock *) arg);
flock97fs/fcntl.creturn fcntl_setlk(fd, cmd, (struct flock *) arg);
flock99fs/fcntl.creturn fcntl_setlk(fd, cmd, (struct flock *) arg);
flock74fs/locks.cstruct flock *l);
flock118fs/locks.cint fcntl_getlk(unsigned int fd, struct flock *l)
flock121fs/locks.cstruct flock flock;
flock131fs/locks.cmemcpy_fromfs(&flock, l, sizeof(flock));
flock132fs/locks.cif ((flock.l_type == F_UNLCK) || (flock.l_type == F_EXLCK) ||
flock133fs/locks.c(flock.l_type == F_SHLCK))
flock136fs/locks.cif (!posix_make_lock(filp, &file_lock, &flock))
flock141fs/locks.cflock.l_pid = fl->fl_owner->pid;
flock142fs/locks.cflock.l_start = fl->fl_start;
flock143fs/locks.cflock.l_len = fl->fl_end == OFFSET_MAX ? 0 :
flock145fs/locks.cflock.l_whence = 0;
flock146fs/locks.cflock.l_type = fl->fl_type;
flock147fs/locks.cmemcpy_tofs(l, &flock, sizeof(flock));
flock152fs/locks.cflock.l_type = F_UNLCK;      /* no conflict found */
flock153fs/locks.cmemcpy_tofs(l, &flock, sizeof(flock));
flock161fs/locks.cint fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l)
flock166fs/locks.cstruct flock flock;
flock179fs/locks.cmemcpy_fromfs(&flock, l, sizeof(flock));
flock180fs/locks.cif (!posix_make_lock(filp, &file_lock, &flock))
flock183fs/locks.cswitch (flock.l_type) {
flock232fs/locks.cstruct flock *l)