23 ,
const int irun,
const int iseq)
28 fd =
open(filename, O_WRONLY | O_CREAT | O_EXCL | O_LARGEFILE ,
29 S_IRWXU | S_IROTH | S_IRGRP );
57 ,
const int irun,
const int iseq)
108 if (evtsize <=0)
return -2;
140 unsigned int nw = data[0];
146 if (wstatus)
return wstatus;
175 if (wstatus)
return wstatus;
218 if (len < 0)
return 0;
243 ,
id , wordsize , hitformat);
244 if (len < 0)
return 0;
282 if (!
dirty)
return 0;
286 if (
fd < 0)
return 0;
290 char *cp = (
char *)
bptr;
292 while (ip < bptr->Length)
297 std::cout <<
" could not write output, bytes written: " << n << std::endl;
314 pthread_join(ThreadId, NULL);
315 byteswritten += thread_arg[2];
317 if (! dirty)
return 0;
319 if (! has_end) addEoB();
321 if (
fd < 0)
return 0;
324 buffer_ptr tmp = bptr_being_written;
325 bptr_being_written = bptr;
330 thread_arg[0] = (int)
fd;
331 thread_arg[1] = (int) bptr_being_written;
335 int s = pthread_create(&ThreadId, NULL, ophBuffer::writeThread, (
void *) thread_arg);
348 if (size < 0)
return -1;