View | Details | Raw Unified | Return to bug 15553
Collapse All | Expand All

(-)linux_socket.c (+15 lines)
Lines 43-48 Link Here
43
#include <sys/socket.h>
43
#include <sys/socket.h>
44
#include <sys/uio.h>
44
#include <sys/uio.h>
45
45
46
#include <sys/socketvar.h>
47
#include <sys/file.h>
48
46
#include <netinet/in.h>
49
#include <netinet/in.h>
47
#include <netinet/in_systm.h>
50
#include <netinet/in_systm.h>
48
#include <netinet/ip.h>
51
#include <netinet/ip.h>
Lines 448-454 Link Here
448
    bsd_args.s = linux_args.s;
451
    bsd_args.s = linux_args.s;
449
    bsd_args.name = (caddr_t)linux_args.addr;
452
    bsd_args.name = (caddr_t)linux_args.addr;
450
    bsd_args.anamelen = linux_args.namelen;
453
    bsd_args.anamelen = linux_args.namelen;
454
#if 0
451
    return oaccept(p, &bsd_args);
455
    return oaccept(p, &bsd_args);
456
#else
457
    {
458
	struct file *fp;
459
	error = oaccept(p, &bsd_args);
460
	if (!error) {
461
	    getsock(p->p_fd, p->p_retval[0], &fp);
462
	    fp->f_flag = O_RDWR;
463
	}
464
	return error;
465
    }
466
#endif
452
}
467
}
453
468
454
struct linux_getsockname_args {
469
struct linux_getsockname_args {

Return to bug 15553