Dillo v3.2.0-143-gabad1053
Loading...
Searching...
No Matches
dilloc.c File Reference
#include "config.h"
#include "dlib/dlib.h"
#include <ctype.h>
#include <dirent.h>
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/un.h>
#include <unistd.h>
#include <time.h>
Include dependency graph for dilloc.c:

Go to the source code of this file.

Macros

#define LEN   ((int) sizeof(addr.sun_path))
 

Functions

static int is_number (const char *str)
 
static double get_time_s (void)
 
static int connect_given_pid (int *sock, const char *pid)
 
static int find_working_socket (int *sock)
 
static int connect_to_dillo (int *sock)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ LEN

#define LEN   ((int) sizeof(addr.sun_path))

Function Documentation

◆ connect_given_pid()

static int connect_given_pid ( int *  sock,
const char *  pid 
)
static

Definition at line 51 of file dilloc.c.

References dClose(), dGethomedir(), get_time_s(), and path().

Referenced by connect_to_dillo().

◆ connect_to_dillo()

static int connect_to_dillo ( int *  sock)
static

Definition at line 193 of file dilloc.c.

References connect_given_pid(), and find_working_socket().

Referenced by main().

◆ find_working_socket()

static int find_working_socket ( int *  sock)
static

Definition at line 106 of file dilloc.c.

References dClose(), dGethomedir(), is_number(), and LEN.

Referenced by connect_to_dillo().

◆ get_time_s()

static double get_time_s ( void  )
static

Definition at line 42 of file dilloc.c.

Referenced by connect_given_pid().

◆ is_number()

static int is_number ( const char *  str)
static

Definition at line 31 of file dilloc.c.

Referenced by find_working_socket().

◆ main()

int main ( int  argc,
char *  argv[] 
)