FreeBSD Bugzilla – Attachment 7049 Details for
Bug 15553
Linux Emulation don't emulate accept(2) exactly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 706 bytes, created by
kumabu
on 1999-12-18 21:30:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
kumabu
Created:
1999-12-18 21:30:00 UTC
Size:
706 bytes
patch
obsolete
>--- linux_socket.c.~1~ Sun Dec 19 05:39:34 1999 >+++ linux_socket.c Sun Dec 19 05:52:04 1999 >@@ -43,6 +43,9 @@ > #include <sys/socket.h> > #include <sys/uio.h> > >+#include <sys/socketvar.h> >+#include <sys/file.h> >+ > #include <netinet/in.h> > #include <netinet/in_systm.h> > #include <netinet/ip.h> >@@ -448,7 +451,19 @@ > bsd_args.s = linux_args.s; > bsd_args.name = (caddr_t)linux_args.addr; > bsd_args.anamelen = linux_args.namelen; >+#if 0 > return oaccept(p, &bsd_args); >+#else >+ { >+ struct file *fp; >+ error = oaccept(p, &bsd_args); >+ if (!error) { >+ getsock(p->p_fd, p->p_retval[0], &fp); >+ fp->f_flag = O_RDWR; >+ } >+ return error; >+ } >+#endif > } > > struct linux_getsockname_args {
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 15553
: 7049