linux.hh (11382:654272b82e94) linux.hh (11383:5ac090acd180)
1/*
2 * Copyright (c) 2003-2005 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;

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

99 static const int TGT_O_NOFOLLOW = 000200000; //!< O_NOFOLLOW
100 static const int TGT_O_NOATIME = 004000000; //!< O_NOATIME
101 static const int TGT_O_CLOEXEC = 010000000; //!< O_CLOEXEC
102 static const int TGT_O_SYNC = 020040000; //!< O_SYNC
103 static const int TGT_O_PATH = 040000000; //!< O_PATH
104 //@}
105
106 /// For mmap().
1/*
2 * Copyright (c) 2003-2005 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;

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

99 static const int TGT_O_NOFOLLOW = 000200000; //!< O_NOFOLLOW
100 static const int TGT_O_NOATIME = 004000000; //!< O_NOATIME
101 static const int TGT_O_CLOEXEC = 010000000; //!< O_CLOEXEC
102 static const int TGT_O_SYNC = 020040000; //!< O_SYNC
103 static const int TGT_O_PATH = 040000000; //!< O_PATH
104 //@}
105
106 /// For mmap().
107 static const unsigned TGT_MAP_ANONYMOUS = 0x10;
108 static const unsigned TGT_MAP_FIXED = 0x100;
107 static SyscallFlagTransTable mmapFlagTable[];
109
108
109 static const unsigned TGT_MAP_SHARED = 0x000001;
110 static const unsigned TGT_MAP_PRIVATE = 0x000002;
111 static const unsigned TGT_MAP_ANON = 0x000010;
112 static const unsigned TGT_MAP_DENYWRITE = 0x002000;
113 static const unsigned TGT_MAP_EXECUTABLE = 0x004000;
114 static const unsigned TGT_MAP_FILE = 0x000000;
115 static const unsigned TGT_MAP_GROWSDOWN = 0x001000;
116 static const unsigned TGT_MAP_HUGETLB = 0x100000;
117 static const unsigned TGT_MAP_LOCKED = 0x008000;
118 static const unsigned TGT_MAP_NONBLOCK = 0x040000;
119 static const unsigned TGT_MAP_NORESERVE = 0x010000;
120 static const unsigned TGT_MAP_POPULATE = 0x020000;
121 static const unsigned TGT_MAP_STACK = 0x080000;
122 static const unsigned TGT_MAP_ANONYMOUS = 0x000010;
123 static const unsigned TGT_MAP_FIXED = 0x000100;
124
125 static const unsigned NUM_MMAP_FLAGS;
126
110 //@{
111 /// For getsysinfo().
112 static const unsigned GSI_PLATFORM_NAME = 103; //!< platform name as string
113 static const unsigned GSI_CPU_INFO = 59; //!< CPU information
114 static const unsigned GSI_PROC_TYPE = 60; //!< get proc_type
115 static const unsigned GSI_MAX_CPU = 30; //!< max # CPUs on machine
116 static const unsigned GSI_CPUS_IN_BOX = 55; //!< number of CPUs in system
117 static const unsigned GSI_PHYSMEM = 19; //!< Physical memory in KB

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

--- 70 unchanged lines hidden ---