linux.hh (6691:cd68b6ecd68d) linux.hh (8324:aa7a67647c7b)
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * Copyright (c) 2009 The University of Edinburgh
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

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

121 static const int TGT_O_DIRECTORY = 00040000; //!< O_DIRECTORY
122 static const int TGT_O_NOFOLLOW = 00100000; //!< O_NOFOLLOW
123 static const int TGT_O_LARGEFILE = 00200000; //!< O_LARGEFILE
124 static const int TGT_O_DIRECT = 00400000; //!< O_DIRECT
125 static const int TGT_O_NOATIME = 01000000; //!< O_NOATIME
126 //@}
127
128 /// For mmap().
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * Copyright (c) 2009 The University of Edinburgh
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

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

121 static const int TGT_O_DIRECTORY = 00040000; //!< O_DIRECTORY
122 static const int TGT_O_NOFOLLOW = 00100000; //!< O_NOFOLLOW
123 static const int TGT_O_LARGEFILE = 00200000; //!< O_LARGEFILE
124 static const int TGT_O_DIRECT = 00400000; //!< O_DIRECT
125 static const int TGT_O_NOATIME = 01000000; //!< O_NOATIME
126 //@}
127
128 /// For mmap().
129 static const unsigned TGT_MAP_ANONYMOUS = 0x800;
129 static const unsigned TGT_MAP_ANONYMOUS = 0x20;
130
131 //@{
132 /// ioctl() command codes.
133 /// These are for the 2.6.15 kernel. Some have changed for
134 /// later versions.
135 static const unsigned TIOCGETP_ = 0x40067408;
136 static const unsigned TIOCSETP_ = 0x80067409;
137 static const unsigned TIOCSETN_ = 0x8006740a;
138 static const unsigned TIOCSETC_ = 0x80067411;
139 static const unsigned TIOCGETC_ = 0x40067412;
140 static const unsigned FIONREAD_ = 0x4004667f;
141 static const unsigned TIOCISATTY_ = 0x2000745e;
142 static const unsigned TIOCGETS_ = 0x402c7413;
143 static const unsigned TIOCGETA_ = 0x40147417;
144 static const unsigned TCSETAW_ = 0x80147419;
145 //@}
146};
147
148#endif // __ARCH_POWER_LINUX_LINUX_HH__
130
131 //@{
132 /// ioctl() command codes.
133 /// These are for the 2.6.15 kernel. Some have changed for
134 /// later versions.
135 static const unsigned TIOCGETP_ = 0x40067408;
136 static const unsigned TIOCSETP_ = 0x80067409;
137 static const unsigned TIOCSETN_ = 0x8006740a;
138 static const unsigned TIOCSETC_ = 0x80067411;
139 static const unsigned TIOCGETC_ = 0x40067412;
140 static const unsigned FIONREAD_ = 0x4004667f;
141 static const unsigned TIOCISATTY_ = 0x2000745e;
142 static const unsigned TIOCGETS_ = 0x402c7413;
143 static const unsigned TIOCGETA_ = 0x40147417;
144 static const unsigned TCSETAW_ = 0x80147419;
145 //@}
146};
147
148#endif // __ARCH_POWER_LINUX_LINUX_HH__