20 ,
const int irun,
const int iseq)
25 fd =
open(filename, O_WRONLY | O_CREAT | O_EXCL | O_LARGEFILE ,
26 S_IRWXU | S_IROTH | S_IRGRP );
54 ,
const int irun,
const int iseq)
87 if (evtsize <=0)
return -2;
123 unsigned int nw = data[0];
129 if (wstatus)
return wstatus;
158 if (wstatus)
return wstatus;
180 if (len < 0)
return 0;
205 ,
id , wordsize , hitformat);
206 if (len < 0)
return 0;
242 if (size < 0)
return -1;
279 if (!
dirty)
return 0;
283 if (
fd < 0)
return 0;
287 char *cp = (
char *)
bptr;
289 while (ip < bptr->Length)
294 std::cout <<
" could not write output, bytes written: " << n << std::endl;
311 pthread_join(ThreadId, NULL);
312 byteswritten += thread_arg[2];
314 if (! dirty)
return 0;
316 if (! has_end) addEoB();
318 if (
fd < 0)
return 0;
321 buffer_ptr tmp = bptr_being_written;
322 bptr_being_written = bptr;
327 thread_arg[0] = (int)
fd;
328 thread_arg[1] = (int) bptr_being_written;
332 int s = pthread_create(&ThreadId, NULL, ophBuffer::writeThread, (
void *) thread_arg);