Lines Matching refs:file
53 /* try and use up these file descriptors, so silly
64 DEBUG(SSSDBG_FATAL_FAILURE, "Didn't get file descriptor %d\n",i);
146 char *file;
154 file = talloc_asprintf(NULL, "%s/%s.pid", path, name);
155 if (!file) {
159 fd = open(file, O_RDONLY, 0644);
169 talloc_free(file);
184 talloc_free(file);
190 talloc_free(file);
195 /* nothing in the file or no process */
197 ret = unlink(file);
202 "Failed to remove file: %s - %d [%s]!\n",
203 file, ret, sss_strerror(ret));
207 talloc_free(file);
212 fd = open(file, O_CREAT | O_WRONLY | O_EXCL, 0644);
215 talloc_free(file);
218 talloc_free(file);
381 DEBUG(SSSDBG_FATAL_FAILURE, "Could not reopen log file [%s]\n",
625 /* same for debug to file */
637 /* before opening the log file set up log rotation */
650 /* open log file if told so */