GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-36359e2344
|
#include <grass/config.h>
#include <stdlib.h>
#include <stdio.h>
#include <signal.h>
#include <unistd.h>
#include <time.h>
#include <sys/types.h>
#include <dirent.h>
#include <sys/stat.h>
#include <grass/gis.h>
#include "local_proto.h"
#include <limits.h>
#include <string.h>
#include <errno.h>
Go to the source code of this file.
Macros | |
#define | BUF_MAX 4096 |
#define | SLEEP 30 /* 30 seconds */ |
Functions | |
void | clean_dir (const char *pathname, uid_t uid, pid_t pid, time_t now, int max_age) |
int | main (int argc, char *argv[]) |
int | find_process (int pid) |
#define BUF_MAX 4096 |
Definition at line 33 of file clean_temp.c.
#define SLEEP 30 /* 30 seconds */ |
Definition at line 36 of file clean_temp.c.
void clean_dir | ( | const char * | pathname, |
uid_t | uid, | ||
pid_t | pid, | ||
time_t | now, | ||
int | max_age | ||
) |
Definition at line 40 of file clean_temp.c.
References BUF_MAX, find_process(), G_fatal_error(), G_strcasecmp(), G_warning(), and NULL.
Referenced by main().
int find_process | ( | int | pid | ) |
Definition at line 173 of file clean_temp.c.
Referenced by clean_dir(), and main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 121 of file clean_temp.c.
References BUF_MAX, clean_dir(), find_process(), G_file_name(), G_gisinit, G_mapset(), G_sleep(), G_temp_element(), GNAME_MAX, NULL, and SLEEP.