linux.hh (11382:654272b82e94) linux.hh (11383:5ac090acd180)
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
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 are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

97 static const int TGT_O_NOFOLLOW = 0x00020000; //!< O_NOFOLLOW
98 static const int TGT_O_NOATIME = 0x00040000; //!< O_NOATIME
99 static const int TGT_O_CLOEXEC = 0x00080000; //!< O_CLOEXEC
100 static const int TGT_O_SYNC = 0x00004010; //!< O_SYNC
101 static const int TGT_O_PATH = 0x00200000; //!< O_PATH
102 //@}
103
104 /// For mmap().
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
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 are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

97 static const int TGT_O_NOFOLLOW = 0x00020000; //!< O_NOFOLLOW
98 static const int TGT_O_NOATIME = 0x00040000; //!< O_NOATIME
99 static const int TGT_O_CLOEXEC = 0x00080000; //!< O_CLOEXEC
100 static const int TGT_O_SYNC = 0x00004010; //!< O_SYNC
101 static const int TGT_O_PATH = 0x00200000; //!< O_PATH
102 //@}
103
104 /// For mmap().
105 static const unsigned TGT_MAP_ANONYMOUS = 0x800;
106 static const unsigned TGT_MAP_FIXED = 0x10;
105 static SyscallFlagTransTable mmapFlagTable[];
107
106
107 static const unsigned TGT_MAP_SHARED = 0x00001;
108 static const unsigned TGT_MAP_PRIVATE = 0x00002;
109 static const unsigned TGT_MAP_ANON = 0x00800;
110 static const unsigned TGT_MAP_DENYWRITE = 0x02000;
111 static const unsigned TGT_MAP_EXECUTABLE = 0x04000;
112 static const unsigned TGT_MAP_FILE = 0x00000;
113 static const unsigned TGT_MAP_GROWSDOWN = 0x01000;
114 static const unsigned TGT_MAP_HUGETLB = 0x80000;
115 static const unsigned TGT_MAP_LOCKED = 0x08000;
116 static const unsigned TGT_MAP_NONBLOCK = 0x20000;
117 static const unsigned TGT_MAP_NORESERVE = 0x00400;
118 static const unsigned TGT_MAP_POPULATE = 0x10000;
119 static const unsigned TGT_MAP_STACK = 0x40000;
120 static const unsigned TGT_MAP_ANONYMOUS = 0x00800;
121 static const unsigned TGT_MAP_FIXED = 0x00010;
122
123 static const unsigned NUM_MMAP_FLAGS;
124
108 //@{
109 /// For getsysinfo().
110 static const unsigned GSI_PLATFORM_NAME = 103; //!< platform name as string
111 static const unsigned GSI_CPU_INFO = 59; //!< CPU information
112 static const unsigned GSI_PROC_TYPE = 60; //!< get proc_type
113 static const unsigned GSI_MAX_CPU = 30; //!< max # cpu's on this machine
114 static const unsigned GSI_CPUS_IN_BOX = 55; //!< number of CPUs in system
115 static const unsigned GSI_PHYSMEM = 19; //!< Physical memory in KB

--- 69 unchanged lines hidden ---
125 //@{
126 /// For getsysinfo().
127 static const unsigned GSI_PLATFORM_NAME = 103; //!< platform name as string
128 static const unsigned GSI_CPU_INFO = 59; //!< CPU information
129 static const unsigned GSI_PROC_TYPE = 60; //!< get proc_type
130 static const unsigned GSI_MAX_CPU = 30; //!< max # cpu's on this machine
131 static const unsigned GSI_CPUS_IN_BOX = 55; //!< number of CPUs in system
132 static const unsigned GSI_PHYSMEM = 19; //!< Physical memory in KB

--- 69 unchanged lines hidden ---