linux_file.c (346816) | linux_file.c (346831) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 1994-1995 S��ren Schmidt 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 --- 13 unchanged lines hidden (view full) --- 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 1994-1995 S��ren Schmidt 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 --- 13 unchanged lines hidden (view full) --- 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: stable/11/sys/compat/linux/linux_file.c 346816 2019-04-28 13:19:28Z dchagin $"); | 30__FBSDID("$FreeBSD: stable/11/sys/compat/linux/linux_file.c 346831 2019-04-28 13:45:18Z dchagin $"); |
31 32#include "opt_compat.h" 33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/capsicum.h> 37#include <sys/conf.h> 38#include <sys/dirent.h> --- 525 unchanged lines hidden (view full) --- 564 /* Linux convention. */ 565 if (args->amode & ~(F_OK | X_OK | W_OK | R_OK)) 566 return (EINVAL); 567 568 dfd = (args->dfd == LINUX_AT_FDCWD) ? AT_FDCWD : args->dfd; 569 LCONVPATHEXIST_AT(td, args->filename, &path, dfd); 570 571#ifdef DEBUG | 31 32#include "opt_compat.h" 33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/capsicum.h> 37#include <sys/conf.h> 38#include <sys/dirent.h> --- 525 unchanged lines hidden (view full) --- 564 /* Linux convention. */ 565 if (args->amode & ~(F_OK | X_OK | W_OK | R_OK)) 566 return (EINVAL); 567 568 dfd = (args->dfd == LINUX_AT_FDCWD) ? AT_FDCWD : args->dfd; 569 LCONVPATHEXIST_AT(td, args->filename, &path, dfd); 570 571#ifdef DEBUG |
572 if (ldebug(access)) | 572 if (ldebug(faccessat)) |
573 printf(ARGS(access, "%s, %d"), path, args->amode); 574#endif 575 576 error = kern_accessat(td, dfd, path, UIO_SYSSPACE, 0, args->amode); 577 LFREEPATH(path); 578 579 return (error); 580} --- 1091 unchanged lines hidden --- | 573 printf(ARGS(access, "%s, %d"), path, args->amode); 574#endif 575 576 error = kern_accessat(td, dfd, path, UIO_SYSSPACE, 0, args->amode); 577 LFREEPATH(path); 578 579 return (error); 580} --- 1091 unchanged lines hidden --- |