linux_socket.c (d9b063cc9d455f3952902a07db64d8d20e0a8302) | linux_socket.c (3980a435a2f6b57287c1d66bcb9c30b3d003b1e5) |
---|---|
1/*- 2 * Copyright (c) 1995 S�ren Schmidt 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 910 unchanged lines hidden (view full) --- 919 int flags; 920 struct sockaddr *from; 921 socklen_t fromlenaddr; 922 } */ bsd_args; 923 924 bsd_args.s = args->s; 925 bsd_args.buf = (caddr_t)PTRIN(args->msg); 926 bsd_args.len = args->len; | 1/*- 2 * Copyright (c) 1995 S�ren Schmidt 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 910 unchanged lines hidden (view full) --- 919 int flags; 920 struct sockaddr *from; 921 socklen_t fromlenaddr; 922 } */ bsd_args; 923 924 bsd_args.s = args->s; 925 bsd_args.buf = (caddr_t)PTRIN(args->msg); 926 bsd_args.len = args->len; |
927 bsd_args.flags = args->flags; | 927 bsd_args.flags = linux_to_bsd_msg_flags(args->flags); |
928 bsd_args.from = NULL; 929 bsd_args.fromlenaddr = 0; 930 return (recvfrom(td, &bsd_args)); 931} 932 933static int 934linux_sendto(struct thread *td, struct linux_sendto_args *args) 935{ --- 480 unchanged lines hidden --- | 928 bsd_args.from = NULL; 929 bsd_args.fromlenaddr = 0; 930 return (recvfrom(td, &bsd_args)); 931} 932 933static int 934linux_sendto(struct thread *td, struct linux_sendto_args *args) 935{ --- 480 unchanged lines hidden --- |