linux.h (293535) | linux.h (293541) |
---|---|
1/*- 2 * Copyright (c) 2013 Dmitry Chagin 3 * Copyright (c) 1994-1996 S��ren Schmidt 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (c) 2013 Dmitry Chagin 3 * Copyright (c) 1994-1996 S��ren Schmidt 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * |
29 * $FreeBSD: stable/10/sys/amd64/linux/linux.h 293535 2016-01-09 16:24:30Z dchagin $ | 29 * $FreeBSD: stable/10/sys/amd64/linux/linux.h 293541 2016-01-09 16:31:10Z dchagin $ |
30 */ 31 32#ifndef _AMD64_LINUX_H_ 33#define _AMD64_LINUX_H_ 34 35#include <amd64/linux/linux_syscall.h> 36 37/* --- 364 unchanged lines hidden (view full) --- 402 403struct l_rt_sigframe { 404 struct l_ucontext sf_sc; 405 struct l_siginfo sf_si; 406 l_handler_t sf_handler; 407}; 408 409/* | 30 */ 31 32#ifndef _AMD64_LINUX_H_ 33#define _AMD64_LINUX_H_ 34 35#include <amd64/linux/linux_syscall.h> 36 37/* --- 364 unchanged lines hidden (view full) --- 402 403struct l_rt_sigframe { 404 struct l_ucontext sf_sc; 405 struct l_siginfo sf_si; 406 l_handler_t sf_handler; 407}; 408 409/* |
410 * open/fcntl flags 411 */ 412#define LINUX_O_RDONLY 00000000 413#define LINUX_O_WRONLY 00000001 414#define LINUX_O_RDWR 00000002 415#define LINUX_O_ACCMODE 00000003 416#define LINUX_O_CREAT 00000100 417#define LINUX_O_EXCL 00000200 418#define LINUX_O_NOCTTY 00000400 419#define LINUX_O_TRUNC 00001000 420#define LINUX_O_APPEND 00002000 421#define LINUX_O_NONBLOCK 00004000 422#define LINUX_O_NDELAY LINUX_O_NONBLOCK 423#define LINUX_O_SYNC 00010000 424#define LINUX_FASYNC 00020000 425#define LINUX_O_DIRECT 00040000 /* Direct disk access hint */ 426#define LINUX_O_LARGEFILE 00100000 427#define LINUX_O_DIRECTORY 00200000 /* Must be a directory */ 428#define LINUX_O_NOFOLLOW 00400000 /* Do not follow links */ 429#define LINUX_O_NOATIME 01000000 430#define LINUX_O_CLOEXEC 02000000 431 432#define LINUX_F_DUPFD 0 433#define LINUX_F_GETFD 1 434#define LINUX_F_SETFD 2 435#define LINUX_F_GETFL 3 436#define LINUX_F_SETFL 4 437#define LINUX_F_GETLK 5 438#define LINUX_F_SETLK 6 439#define LINUX_F_SETLKW 7 440#define LINUX_F_SETOWN 8 441#define LINUX_F_GETOWN 9 442 443#define LINUX_F_RDLCK 0 444#define LINUX_F_WRLCK 1 445#define LINUX_F_UNLCK 2 446 447/* | |
448 * mount flags 449 */ 450#define LINUX_MS_RDONLY 0x0001 451#define LINUX_MS_NOSUID 0x0002 452#define LINUX_MS_NODEV 0x0004 453#define LINUX_MS_NOEXEC 0x0008 454#define LINUX_MS_REMOUNT 0x0020 455 --- 211 unchanged lines hidden --- | 410 * mount flags 411 */ 412#define LINUX_MS_RDONLY 0x0001 413#define LINUX_MS_NOSUID 0x0002 414#define LINUX_MS_NODEV 0x0004 415#define LINUX_MS_NOEXEC 0x0008 416#define LINUX_MS_REMOUNT 0x0020 417 --- 211 unchanged lines hidden --- |