linux.h (293535) | linux.h (293541) |
---|---|
1/*- 2 * Copyright (c) 1994-1996 S��ren Schmidt 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 --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 1994-1996 S��ren Schmidt 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 --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * |
28 * $FreeBSD: stable/10/sys/i386/linux/linux.h 293535 2016-01-09 16:24:30Z dchagin $ | 28 * $FreeBSD: stable/10/sys/i386/linux/linux.h 293541 2016-01-09 16:31:10Z dchagin $ |
29 */ 30 31#ifndef _I386_LINUX_H_ 32#define _I386_LINUX_H_ 33 34#include <sys/signal.h> /* for sigval union */ 35 36#include <i386/linux/linux_syscall.h> --- 455 unchanged lines hidden (view full) --- 492 l_siginfo_t sf_si; 493 struct l_ucontext sf_sc; 494 l_handler_t sf_handler; 495}; 496 497extern struct sysentvec linux_sysvec; 498 499/* | 29 */ 30 31#ifndef _I386_LINUX_H_ 32#define _I386_LINUX_H_ 33 34#include <sys/signal.h> /* for sigval union */ 35 36#include <i386/linux/linux_syscall.h> --- 455 unchanged lines hidden (view full) --- 492 l_siginfo_t sf_si; 493 struct l_ucontext sf_sc; 494 l_handler_t sf_handler; 495}; 496 497extern struct sysentvec linux_sysvec; 498 499/* |
500 * open/fcntl flags | 500 * arch specific open/fcntl flags |
501 */ | 501 */ |
502#define LINUX_O_RDONLY 00000000 503#define LINUX_O_WRONLY 00000001 504#define LINUX_O_RDWR 00000002 505#define LINUX_O_ACCMODE 00000003 506#define LINUX_O_CREAT 00000100 507#define LINUX_O_EXCL 00000200 508#define LINUX_O_NOCTTY 00000400 509#define LINUX_O_TRUNC 00001000 510#define LINUX_O_APPEND 00002000 511#define LINUX_O_NONBLOCK 00004000 512#define LINUX_O_NDELAY LINUX_O_NONBLOCK 513#define LINUX_O_SYNC 00010000 514#define LINUX_FASYNC 00020000 515#define LINUX_O_DIRECT 00040000 /* Direct disk access hint */ 516#define LINUX_O_LARGEFILE 00100000 517#define LINUX_O_DIRECTORY 00200000 /* Must be a directory */ 518#define LINUX_O_NOFOLLOW 00400000 /* Do not follow links */ 519#define LINUX_O_NOATIME 01000000 520#define LINUX_O_CLOEXEC 02000000 521 522#define LINUX_F_DUPFD 0 523#define LINUX_F_GETFD 1 524#define LINUX_F_SETFD 2 525#define LINUX_F_GETFL 3 526#define LINUX_F_SETFL 4 527#define LINUX_F_GETLK 5 528#define LINUX_F_SETLK 6 529#define LINUX_F_SETLKW 7 530#define LINUX_F_SETOWN 8 531#define LINUX_F_GETOWN 9 532 | |
533#define LINUX_F_GETLK64 12 534#define LINUX_F_SETLK64 13 535#define LINUX_F_SETLKW64 14 536 | 502#define LINUX_F_GETLK64 12 503#define LINUX_F_SETLK64 13 504#define LINUX_F_SETLKW64 14 505 |
537#define LINUX_F_RDLCK 0 538#define LINUX_F_WRLCK 1 539#define LINUX_F_UNLCK 2 540 | |
541union l_semun { 542 l_int val; 543 struct l_semid_ds *buf; 544 l_ushort *array; 545 struct l_seminfo *__buf; 546 void *__pad; 547}; 548 --- 214 unchanged lines hidden --- | 506union l_semun { 507 l_int val; 508 struct l_semid_ds *buf; 509 l_ushort *array; 510 struct l_seminfo *__buf; 511 void *__pad; 512}; 513 --- 214 unchanged lines hidden --- |