Main Page | Modules | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

tpf/os.c File Reference

#include "httpd.h"
#include "http_core.h"
#include "os.h"
#include "scoreboard.h"
#include "http_log.h"

Include dependency graph for tpf/os.c:

Go to the source code of this file.

Functions

int pipe (int fildes[2])
pid_t fork (void)
int execl (const char *path, const char *arg0,...)
int execle (const char *path, const char *arg0,...)
int execve (const char *path, char *const argv[], char *const envp[])
int execvp (const char *file, char *const argv[])
pid_t os_fork (server_rec *s, int slot)
int os_check_server (char *server)
 AP_DECLARE (apr_status_t)

Variables

static FILE * sock_fp


Function Documentation

AP_DECLARE apr_status_t   ) 
 

convert a recent time to its human readable components in local timezone

Parameters:
tm the exploded time
t the time to explode: MUST be within the last AP_TIME_RECENT_THRESHOLD seconds
Note:
This is a faster alternative to apr_explode_localtime that uses a cache of pre-exploded time structures. It is useful for things that need to explode the current time multiple times per second, like loggers.
Returns:
APR_SUCCESS iff successful

Definition at line 124 of file tpf/os.c.

References AP_DECLARE.

int execl const char *  path,
const char *  arg0,
  ...
 

Definition at line 47 of file tpf/os.c.

int execle const char *  path,
const char *  arg0,
  ...
 

Definition at line 53 of file tpf/os.c.

int execve const char *  path,
char *const   argv[],
char *const   envp[]
 

Definition at line 59 of file tpf/os.c.

Referenced by main().

int execvp const char *  file,
char *const   argv[]
 

Definition at line 65 of file tpf/os.c.

pid_t fork void   ) 
 

Definition at line 41 of file tpf/os.c.

Referenced by APR_DECLARE(), apr_proc_detach(), cgid_start(), main(), and make_child().

int os_check_server char *  server  ) 
 

Definition at line 109 of file tpf/os.c.

Referenced by ap_mpm_run().

pid_t os_fork server_rec s,
int  slot
 

Definition at line 72 of file tpf/os.c.

References ap_listeners, ap_my_generation, ap_scoreboard_image, ap_server_argv0, APLOG_CRIT, APLOG_MARK, lr, ap_listen_rec::next, and sock_fp.

int pipe int  fildes[2]  ) 
 

Definition at line 31 of file tpf/os.c.


Variable Documentation

FILE* sock_fp [static]
 

Definition at line 28 of file tpf/os.c.

Referenced by os_fork().