Apache2-ScoreBoardFile

 view release on metacpan or  search on metacpan

ScoreBoardFile.xs  view on Meta::CPAN

166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
    }
  }
}
 
static inline int
init(int fd, Apache2__ScoreBoardFile *result) {
  void *map;
  struct stat statbuf;
 
  *result=NULL;
  if(fstat(fd, &statbuf)) return -1;
 
  map=mmap(NULL, statbuf.st_size, PROT_READ, MAP_SHARED, fd, 0);
  if( map==MAP_FAILED ) return -1;
 
  *result=map;
  return 0;
}
 
static inline double
time2double( apr_time_t time ) {



( run in 1.131 second using v1.01-cache-2.11-cpan-49f99fa48dc )