36 char *dpi_socket_dir, *dirfile_path =
"/.dillo/dpi_socket_dir";
39 return dpi_socket_dir;
54 char *sockdir = NULL, *rcpath;
59 if (access(rcpath, F_OK) == -1) {
60 ERRMSG(
"a_Dpi_rd_dpi_socket_dir",
"access", errno);
66 if ((dir = fopen(dirname,
"r")) != NULL) {
69 }
else if (errno == ENOENT) {
70 ERRMSG(
"a_Dpi_rd_dpi_socket_dir",
"fopen", errno);
72 }
else if (errno != ENOENT) {
73 ERRMSG(
"a_Dpi_rd_dpi_socket_dir",
"fopen", errno);
89 char *dirfile_path, *sockdir, *
srs_name;
char * dGetline(FILE *stream)
Get a line from a FILE stream.
char * dStrconcat(const char *s1,...)
Concatenate a NULL-terminated list of strings.
char * dStrstrip(char *s)
Remove leading and trailing whitespace.
char * dGethomedir(void)
Return the home directory in a static string (don't free)
char * a_Dpi_rd_dpi_socket_dir(char *dirname)
char * a_Dpi_sockdir_file(void)
#define ERRMSG(CALLER, CALLED, ERR)