Deleted Added
full compact
vfs_extattr.c (146715) vfs_extattr.c (147137)
1/*-
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 21 unchanged lines hidden (view full) ---

30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94
35 */
36
37#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 21 unchanged lines hidden (view full) ---

30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94
35 */
36
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/sys/kern/vfs_extattr.c 146715 2005-05-28 13:11:35Z rwatson $");
38__FBSDID("$FreeBSD: head/sys/kern/vfs_extattr.c 147137 2005-06-08 13:22:10Z rodrigc $");
39
40#include "opt_compat.h"
41#include "opt_mac.h"
42
43#include <sys/param.h>
44#include <sys/systm.h>
45#include <sys/bio.h>
46#include <sys/buf.h>

--- 4493 unchanged lines hidden (view full) ---

4540 */
4541 auiop = NULL;
4542 sizep = NULL;
4543 cnt = 0;
4544 if (data != NULL) {
4545 aiov.iov_base = data;
4546 aiov.iov_len = nbytes;
4547 auio.uio_iov = &aiov;
39
40#include "opt_compat.h"
41#include "opt_mac.h"
42
43#include <sys/param.h>
44#include <sys/systm.h>
45#include <sys/bio.h>
46#include <sys/buf.h>

--- 4493 unchanged lines hidden (view full) ---

4540 */
4541 auiop = NULL;
4542 sizep = NULL;
4543 cnt = 0;
4544 if (data != NULL) {
4545 aiov.iov_base = data;
4546 aiov.iov_len = nbytes;
4547 auio.uio_iov = &aiov;
4548 auio.uio_iovcnt = 1;
4548 auio.uio_offset = 0;
4549 if (nbytes > INT_MAX) {
4550 error = EINVAL;
4551 goto done;
4552 }
4553 auio.uio_resid = nbytes;
4554 auio.uio_rw = UIO_READ;
4555 auio.uio_segflg = UIO_USERSPACE;

--- 270 unchanged lines hidden (view full) ---

4826
4827 auiop = NULL;
4828 sizep = NULL;
4829 cnt = 0;
4830 if (data != NULL) {
4831 aiov.iov_base = data;
4832 aiov.iov_len = nbytes;
4833 auio.uio_iov = &aiov;
4549 auio.uio_offset = 0;
4550 if (nbytes > INT_MAX) {
4551 error = EINVAL;
4552 goto done;
4553 }
4554 auio.uio_resid = nbytes;
4555 auio.uio_rw = UIO_READ;
4556 auio.uio_segflg = UIO_USERSPACE;

--- 270 unchanged lines hidden (view full) ---

4827
4828 auiop = NULL;
4829 sizep = NULL;
4830 cnt = 0;
4831 if (data != NULL) {
4832 aiov.iov_base = data;
4833 aiov.iov_len = nbytes;
4834 auio.uio_iov = &aiov;
4835 auio.uio_iovcnt = 1;
4834 auio.uio_offset = 0;
4835 if (nbytes > INT_MAX) {
4836 error = EINVAL;
4837 goto done;
4838 }
4839 auio.uio_resid = nbytes;
4840 auio.uio_rw = UIO_READ;
4841 auio.uio_segflg = UIO_USERSPACE;

--- 102 unchanged lines hidden ---
4836 auio.uio_offset = 0;
4837 if (nbytes > INT_MAX) {
4838 error = EINVAL;
4839 goto done;
4840 }
4841 auio.uio_resid = nbytes;
4842 auio.uio_rw = UIO_READ;
4843 auio.uio_segflg = UIO_USERSPACE;

--- 102 unchanged lines hidden ---