linux.h (293535) | linux.h (293541) |
---|---|
1/*- 2 * Copyright (c) 2004 Tim J. Robbins 3 * Copyright (c) 2001 Doug Rabson 4 * Copyright (c) 1994-1996 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 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * | 1/*- 2 * Copyright (c) 2004 Tim J. Robbins 3 * Copyright (c) 2001 Doug Rabson 4 * Copyright (c) 1994-1996 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 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * |
30 * $FreeBSD: stable/10/sys/amd64/linux32/linux.h 293535 2016-01-09 16:24:30Z dchagin $ | 30 * $FreeBSD: stable/10/sys/amd64/linux32/linux.h 293541 2016-01-09 16:31:10Z dchagin $ |
31 */ 32 33#ifndef _AMD64_LINUX_H_ 34#define _AMD64_LINUX_H_ 35 36#include <amd64/linux32/linux32_syscall.h> 37 38/* --- 476 unchanged lines hidden (view full) --- 515 l_uintptr_t sf_siginfo; 516 l_uintptr_t sf_ucontext; 517 l_siginfo_t sf_si; 518 struct l_ucontext sf_sc; 519 l_handler_t sf_handler; 520} __packed; 521 522/* | 31 */ 32 33#ifndef _AMD64_LINUX_H_ 34#define _AMD64_LINUX_H_ 35 36#include <amd64/linux32/linux32_syscall.h> 37 38/* --- 476 unchanged lines hidden (view full) --- 515 l_uintptr_t sf_siginfo; 516 l_uintptr_t sf_ucontext; 517 l_siginfo_t sf_si; 518 struct l_ucontext sf_sc; 519 l_handler_t sf_handler; 520} __packed; 521 522/* |
523 * open/fcntl flags | 523 * arch specific open/fcntl flags |
524 */ | 524 */ |
525#define LINUX_O_RDONLY 00000000 526#define LINUX_O_WRONLY 00000001 527#define LINUX_O_RDWR 00000002 528#define LINUX_O_ACCMODE 00000003 529#define LINUX_O_CREAT 00000100 530#define LINUX_O_EXCL 00000200 531#define LINUX_O_NOCTTY 00000400 532#define LINUX_O_TRUNC 00001000 533#define LINUX_O_APPEND 00002000 534#define LINUX_O_NONBLOCK 00004000 535#define LINUX_O_NDELAY LINUX_O_NONBLOCK 536#define LINUX_O_SYNC 00010000 537#define LINUX_FASYNC 00020000 538#define LINUX_O_DIRECT 00040000 /* Direct disk access hint */ 539#define LINUX_O_LARGEFILE 00100000 540#define LINUX_O_DIRECTORY 00200000 /* Must be a directory */ 541#define LINUX_O_NOFOLLOW 00400000 /* Do not follow links */ 542#define LINUX_O_NOATIME 01000000 543#define LINUX_O_CLOEXEC 02000000 544 545#define LINUX_F_DUPFD 0 546#define LINUX_F_GETFD 1 547#define LINUX_F_SETFD 2 548#define LINUX_F_GETFL 3 549#define LINUX_F_SETFL 4 550#define LINUX_F_GETLK 5 551#define LINUX_F_SETLK 6 552#define LINUX_F_SETLKW 7 553#define LINUX_F_SETOWN 8 554#define LINUX_F_GETOWN 9 555 | |
556#define LINUX_F_GETLK64 12 557#define LINUX_F_SETLK64 13 558#define LINUX_F_SETLKW64 14 559 | 525#define LINUX_F_GETLK64 12 526#define LINUX_F_SETLK64 13 527#define LINUX_F_SETLKW64 14 528 |
560#define LINUX_F_RDLCK 0 561#define LINUX_F_WRLCK 1 562#define LINUX_F_UNLCK 2 563 | |
564union l_semun { 565 l_int val; 566 l_uintptr_t buf; 567 l_uintptr_t array; 568 l_uintptr_t __buf; 569 l_uintptr_t __pad; 570} __packed; 571 --- 229 unchanged lines hidden --- | 529union l_semun { 530 l_int val; 531 l_uintptr_t buf; 532 l_uintptr_t array; 533 l_uintptr_t __buf; 534 l_uintptr_t __pad; 535} __packed; 536 --- 229 unchanged lines hidden --- |