Lines Matching defs:thefile
71 apr_status_t apr_unix_file_cleanup(void *thefile)
73 apr_file_t *file = thefile;
85 apr_status_t apr_unix_child_file_cleanup(void *thefile)
87 return file_cleanup(thefile, 1);
278 APR_DECLARE(apr_status_t) apr_os_file_get(apr_os_file_t *thefile,
281 *thefile = file->filedes;
286 apr_os_file_t *thefile,
289 int *dafile = thefile;
333 APR_DECLARE(apr_status_t) apr_file_open_flags_stderr(apr_file_t **thefile,
339 return apr_os_file_put(thefile, &fd, flags | APR_FOPEN_WRITE, pool);
342 APR_DECLARE(apr_status_t) apr_file_open_flags_stdout(apr_file_t **thefile,
348 return apr_os_file_put(thefile, &fd, flags | APR_FOPEN_WRITE, pool);
351 APR_DECLARE(apr_status_t) apr_file_open_flags_stdin(apr_file_t **thefile,
357 return apr_os_file_put(thefile, &fd, flags | APR_FOPEN_READ, pool);
360 APR_DECLARE(apr_status_t) apr_file_open_stderr(apr_file_t **thefile,
363 return apr_file_open_flags_stderr(thefile, 0, pool);
366 APR_DECLARE(apr_status_t) apr_file_open_stdout(apr_file_t **thefile,
369 return apr_file_open_flags_stdout(thefile, 0, pool);
372 APR_DECLARE(apr_status_t) apr_file_open_stdin(apr_file_t **thefile,
375 return apr_file_open_flags_stdin(thefile, 0, pool);
383 APR_DECLARE(apr_status_t) apr_file_inherit_unset(apr_file_t *thefile)
385 if (thefile->flags & APR_FOPEN_NOCLEANUP) {
388 if (thefile->flags & APR_INHERIT) {
391 if ((flags = fcntl(thefile->filedes, F_GETFD)) == -1)
395 if (fcntl(thefile->filedes, F_SETFD, flags) == -1)
398 thefile->flags &= ~APR_INHERIT;
399 apr_pool_child_cleanup_set(thefile->pool,
400 (void *)thefile,