Lines Matching defs:file
54 /* try and use up these file descriptors, so silly
65 DEBUG(SSSDBG_FATAL_FAILURE, "Didn't get file descriptor %d\n",i);
147 char *file;
155 file = talloc_asprintf(NULL, "%s/%s.pid", path, name);
156 if (!file) {
160 fd = open(file, O_RDONLY, 0644);
170 talloc_free(file);
185 talloc_free(file);
191 talloc_free(file);
196 /* nothing in the file or no process */
198 ret = unlink(file);
203 "Failed to remove file: %s - %d [%s]!\n",
204 file, ret, sss_strerror(ret));
208 talloc_free(file);
213 fd = open(file, O_CREAT | O_WRONLY | O_EXCL, 0644);
216 talloc_free(file);
219 talloc_free(file);
386 DEBUG(SSSDBG_FATAL_FAILURE, "Could not reopen log file [%s]\n",
643 /* same for debug to file */
657 /* before opening the log file set up log rotation */
670 /* open log file if told so */