equal
deleted
inserted
replaced
74 # define WANT_SYSTEM |
74 # define WANT_SYSTEM |
75 # endif |
75 # endif |
76 #endif |
76 #endif |
77 |
77 |
78 #ifdef LINUX |
78 #ifdef LINUX |
|
79 |
|
80 /* |
|
81 * please think of a solution to this - |
|
82 * can it be solved without dynamic linking of librt.so ? |
|
83 */ |
|
84 # define NO_CLOCK_GETTIME |
|
85 |
79 # define __xxUSE_GNU /* new */ |
86 # define __xxUSE_GNU /* new */ |
80 # undef HAS_UTS_DOMAINNAME |
87 # undef HAS_UTS_DOMAINNAME |
81 # define NET_IF_SUPPORT |
88 # define NET_IF_SUPPORT |
82 |
89 |
83 # ifndef _STDIO_H_INCLUDED_ |
90 # ifndef _STDIO_H_INCLUDED_ |
8094 clock resolution value." |
8101 clock resolution value." |
8095 |
8102 |
8096 |seconds micros error| |
8103 |seconds micros error| |
8097 |
8104 |
8098 %{ |
8105 %{ |
8099 #if defined(_POSIX_MONOTONIC_CLOCK) |
8106 #if defined(_POSIX_MONOTONIC_CLOCK) && !defined(NO_CLOCK_GETTIME) |
8100 struct timespec ts; |
8107 struct timespec ts; |
8101 static int has_clock_gettime = 1; |
8108 static int has_clock_gettime = 1; |
8102 |
8109 |
8103 if (has_clock_gettime) { |
8110 if (has_clock_gettime) { |
8104 if (clock_gettime(CLOCK_MONOTONIC, &ts) != -1) { |
8111 if (clock_gettime(CLOCK_MONOTONIC, &ts) != -1) { |
8162 |
8169 |
8163 %{ /* NOCONTEXT */ |
8170 %{ /* NOCONTEXT */ |
8164 |
8171 |
8165 long t = 0; |
8172 long t = 0; |
8166 |
8173 |
8167 #if defined(_POSIX_MONOTONIC_CLOCK) |
8174 #if defined(_POSIX_MONOTONIC_CLOCK) && !defined(NO_CLOCK_GETTIME) |
8168 static has_clock_gettime = 1; |
8175 static has_clock_gettime = 1; |
8169 struct timespec ts; |
8176 struct timespec ts; |
8170 |
8177 |
8171 if (has_clock_gettime) { |
8178 if (has_clock_gettime) { |
8172 if (clock_gettime(CLOCK_MONOTONIC, &ts) != -1) { |
8179 if (clock_gettime(CLOCK_MONOTONIC, &ts) != -1) { |
12265 ! ! |
12272 ! ! |
12266 |
12273 |
12267 !UnixOperatingSystem class methodsFor:'documentation'! |
12274 !UnixOperatingSystem class methodsFor:'documentation'! |
12268 |
12275 |
12269 version |
12276 version |
12270 ^ '$Header: /cvs/stx/stx/libbasic/UnixOperatingSystem.st,v 1.218 2004-09-28 18:29:19 cg Exp $' |
12277 ^ '$Header: /cvs/stx/stx/libbasic/UnixOperatingSystem.st,v 1.219 2004-10-01 19:50:42 cg Exp $' |
12271 ! ! |
12278 ! ! |
12272 |
12279 |
12273 UnixOperatingSystem initialize! |
12280 UnixOperatingSystem initialize! |
12274 UnixOperatingSystem::FileDescriptorHandle initialize! |
12281 UnixOperatingSystem::FileDescriptorHandle initialize! |