Deleted Added
full compact
ibcs2_fcntl.c (224778) ibcs2_fcntl.c (227691)
1/*-
2 * Copyright (c) 1995 Scott Bartram
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

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

21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1995 Scott Bartram
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

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

21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/sys/i386/ibcs2/ibcs2_fcntl.c 224778 2011-08-11 12:30:23Z rwatson $");
29__FBSDID("$FreeBSD: head/sys/i386/ibcs2/ibcs2_fcntl.c 227691 2011-11-19 06:35:15Z ed $");
30
31#include "opt_spx_hack.h"
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/capability.h>
36#include <sys/fcntl.h>
37#include <sys/file.h>

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

238ibcs2_access(td, uap)
239 struct thread *td;
240 struct ibcs2_access_args *uap;
241{
242 char *path;
243 int error;
244
245 CHECKALTEXIST(td, uap->path, &path);
30
31#include "opt_spx_hack.h"
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/capability.h>
36#include <sys/fcntl.h>
37#include <sys/file.h>

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

238ibcs2_access(td, uap)
239 struct thread *td;
240 struct ibcs2_access_args *uap;
241{
242 char *path;
243 int error;
244
245 CHECKALTEXIST(td, uap->path, &path);
246 error = kern_access(td, path, UIO_SYSSPACE, uap->flags);
246 error = kern_access(td, path, UIO_SYSSPACE, uap->amode);
247 free(path, M_TEMP);
248 return (error);
249}
250
251int
252ibcs2_fcntl(td, uap)
253 struct thread *td;
254 struct ibcs2_fcntl_args *uap;

--- 61 unchanged lines hidden ---
247 free(path, M_TEMP);
248 return (error);
249}
250
251int
252ibcs2_fcntl(td, uap)
253 struct thread *td;
254 struct ibcs2_fcntl_args *uap;

--- 61 unchanged lines hidden ---