Changeset fec3bde in git
- Timestamp:
- Mar 17, 2011, 1:41:54 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 2815e8ac192a591e3d2618c320e12f21d3e7a2cd
- Parents:
- fbb23ba606a10b85b9967f56b46d70c6ed807282
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/configure
rfbb23b rfec3bde 4022 4022 fi 4023 4023 for ac_func in gettimeofday atexit bcopy getcwd getwd vsnprintf readlink \ 4024 sleep usleep getpwnam popen setenv siginterrupt sysconf 4024 sleep usleep getpwnam popen setenv siginterrupt sysconf pselect 4025 4025 do 4026 4026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -
Singular/configure.in
rfbb23b rfec3bde 826 826 AC_SEARCH_LIBS(setenv, bsd) 827 827 AC_CHECK_FUNCS(gettimeofday atexit bcopy getcwd getwd vsnprintf readlink \ 828 sleep usleep getpwnam popen setenv siginterrupt sysconf )828 sleep usleep getpwnam popen setenv siginterrupt sysconf pselect) 829 829 830 830 -
Singular/mod2.h.in
rfbb23b rfec3bde 108 108 /* Define if you have siginterrupt (BSD4.3) */ 109 109 #undef HAVE_SIGINTERRUPT 110 /* Define if you have pselect */ 111 #undef HAVE_PSELECT 110 112 /* define for boost includes and lib */ 111 113 //////////////////////// #undef HAVE_BOOST_DYNAMIC_BITSET_HPP -
Singular/ssiLink.cc
rfbb23b rfec3bde 1220 1220 1221 1221 /* timeout */ 1222 #ifdef HAVE_PSELECT 1222 1223 struct timespec wt; 1224 struct timespec *wt_ptr=&wt; 1225 #else 1226 struct timeval wt; 1227 struct timeval *wt_ptr=&wt; 1228 #endif 1223 1229 int startingtime = getRTimer()/TIMER_RESOLUTION; // in seconds 1224 struct timespec *wt_ptr=&wt;1225 1230 if (timeout== -1) 1226 1231 { … … 1230 1235 { 1231 1236 wt.tv_sec = timeout / 1000000; 1237 #ifdef HAVE_PSELECT 1232 1238 wt.tv_nsec = 1000 * (timeout % 1000000); 1239 #else 1240 wt.tv_usec = timeout % 1000000; 1241 #endif 1233 1242 } 1234 1243 … … 1304 1313 1305 1314 /* check with select: chars waiting: no -> not ready */ 1315 #ifdef HAVE_PSELECT 1306 1316 s = pselect(max_fd, &mask, NULL, NULL, wt_ptr, &sigmask); 1317 #else 1318 sigset_t origsigmask; 1319 1320 sigprocmask(SIG_SETMASK, &sigmask, &origsigmask); 1321 s = select(max_fd, &mask, NULL, NULL, wt_ptr); 1322 sigprocmask(SIG_SETMASK, &origsigmask, NULL); 1323 #endif 1324 1307 1325 if (s==-1) 1308 1326 { … … 1374 1392 timeout - 1000000*(getRTimer()/TIMER_RESOLUTION - startingtime)); 1375 1393 wt.tv_sec = timeout / 1000000; 1394 #ifdef HAVE_PSELECT 1376 1395 wt.tv_nsec = 1000 * (timeout % 1000000); 1396 #else 1397 wt.tv_usec = (timeout % 1000000); 1398 #endif 1377 1399 } 1378 1400 goto do_select; -
kernel/mod2.h.in
rfbb23b rfec3bde 108 108 /* Define if you have siginterrupt (BSD4.3) */ 109 109 #undef HAVE_SIGINTERRUPT 110 /* Define if you have pselect */ 111 #undef HAVE_PSELECT 110 112 /* define for boost includes and lib */ 111 113 //////////////////////// #undef HAVE_BOOST_DYNAMIC_BITSET_HPP … … 160 162 /* CPU type: x86_64: */ 161 163 #undef SI_CPU_X86_64 164 /* whether development version of python is available */ 165 #undef HAVE_PYTHON 166 /* whether static development version of python is available */ 167 #undef HAVE_STATIC_PYTHON 168 /* whether python should be embedded */ 169 #undef EMBED_PYTHON 162 170 163 171 /******************************************************************* … … 611 619 #endif 612 620 621 #define STRINGIFY(name) #name 622 #define EXPANDED_STRINGIFY(name) STRINGIFY(name) 623 613 624 #endif /* MOD2_H */
Note: See TracChangeset
for help on using the changeset viewer.