solaris.hh revision 5543
12SN/A/* 22188SN/A * Copyright (c) 2003-2005 The Regents of The University of Michigan 32SN/A * All rights reserved. 42SN/A * 52SN/A * Redistribution and use in source and binary forms, with or without 62SN/A * modification, are permitted provided that the following conditions are 72SN/A * met: redistributions of source code must retain the above copyright 82SN/A * notice, this list of conditions and the following disclaimer; 92SN/A * redistributions in binary form must reproduce the above copyright 102SN/A * notice, this list of conditions and the following disclaimer in the 112SN/A * documentation and/or other materials provided with the distribution; 122SN/A * neither the name of the copyright holders nor the names of its 132SN/A * contributors may be used to endorse or promote products derived from 142SN/A * this software without specific prior written permission. 152SN/A * 162SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 172SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 182SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 192SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 202SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 212SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 222SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 232SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 242SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 252SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 262SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 272665SN/A * 282665SN/A * Authors: Ali Saidi 292665SN/A */ 302SN/A 312SN/A#ifndef __ARCH_SPARC_SOLARIS_SOLARIS_HH__ 322683Sktlim@umich.edu#define __ARCH_SPARC_SOLARIS_SOLARIS_HH__ 332683Sktlim@umich.edu 342SN/A#include "kern/solaris/solaris.hh" 352190SN/A 363776Sgblack@eecs.umich.educlass SparcSolaris : public Solaris 373776Sgblack@eecs.umich.edu{ 384997Sgblack@eecs.umich.edu public: 391858SN/A 402680SN/A static OpenFlagTransTable openFlagTable[]; 412683Sktlim@umich.edu 422395SN/A static const int TGT_O_RDONLY = 0x00000000; //!< O_RDONLY 432190SN/A static const int TGT_O_WRONLY = 0x00000001; //!< O_WRONLY 442188SN/A static const int TGT_O_RDWR = 0x00000002; //!< O_RDWR 4556SN/A static const int TGT_O_NDELAY = 0x00000004; //!< O_NONBLOCK 46217SN/A static const int TGT_O_APPEND = 0x00000008; //!< O_APPEND 472SN/A static const int TGT_O_SYNC = 0x00000010; //!< O_SYNC 482SN/A static const int TGT_O_DSYNC = 0x00000040; //!< O_SYNC 492SN/A static const int TGT_O_RSYNC = 0x00008000; //!< O_SYNC 501858SN/A static const int TGT_O_NONBLOCK = 0x00000080; //!< O_NONBLOCK 512SN/A static const int TGT_O_PRIV = 0x00001000; //?? 521070SN/A static const int TGT_O_LARGEFILE = 0x00002000; //?? 531070SN/A static const int TGT_O_CREAT = 0x00000100; //!< O_CREAT 541917SN/A static const int TGT_O_TRUNC = 0x00000200; //!< O_TRUNC 551917SN/A static const int TGT_O_EXCL = 0x00000400; //!< O_EXCL 562521SN/A static const int TGT_O_NOCTTY = 0x00000800; //!< O_NOCTTY 572521SN/A static const int TGT_O_XATTR = 0x00004000; //?? 582521SN/A 593548Sgblack@eecs.umich.edu static const int NUM_OPEN_FLAGS; 603548Sgblack@eecs.umich.edu 613548Sgblack@eecs.umich.edu static const unsigned TGT_MAP_ANONYMOUS = 0x100; 623548Sgblack@eecs.umich.edu}; 632330SN/A 642330SN/A#endif 652SN/A