Commit 5008cd54 authored by Ramon Nou's avatar Ramon Nou
Browse files

fcntl wip3

parent b3eee164
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -1347,21 +1347,22 @@ fcntl(int fd, int cmd, ...) // TODO
                        (arg & FD_CLOEXEC));
                return 0;

            case F_GETLK:
            case F_GETLK: {
                DEBUG_INFO("[GKFS] F_GETLK {}", fd);
                auto res = real_fcntl(fd, cmd, arg);
                return res;

            case F_SETLK:
            }
            case F_SETLK: {
                DEBUG_INFO("[GKFS] F_SETLK {}", fd);
                auto res = real_fcntl(fd, cmd, arg);
                return res;

            }
            case F_SETLKW: // Used on S3D-IO
            {
                DEBUG_INFO("[GKFS] F_SETLKW {}", fd);
                auto res = real_fcntl(fd, cmd, arg);
                return res;
                
            }
            default:
                DEBUG_INFO("[GKFS] NOTSUPPORTED {}", fd);
                return -ENOTSUP;