[BACK]Return to linux_file.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / compat / linux / common

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/compat/linux/common/linux_file.c between version 1.27 and 1.27.14.1

version 1.27, 1999/02/09 20:37:19 version 1.27.14.1, 1999/12/27 18:34:27
Line 835  linux_sys_fdatasync(p, v, retval)
Line 835  linux_sys_fdatasync(p, v, retval)
 #endif  #endif
         return sys_fsync(p, v, retval);          return sys_fsync(p, v, retval);
 }  }
   
   /*
    * pread(2).
    */
   int
   linux_sys_pread(p, v, retval)
           struct proc *p;
           void *v;
           register_t *retval;
   {
           struct linux_sys_pread_args /* {
                   syscallarg(int) fd;
                   syscallarg(void *) buf;
                   syscallarg(size_t) nbyte;
                   syscallarg(linux_off_t) offset;
           } */ *uap = v;
           struct sys_pread_args pra;
           caddr_t sg;
   
           sg = stackgap_init(p->p_emul);
   
           SCARG(&pra, fd) = SCARG(uap, fd);
           SCARG(&pra, buf) = SCARG(uap, buf);
           SCARG(&pra, nbyte) = SCARG(uap, nbyte);
           SCARG(&pra, offset) = SCARG(uap, offset);
   
           return sys_read(p, &pra, retval);
   }
   
   /*
    * pwrite(2).
    */
   int
   linux_sys_pwrite(p, v, retval)
           struct proc *p;
           void *v;
           register_t *retval;
   {
           struct linux_sys_pwrite_args /* {
                   syscallarg(int) fd;
                   syscallarg(void *) buf;
                   syscallarg(size_t) nbyte;
                   syscallarg(linux_off_t) offset;
           } */ *uap = v;
           struct sys_pwrite_args pra;
           caddr_t sg;
   
           sg = stackgap_init(p->p_emul);
   
           SCARG(&pra, fd) = SCARG(uap, fd);
           SCARG(&pra, buf) = SCARG(uap, buf);
           SCARG(&pra, nbyte) = SCARG(uap, nbyte);
           SCARG(&pra, offset) = SCARG(uap, offset);
   
           return sys_write(p, &pra, retval);
   }

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.27.14.1

CVSweb <webmaster@jp.NetBSD.org>