/usr/lib/R/site-library/Rmpi/sleep.c is in r-cran-rmpi 0.5-9-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | /* A sleep utility so that R can be started at different time
Copyright 2005 Hao Yu */
#include <stdlib.h>
// #include <stdio.h>
#include <math.h>
#include <WinSock.h>
int main(int argc, char *argv[])
{
//int ms=(int)(500atof(argv[1])/32767);
int ms=atoi(argv[1]);
// ms = (int)floor(ran/step);
// printf("ms = %d\n",ms);
Sleep(ms);
return 0;
}
|