Home | History | Annotate | Download | only in libprofile

Lines Matching defs:OutFile

118   static int OutFile = -1;
123 if (OutFile == -1) {
124 OutFile = open(OutputFilename, O_CREAT | O_WRONLY, 0666);
125 lseek(OutFile, 0, SEEK_END); /* O_APPEND prevents seeking */
126 if (OutFile == -1) {
130 return(OutFile);
137 if (write(OutFile, &PTy, sizeof(int)) < 0 ||
138 write(OutFile, &SavedArgsLength, sizeof(unsigned)) < 0 ||
139 write(OutFile, SavedArgs, SavedArgsLength) < 0 ) {
145 if (write(OutFile, &Zeros, 4-(SavedArgsLength&3)) < 0) {
152 return(OutFile);
163 int outFile = getOutFile();
167 if( write(outFile, &PTy, sizeof(int)) < 0 ||
168 write(outFile, &NumElements, sizeof(unsigned)) < 0 ||
169 write(outFile, Start, NumElements*sizeof(unsigned)) < 0 ) {