freebsd32_misc.c (ad58266704513b89140501ade9e48793a67cc1f1) | freebsd32_misc.c (dbb47e9264da2e11d60cea466a77cf008a387428) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2002 Doug Rabson 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 1590 unchanged lines hidden (view full) --- 1599out: 1600 free(iov, M_IOV); 1601 if (to) 1602 free(to, M_SONAME); 1603 return (error); 1604} 1605 1606int | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2002 Doug Rabson 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 1590 unchanged lines hidden (view full) --- 1599out: 1600 free(iov, M_IOV); 1601 if (to) 1602 free(to, M_SONAME); 1603 return (error); 1604} 1605 1606int |
1607freebsd32_recvfrom(struct thread *td, 1608 struct freebsd32_recvfrom_args *uap) 1609{ 1610 struct msghdr msg; 1611 struct iovec aiov; 1612 int error; 1613 1614 if (uap->fromlenaddr) { 1615 error = copyin(PTRIN(uap->fromlenaddr), &msg.msg_namelen, 1616 sizeof(msg.msg_namelen)); 1617 if (error) 1618 return (error); 1619 } else { 1620 msg.msg_namelen = 0; 1621 } 1622 1623 msg.msg_name = PTRIN(uap->from); 1624 msg.msg_iov = &aiov; 1625 msg.msg_iovlen = 1; 1626 aiov.iov_base = PTRIN(uap->buf); 1627 aiov.iov_len = uap->len; 1628 msg.msg_control = NULL; 1629 msg.msg_flags = uap->flags; 1630 error = kern_recvit(td, uap->s, &msg, UIO_USERSPACE, NULL); 1631 if (error == 0 && uap->fromlenaddr) 1632 error = copyout(&msg.msg_namelen, PTRIN(uap->fromlenaddr), 1633 sizeof (msg.msg_namelen)); 1634 return (error); 1635} 1636 1637int | |
1638freebsd32_settimeofday(struct thread *td, 1639 struct freebsd32_settimeofday_args *uap) 1640{ 1641 struct timeval32 tv32; 1642 struct timeval tv, *tvp; 1643 struct timezone tz, *tzp; 1644 int error; 1645 --- 2222 unchanged lines hidden --- | 1607freebsd32_settimeofday(struct thread *td, 1608 struct freebsd32_settimeofday_args *uap) 1609{ 1610 struct timeval32 tv32; 1611 struct timeval tv, *tvp; 1612 struct timezone tz, *tzp; 1613 int error; 1614 --- 2222 unchanged lines hidden --- |