FreeBSD Bugzilla – Attachment 8630 Details for
Bug 17991
linux module doesn't implement pread/pwrite
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 957 bytes, created by
Geoffrey C. Speicher
on 2000-04-13 21:30:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Geoffrey C. Speicher
Created:
2000-04-13 21:30:01 UTC
Size:
957 bytes
patch
obsolete
>*** /usr/src/sys/i386/linux/linux_file.c.orig Wed Apr 12 16:53:09 2000 >--- /usr/src/sys/i386/linux/linux_file.c Wed Apr 12 17:09:44 2000 >*************** >*** 891,893 **** >--- 891,930 ---- > bsd.fd = uap->fd; > return fsync(p, &bsd); > } >+ >+ int >+ linux_pread(struct proc *p, struct linux_pread_args *args) >+ { >+ struct pread_args /* { >+ int fd; >+ void *buf; >+ size_t nbyte; >+ int pad; >+ off_t offset; >+ } */ bsd; >+ >+ bsd.fd = args->d; >+ bsd.buf = args->buf; >+ bsd.nbyte = args->nbytes; >+ bsd.offset = args->offset; >+ return pread(p, &bsd); >+ } >+ >+ int >+ linux_pwrite(struct proc *p, struct linux_pwrite_args *args) >+ { >+ struct pwrite_args /* { >+ int fd; >+ const void *buf; >+ size_t nbyte; >+ int pad; >+ off_t offset; >+ } */ bsd; >+ >+ bsd.fd = args->d; >+ bsd.buf = args->buf; >+ bsd.nbyte = args->nbytes; >+ bsd.offset = args->offset; >+ return pwrite(p, &bsd); >+ } >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 17991
:
8629
| 8630 |
8631