linux_file.h (256281) | linux_file.h (293541) |
---|---|
1/*- 2 * Copyright (c) 2007 Roman Divacky 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2007 Roman Divacky 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: stable/10/sys/compat/linux/linux_file.h 246085 2013-01-29 18:41:30Z jhb $ | 26 * $FreeBSD: stable/10/sys/compat/linux/linux_file.h 293541 2016-01-09 16:31:10Z dchagin $ |
27 */ 28 29#ifndef _LINUX_FILE_H_ 30#define _LINUX_FILE_H_ 31 32#define LINUX_AT_FDCWD -100 33#define LINUX_AT_SYMLINK_NOFOLLOW 0x100 34#define LINUX_AT_EACCESS 0x200 --- 14 unchanged lines hidden (view full) --- 49 * mount flags 50 */ 51#define LINUX_MS_RDONLY 0x0001 52#define LINUX_MS_NOSUID 0x0002 53#define LINUX_MS_NODEV 0x0004 54#define LINUX_MS_NOEXEC 0x0008 55#define LINUX_MS_REMOUNT 0x0020 56 | 27 */ 28 29#ifndef _LINUX_FILE_H_ 30#define _LINUX_FILE_H_ 31 32#define LINUX_AT_FDCWD -100 33#define LINUX_AT_SYMLINK_NOFOLLOW 0x100 34#define LINUX_AT_EACCESS 0x200 --- 14 unchanged lines hidden (view full) --- 49 * mount flags 50 */ 51#define LINUX_MS_RDONLY 0x0001 52#define LINUX_MS_NOSUID 0x0002 53#define LINUX_MS_NODEV 0x0004 54#define LINUX_MS_NOEXEC 0x0008 55#define LINUX_MS_REMOUNT 0x0020 56 |
57/* 58 * common open/fcntl flags 59 */ 60#define LINUX_O_RDONLY 00000000 61#define LINUX_O_WRONLY 00000001 62#define LINUX_O_RDWR 00000002 63#define LINUX_O_ACCMODE 00000003 64#define LINUX_O_CREAT 00000100 65#define LINUX_O_EXCL 00000200 66#define LINUX_O_NOCTTY 00000400 67#define LINUX_O_TRUNC 00001000 68#define LINUX_O_APPEND 00002000 69#define LINUX_O_NONBLOCK 00004000 70#define LINUX_O_NDELAY LINUX_O_NONBLOCK 71#define LINUX_O_SYNC 00010000 72#define LINUX_FASYNC 00020000 73#define LINUX_O_DIRECT 00040000 /* Direct disk access hint */ 74#define LINUX_O_LARGEFILE 00100000 75#define LINUX_O_DIRECTORY 00200000 /* Must be a directory */ 76#define LINUX_O_NOFOLLOW 00400000 /* Do not follow links */ 77#define LINUX_O_NOATIME 01000000 78#define LINUX_O_CLOEXEC 02000000 79 80#define LINUX_F_DUPFD 0 81#define LINUX_F_GETFD 1 82#define LINUX_F_SETFD 2 83#define LINUX_F_GETFL 3 84#define LINUX_F_SETFL 4 85#ifndef LINUX_F_GETLK 86#define LINUX_F_GETLK 5 87#define LINUX_F_SETLK 6 88#define LINUX_F_SETLKW 7 89#endif 90#ifndef LINUX_F_SETOWN 91#define LINUX_F_SETOWN 8 92#define LINUX_F_GETOWN 9 93#endif 94 95#ifndef LINUX_F_RDLCK 96#define LINUX_F_RDLCK 0 97#define LINUX_F_WRLCK 1 98#define LINUX_F_UNLCK 2 99#endif 100 |
|
57#endif /* !_LINUX_FILE_H_ */ | 101#endif /* !_LINUX_FILE_H_ */ |