12600SN/A/*
22600SN/A * Copyright (c) 2003-2005 The Regents of The University of Michigan
32600SN/A * All rights reserved.
42600SN/A *
52600SN/A * Redistribution and use in source and binary forms, with or without
62600SN/A * modification, are permitted provided that the following conditions are
72600SN/A * met: redistributions of source code must retain the above copyright
82600SN/A * notice, this list of conditions and the following disclaimer;
92600SN/A * redistributions in binary form must reproduce the above copyright
102600SN/A * notice, this list of conditions and the following disclaimer in the
112600SN/A * documentation and/or other materials provided with the distribution;
122600SN/A * neither the name of the copyright holders nor the names of its
132600SN/A * contributors may be used to endorse or promote products derived from
142600SN/A * this software without specific prior written permission.
152600SN/A *
162600SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
172600SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
182600SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
192600SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
202600SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
212600SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
222600SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
232600SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
242600SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
252600SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
262600SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
272665Ssaidi@eecs.umich.edu *
282665Ssaidi@eecs.umich.edu * Authors: Ali Saidi
292600SN/A */
302600SN/A
312600SN/A#ifndef __ARCH_SPARC_SOLARIS_SOLARIS_HH__
322600SN/A#define __ARCH_SPARC_SOLARIS_SOLARIS_HH__
332600SN/A
342600SN/A#include "kern/solaris/solaris.hh"
352600SN/A
362600SN/Aclass SparcSolaris : public Solaris
372600SN/A{
382600SN/A  public:
392600SN/A
4011381Sbrandon.potter@amd.com    static SyscallFlagTransTable openFlagTable[];
412600SN/A
425543Ssaidi@eecs.umich.edu    static const int TGT_O_RDONLY       = 0x00000000;   //!< O_RDONLY
435543Ssaidi@eecs.umich.edu    static const int TGT_O_WRONLY       = 0x00000001;   //!< O_WRONLY
445543Ssaidi@eecs.umich.edu    static const int TGT_O_RDWR         = 0x00000002;   //!< O_RDWR
455543Ssaidi@eecs.umich.edu    static const int TGT_O_NDELAY       = 0x00000004;   //!< O_NONBLOCK
465543Ssaidi@eecs.umich.edu    static const int TGT_O_APPEND       = 0x00000008;   //!< O_APPEND
472600SN/A    static const int TGT_O_SYNC         = 0x00000010;   //!< O_SYNC
482600SN/A    static const int TGT_O_DSYNC        = 0x00000040;   //!< O_SYNC
492600SN/A    static const int TGT_O_RSYNC        = 0x00008000;   //!< O_SYNC
502600SN/A    static const int TGT_O_NONBLOCK     = 0x00000080;   //!< O_NONBLOCK
512600SN/A    static const int TGT_O_PRIV         = 0x00001000;   //??
522600SN/A    static const int TGT_O_LARGEFILE    = 0x00002000;   //??
535543Ssaidi@eecs.umich.edu    static const int TGT_O_CREAT        = 0x00000100;   //!< O_CREAT
545543Ssaidi@eecs.umich.edu    static const int TGT_O_TRUNC        = 0x00000200;   //!< O_TRUNC
555543Ssaidi@eecs.umich.edu    static const int TGT_O_EXCL         = 0x00000400;   //!< O_EXCL
565543Ssaidi@eecs.umich.edu    static const int TGT_O_NOCTTY       = 0x00000800;   //!< O_NOCTTY
575543Ssaidi@eecs.umich.edu    static const int TGT_O_XATTR        = 0x00004000;   //??
582600SN/A
592600SN/A    static const int NUM_OPEN_FLAGS;
602600SN/A
6111383Sbrandon.potter@amd.com    /// For mmap().
6211383Sbrandon.potter@amd.com    static SyscallFlagTransTable mmapFlagTable[];
6311383Sbrandon.potter@amd.com
6411383Sbrandon.potter@amd.com    static const unsigned TGT_MAP_SHARED        = 0x00001;
6511383Sbrandon.potter@amd.com    static const unsigned TGT_MAP_PRIVATE       = 0x00002;
6611383Sbrandon.potter@amd.com    static const unsigned TGT_MAP_32BIT         = 0x00040;
6711383Sbrandon.potter@amd.com    static const unsigned TGT_MAP_ANON          = 0x00020;
6811383Sbrandon.potter@amd.com    static const unsigned TGT_MAP_DENYWRITE     = 0x00800;
6911383Sbrandon.potter@amd.com    static const unsigned TGT_MAP_EXECUTABLE    = 0x01000;
7011383Sbrandon.potter@amd.com    static const unsigned TGT_MAP_FILE          = 0x00000;
7111383Sbrandon.potter@amd.com    static const unsigned TGT_MAP_GROWSDOWN     = 0x00100;
7211383Sbrandon.potter@amd.com    static const unsigned TGT_MAP_HUGETLB       = 0x40000;
7311383Sbrandon.potter@amd.com    static const unsigned TGT_MAP_LOCKED        = 0x02000;
7411383Sbrandon.potter@amd.com    static const unsigned TGT_MAP_NONBLOCK      = 0x10000;
7511383Sbrandon.potter@amd.com    static const unsigned TGT_MAP_NORESERVE     = 0x04000;
7611383Sbrandon.potter@amd.com    static const unsigned TGT_MAP_POPULATE      = 0x08000;
7711383Sbrandon.potter@amd.com    static const unsigned TGT_MAP_STACK         = 0x20000;
7811383Sbrandon.potter@amd.com    static const unsigned TGT_MAP_ANONYMOUS     = 0x00020;
7911383Sbrandon.potter@amd.com    static const unsigned TGT_MAP_FIXED         = 0x00010;
8011383Sbrandon.potter@amd.com
8111383Sbrandon.potter@amd.com    static const unsigned NUM_MMAP_FLAGS;
822600SN/A};
832600SN/A
842600SN/A#endif
85