Home | History | Annotate | Download | only in libprofile

Lines Matching refs:outFile

86   static int OutFile = -1;

91 if (OutFile == -1) {
92 OutFile = open(OutputFilename, O_CREAT | O_WRONLY, 0666);
93 lseek(OutFile, 0, SEEK_END); /* O_APPEND prevents seeking */
94 if (OutFile == -1) {
98 return(OutFile);
105 if (write(OutFile, &PTy, sizeof(int)) < 0 ||
106 write(OutFile, &SavedArgsLength, sizeof(unsigned)) < 0 ||
107 write(OutFile, SavedArgs, SavedArgsLength) < 0 ) {
113 if (write(OutFile, &Zeros, 4-(SavedArgsLength&3)) < 0) {
120 return(OutFile);
131 int outFile = getOutFile();
135 if( write(outFile, &PTy, sizeof(int)) < 0 ||
136 write(outFile, &NumElements, sizeof(unsigned)) < 0 ||
137 write(outFile, Start, NumElements*sizeof(unsigned)) < 0 ) {