Home | History | Annotate | Download | only in utils

Lines Matching full:temp

56  **     temp  - a temporary file make unique with mkstemp
59 ** create 'temp' and store our pid in it
60 ** attemp to link 'lock' to 'temp'
62 ** unlink 'temp'
77 char* temp;
120 pidfile_fd = open( lock->temp, O_RDONLY );
144 D( "could not read pid file '%s'", lock->temp );
190 pidfile_fd = open( lock->temp, O_WRONLY | O_CREAT | O_TRUNC );
193 if ( path_delete_file( lock->temp ) < 0 ) {
194 D( "could not remove '%s': %s\n", lock->temp, strerror(errno) );
197 pidfile_fd = open( lock->temp, O_WRONLY | O_CREAT | O_TRUNC );
200 D( "could not create '%s': %s\n", lock->temp, strerror(errno) );
211 D( "could not write PID to '%s'\n", lock->temp );
226 strcpy( lock->temp, lock->file );
227 strcat( lock->temp, TEMP_NAME );
228 temp_fd = mkstemp( lock->temp );
231 D("cannot create locking temp file '%s'", lock->temp );
238 D( "cannot write to locking temp file '%s'", lock->temp);
244 CHECKED(rc, lstat( lock->temp, &st_temp ));
246 D( "can't properly stat our locking temp file '%s'", lock->temp );
250 /* now attempt to link the temp file to the lock file */
267 CHECKED(rc, link( lock->temp, lock->lock ));
276 CHECKED(rc, unlink( lock->temp ));
344 unlink( lock->temp );
354 path_delete_file( (char*)lock->temp );
394 lock->temp = (char*)lock->lock + lock_len + 1;
396 snprintf( (char*)lock->temp, temp_len, "%s\\" PIDFILE_NAME, lock->lock );
398 lock->temp[0] = 0;