linux.hh (5543:3af77710f397) linux.hh (5960:c9c465241d3b)
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * Redistribution and use of this software in source and binary forms,
6 * with or without modification, are permitted provided that the
7 * following conditions are met:
8 *

--- 99 unchanged lines hidden (view full) ---

108 static const unsigned TGT_MAP_ANONYMOUS = 0x20;
109
110 typedef struct {
111 uint64_t iov_base; // void *
112 uint64_t iov_len; // size_t
113 } tgt_iovec;
114};
115
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * Redistribution and use of this software in source and binary forms,
6 * with or without modification, are permitted provided that the
7 * following conditions are met:
8 *

--- 99 unchanged lines hidden (view full) ---

108 static const unsigned TGT_MAP_ANONYMOUS = 0x20;
109
110 typedef struct {
111 uint64_t iov_base; // void *
112 uint64_t iov_len; // size_t
113 } tgt_iovec;
114};
115
116class X86Linux32 : public Linux
117{
118 public:
119
120 static OpenFlagTransTable openFlagTable[];
121
122 static const int TGT_O_RDONLY = 00000000; //!< O_RDONLY
123 static const int TGT_O_WRONLY = 00000001; //!< O_WRONLY
124 static const int TGT_O_RDWR = 00000002; //!< O_RDWR
125 static const int TGT_O_NONBLOCK = 00004000; //!< O_NONBLOCK
126 static const int TGT_O_APPEND = 00002000; //!< O_APPEND
127 static const int TGT_O_CREAT = 00000100; //!< O_CREAT
128 static const int TGT_O_TRUNC = 00001000; //!< O_TRUNC
129 static const int TGT_O_EXCL = 00000200; //!< O_EXCL
130 static const int TGT_O_NOCTTY = 00000400; //!< O_NOCTTY
131 static const int TGT_O_SYNC = 00010000; //!< O_SYNC
132// static const int TGT_O_DRD = 0x00010000; //!< O_DRD
133// static const int TGT_O_DIRECTIO = 0x00020000; //!< O_DIRECTIO
134// static const int TGT_O_CACHE = 0x00002000; //!< O_CACHE
135// static const int TGT_O_DSYNC = 0x00008000; //!< O_DSYNC
136// static const int TGT_O_RSYNC = 0x00040000; //!< O_RSYNC
137
138 static const int NUM_OPEN_FLAGS;
139};
140
116#endif
141#endif