linux.hh (5991:3ca926101a5c) linux.hh (6378:4a2ff62c3b4f)
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;

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

63 static const int TGT_O_RSYNC = 0x00040000; //!< O_RSYNC
64 //@}
65
66 /// For mmap().
67 static const unsigned TGT_MAP_ANONYMOUS = 0x800;
68
69 //@{
70 /// For getsysinfo().
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;

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

63 static const int TGT_O_RSYNC = 0x00040000; //!< O_RSYNC
64 //@}
65
66 /// For mmap().
67 static const unsigned TGT_MAP_ANONYMOUS = 0x800;
68
69 //@{
70 /// For getsysinfo().
71 static const unsigned GSI_PLATFORM_NAME = 103; //!< platform name as string
72 static const unsigned GSI_CPU_INFO = 59; //!< CPU information
73 static const unsigned GSI_PROC_TYPE = 60; //!< get proc_type
74 static const unsigned GSI_MAX_CPU = 30; //!< max # cpu's on this machine
75 static const unsigned GSI_CPUS_IN_BOX = 55; //!< number of CPUs in system
76 static const unsigned GSI_PHYSMEM = 19; //!< Physical memory in KB
77 static const unsigned GSI_CLK_TCK = 42; //!< clock freq in Hz
71 static const unsigned GSI_PLATFORM_NAME = 103; //!< platform name as string
72 static const unsigned GSI_CPU_INFO = 59; //!< CPU information
73 static const unsigned GSI_PROC_TYPE = 60; //!< get proc_type
74 static const unsigned GSI_MAX_CPU = 30; //!< max # cpu's on this machine
75 static const unsigned GSI_CPUS_IN_BOX = 55; //!< number of CPUs in system
76 static const unsigned GSI_PHYSMEM = 19; //!< Physical memory in KB
77 static const unsigned GSI_CLK_TCK = 42; //!< clock freq in Hz
78 //@}
79
80 //@{
81 /// For getrusage().
82 static const int TGT_RUSAGE_SELF = 0;
83 static const int TGT_RUSAGE_CHILDREN = -1;
84 static const int TGT_RUSAGE_BOTH = -2;
85 //@}

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

--- 46 unchanged lines hidden ---