linux.hh (6019:76890d8b28f5) linux.hh (6341:46819ffe2778)
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * Copyright (c) 2007-2008 The Florida State University
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

42 /// host open() flags.
43 static OpenFlagTransTable openFlagTable[];
44
45 /// Number of entries in openFlagTable[].
46 static const int NUM_OPEN_FLAGS;
47
48 //@{
49 /// open(2) flag values.
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * Copyright (c) 2007-2008 The Florida State University
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

42 /// host open() flags.
43 static OpenFlagTransTable openFlagTable[];
44
45 /// Number of entries in openFlagTable[].
46 static const int NUM_OPEN_FLAGS;
47
48 //@{
49 /// open(2) flag values.
50 static const int TGT_O_RDONLY = 0x00000000; //!< O_RDONLY
51 static const int TGT_O_WRONLY = 0x00000001; //!< O_WRONLY
52 static const int TGT_O_RDWR = 0x00000002; //!< O_RDWR
53 static const int TGT_O_CREAT = 0x00000100; //!< O_CREAT
54 static const int TGT_O_EXCL = 0x00000200; //!< O_EXCL
55 static const int TGT_O_NOCTTY = 0x00000400; //!< O_NOCTTY
56 static const int TGT_O_TRUNC = 0x00001000; //!< O_TRUNC
57 static const int TGT_O_APPEND = 0x00002000; //!< O_APPEND
58 static const int TGT_O_NONBLOCK = 0x00004000; //!< O_NONBLOCK
59 static const int TGT_O_SYNC = 0x00010000; //!< O_SYNC
60 static const int TGT_FASYNC = 0x00020000; //!< FASYNC
61 static const int TGT_O_DIRECT = 0x00040000; //!< O_DIRECT
62 static const int TGT_O_LARGEFILE = 0x00100000; //!< O_LARGEFILE
63 static const int TGT_O_DIRECTORY = 0x00200000; //!< O_DIRECTORY
64 static const int TGT_O_NOFOLLOW = 0x00400000; //!< O_NOFOLLOW
65 static const int TGT_O_NOATIME = 0x01000000; //!< O_NOATIME
50 static const int TGT_O_RDONLY = 00000000; //!< O_RDONLY
51 static const int TGT_O_WRONLY = 00000001; //!< O_WRONLY
52 static const int TGT_O_RDWR = 00000002; //!< O_RDWR
53 static const int TGT_O_CREAT = 00000100; //!< O_CREAT
54 static const int TGT_O_EXCL = 00000200; //!< O_EXCL
55 static const int TGT_O_NOCTTY = 00000400; //!< O_NOCTTY
56 static const int TGT_O_TRUNC = 00001000; //!< O_TRUNC
57 static const int TGT_O_APPEND = 00002000; //!< O_APPEND
58 static const int TGT_O_NONBLOCK = 00004000; //!< O_NONBLOCK
59 static const int TGT_O_SYNC = 00010000; //!< O_SYNC
60 static const int TGT_FASYNC = 00020000; //!< FASYNC
61 static const int TGT_O_DIRECTORY = 00040000; //!< O_DIRECTORY
62 static const int TGT_O_NOFOLLOW = 00100000; //!< O_NOFOLLOW
63 static const int TGT_O_DIRECT = 00200000; //!< O_DIRECT
64 static const int TGT_O_LARGEFILE = 00400000; //!< O_LARGEFILE
65 static const int TGT_O_NOATIME = 01000000; //!< O_NOATIME
66 //@}
67
68 /// For mmap().
69 static const unsigned TGT_MAP_ANONYMOUS = 0x800;
70
71 //@{
72 /// For getsysinfo().
66 //@}
67
68 /// For mmap().
69 static const unsigned TGT_MAP_ANONYMOUS = 0x800;
70
71 //@{
72 /// For getsysinfo().
73 static const unsigned GSI_PLATFORM_NAME = 103; //!< platform name as string
74 static const unsigned GSI_CPU_INFO = 59; //!< CPU information
75 static const unsigned GSI_PROC_TYPE = 60; //!< get proc_type
76 static const unsigned GSI_MAX_CPU = 30; //!< max # cpu's on this machine
77 static const unsigned GSI_CPUS_IN_BOX = 55; //!< number of CPUs in system
78 static const unsigned GSI_PHYSMEM = 19; //!< Physical memory in KB
79 static const unsigned GSI_CLK_TCK = 42; //!< clock freq in Hz
73 static const unsigned GSI_PLATFORM_NAME = 103; //!< platform name as string
74 static const unsigned GSI_CPU_INFO = 59; //!< CPU information
75 static const unsigned GSI_PROC_TYPE = 60; //!< get proc_type
76 static const unsigned GSI_MAX_CPU = 30; //!< max # cpu's on this machine
77 static const unsigned GSI_CPUS_IN_BOX = 55; //!< number of CPUs in system
78 static const unsigned GSI_PHYSMEM = 19; //!< Physical memory in KB
79 static const unsigned GSI_CLK_TCK = 42; //!< clock freq in Hz
80 //@}
81
82 //@{
83 /// For getrusage().
84 static const int TGT_RUSAGE_SELF = 0;
85 static const int TGT_RUSAGE_CHILDREN = -1;
86 static const int TGT_RUSAGE_BOTH = -2;
87 //@}

--- 41 unchanged lines hidden ---
80 //@}
81
82 //@{
83 /// For getrusage().
84 static const int TGT_RUSAGE_SELF = 0;
85 static const int TGT_RUSAGE_CHILDREN = -1;
86 static const int TGT_RUSAGE_BOTH = -2;
87 //@}

--- 41 unchanged lines hidden ---