GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71924
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
lock.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>
#include "local_proto.h"
#include <grass/gis.h>
#include <grass/glocale.h>
#include <errno.h>
Include dependency graph for lock.c:

Go to the source code of this file.

Macros

#define file   argv[1]
 

Functions

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

Macro Definition Documentation

Function Documentation

int find_process ( int  pid)

Definition at line 67 of file lock.c.

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

Definition at line 30 of file lock.c.

References _, close(), file, find_process(), G_fatal_error(), G_sleep(), and G_warning().