GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
#include <stdlib.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) |
Variables | |
int | errno |
#define BUF_MAX 4096 |
Definition at line 31 of file clean_temp.c.
Referenced by clean_dir(), and main().
#define SLEEP 30 /* 30 seconds */ |
Definition at line 36 of file clean_temp.c.
Referenced by main().
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, BUF_MAX, errno, find_process(), G_fatal_error(), G_snprintf(), G_strcasecmp(), G_warning(), n, NULL, opendir(), readdir(), and stat.
Referenced by main().
Definition at line 172 of file clean_temp.c.
Referenced by clean_dir(), and main().
Definition at line 120 of file clean_temp.c.
References BUF_MAX, clean_dir(), find_process(), G__file_name(), G__temp_element(), G_mapset(), G_sleep(), NULL, and SLEEP.
int errno |
Referenced by bin_install(), check_dependencies(), check_extension(), clean_dir(), db_clear_error(), db_syserror(), depstr(), deregister_entries_gisman(), deregister_entries_gisman2(), deregister_extension(), deregister_html(), dump_html(), dump_plain(), find_process(), G__make_mapset_element(), G__oldsite_get(), G_copy_file(), G_wait(), list_extensions(), main(), query_extension(), register_entries_gisman(), register_entries_gisman2(), register_extension(), register_html(), restore_entries_gisman(), restore_html(), segment_get_row(), segment_init(), segment_pagein(), segment_pageout(), segment_put_row(), segment_seek(), show_details(), show_license(), source_install(), su(), test_install(), uninstall(), and unpack_extension().