11#include "local_proto.h"
31#define BUF_MAX PATH_MAX
62 G_fatal_error(
"clean_temp: exceeded maximum pathname length %d, "
63 "got %d, shouldn't happen",
75 if (info.st_uid != uid)
80 G_warning(
"Can't remove empty directory %s: %s,skipping\n",
95 G_warning(
"Can't remove file %s: %s,skipping\n",
102 if ((
now - info.st_mtime) >
107 G_warning(
"Can't remove file %s: %s,skipping\n",
int find_process(int pid)
void clean_dir(const char *pathname, uid_t uid, pid_t pid, time_t now, int max_age)
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
void G_warning(const char *,...) __attribute__((format(printf
void G_temp_element(char *)
Populates element with a path string.
char * G_file_name(char *, const char *, const char *, const char *)
Builds full path names to GIS data files.
void G_sleep(unsigned int)
int int G_strcasecmp(const char *, const char *)
String compare ignoring case (upper or lower)
const char * G_mapset(void)
Get current mapset name.
DIR * opendir(const char *name)
struct dirent * readdir(DIR *dir)