예제 #1
0
        public virtual RC SetFileControl(FCNTL op, ref long pArg)
        {
            switch (op)
            {
            case FCNTL.LOCKSTATE:
                pArg = (int)Locktype;
                return(RC.OK);

            case FCNTL.LAST_ERRNO:
                pArg = (int)LastErrno;
                return(RC.OK);

            case FCNTL.CHUNK_SIZE:
                Chunk = (int)pArg;
                return(RC.OK);

            case FCNTL.SIZE_HINT:
                var sz = (long)pArg;
                Truncate(sz);
                return(RC.OK);

            case FCNTL.SYNC_OMITTED:
                return(RC.OK);
            }
            return(RC.NOTFOUND);
        }
예제 #2
0
 public override RC SetFileControl(FCNTL op, ref long pArg)
 {
     return(RC.NOTFOUND);
 }
예제 #3
0
 public override RC SetFileControl(FCNTL op, ref long pArg)
 {
     return RC.NOTFOUND;
 }
예제 #4
0
 public virtual RC FileControl(FCNTL op, ref long arg)
 {
     return(RC.NOTFOUND);
 }
예제 #5
0
 public virtual RC SetFileControl(FCNTL op, ref long pArg)
 {
     switch (op)
     {
         case FCNTL.LOCKSTATE:
             pArg = (int)Locktype;
             return RC.OK;
         case FCNTL.LAST_ERRNO:
             pArg = (int)LastErrno;
             return RC.OK;
         case FCNTL.CHUNK_SIZE:
             Chunk = (int)pArg;
             return RC.OK;
         case FCNTL.SIZE_HINT:
             var sz = (long)pArg;
             Truncate(sz);
             return RC.OK;
         case FCNTL.SYNC_OMITTED:
             return RC.OK;
     }
     return RC.NOTFOUND;
 }
예제 #6
0
파일: 30.VFile.cs 프로젝트: BclEx/GpuData
 public virtual RC FileControl(FCNTL op, ref long arg)
 {
     return RC.NOTFOUND;
 }