The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/compat/svr4/svr4_fcntl.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*      $NetBSD: svr4_fcntl.h,v 1.9 2008/04/28 20:23:45 martin Exp $     */
    2 
    3 /*-
    4  * Copyright (c) 1994 The NetBSD Foundation, Inc.
    5  * All rights reserved.
    6  *
    7  * This code is derived from software contributed to The NetBSD Foundation
    8  * by Christos Zoulas.
    9  *
   10  * Redistribution and use in source and binary forms, with or without
   11  * modification, are permitted provided that the following conditions
   12  * are met:
   13  * 1. Redistributions of source code must retain the above copyright
   14  *    notice, this list of conditions and the following disclaimer.
   15  * 2. Redistributions in binary form must reproduce the above copyright
   16  *    notice, this list of conditions and the following disclaimer in the
   17  *    documentation and/or other materials provided with the distribution.
   18  *
   19  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   20  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   21  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   22  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   23  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   24  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   25  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   26  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   27  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   28  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   29  * POSSIBILITY OF SUCH DAMAGE.
   30  */
   31 
   32 #ifndef _SVR4_FCNTL_H_
   33 #define _SVR4_FCNTL_H_
   34 
   35 #include <compat/svr4/svr4_types.h>
   36 #include <sys/fcntl.h>
   37 
   38 #define SVR4_O_RDONLY           0x0000
   39 #define SVR4_O_WRONLY           0x0001
   40 #define SVR4_O_RDWR             0x0002
   41 #define SVR4_O_ACCMODE          0x0003
   42 #define SVR4_O_NDELAY           0x0004
   43 #define SVR4_O_APPEND           0x0008
   44 #define SVR4_O_SYNC             0x0010
   45 #define SVR4_O_DSYNC            0x0040
   46 #define SVR4_O_NONBLOCK         0x0080
   47 #define SVR4_O_CREAT            0x0100
   48 #define SVR4_O_TRUNC            0x0200
   49 #define SVR4_O_EXCL             0x0400
   50 #define SVR4_O_NOCTTY           0x0800
   51 #define SVR4_O_PRIV             0x1000
   52 #define SVR4_O_LARGEFILE        0x2000
   53 #define SVR4_O_RSYNC            0x8000
   54 
   55 
   56 #define SVR4_FD_CLOEXEC         1
   57 
   58 #define SVR4_F_DUPFD            0
   59 #define SVR4_F_GETFD            1
   60 #define SVR4_F_SETFD            2
   61 #define SVR4_F_GETFL            3
   62 #define SVR4_F_SETFL            4
   63 #define SVR4_F_GETLK_SVR3       5
   64 #define SVR4_F_SETLK            6
   65 #define SVR4_F_SETLKW           7
   66 #define SVR4_F_CHKFL            8
   67 #define SVR4_F_DUP2FD           9
   68 #define SVR4_F_ALLOCSP          10
   69 #define SVR4_F_FREESP           11
   70 
   71 #define SVR4_F_ISSTREAM         13
   72 #define SVR4_F_GETLK            14
   73 #define SVR4_F_PRIV             15
   74 #define SVR4_F_NPRIV            16
   75 #define SVR4_F_QUOTACTL         17
   76 #define SVR4_F_BLOCKS           18
   77 #define SVR4_F_BLKSIZE          19
   78 #define SVR4_F_RSETLK           20
   79 #define SVR4_F_RGETLK           21
   80 #define SVR4_F_RSETLKW          22
   81 #define SVR4_F_GETOWN           23
   82 #define SVR4_F_SETOWN           24
   83 #define SVR4_F_REVOKE           25
   84 #define SVR4_F_HASREMOTELOCKS   26
   85 #define SVR4_F_FREESP64         27
   86 
   87 #define SVR4_F_GETLK64          33
   88 #define SVR4_F_SETLK64          34
   89 #define SVR4_F_SETLKW64         35
   90 
   91 #define SVR4_F_SHARE            40
   92 #define SVR4_F_UNSHARE          41
   93 
   94 #define SVR4_F_CHSIZE_XENIX     0x6000
   95 #define SVR4_F_RDCHK_XENIX      0x6001
   96 #define SVR4_F_LK_UNLCK_XENIX   0x6300
   97 #define SVR4_F_LK_LOCK_XENIX    0x7200
   98 #define SVR4_F_LK_NBLCK_XENIX   0x6200
   99 #define SVR4_F_LK_RLCK_XENIX    0x7100
  100 #define SVR4_F_LK_NBRLCK_XENIX  0x6100
  101 
  102 #define SVR4_LK_CMDTYPE(x)   (((x) >> 12) & 0x7)
  103 #define SVR4_LK_LCKTYPE(x)   (((x) >> 8) & 0x7)
  104 
  105 #define SVR4_F_RDLCK    1
  106 #define SVR4_F_WRLCK    2
  107 #define SVR4_F_UNLCK    3
  108 
  109 struct svr4_flock_svr3 {
  110         short           l_type;
  111         short           l_whence;
  112         svr4_off_t      l_start;
  113         svr4_off_t      l_len;
  114         short           l_sysid;
  115         svr4_o_pid_t    l_pid;
  116 };
  117 
  118 
  119 struct svr4_flock {
  120         short           l_type;
  121         short           l_whence;
  122         svr4_off_t      l_start;
  123         svr4_off_t      l_len;
  124         long            l_sysid;
  125         svr4_pid_t      l_pid;
  126         long            pad[4];
  127 };
  128 
  129 struct svr4_flock64 {
  130         short           l_type;
  131         short           l_whence;
  132         svr4_off64_t    l_start;
  133         svr4_off64_t    l_len;
  134         long            l_sysid;
  135         svr4_pid_t      l_pid;
  136         long            pad[4];
  137 };
  138 #endif /* !_SVR4_FCNTL_H_ */

Cache object: d8c3d696180f62deab0f9af21eb5954a


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.