GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
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

◆ file

Function Documentation

◆ find_process()

int find_process ( int  pid)

Definition at line 67 of file lock.c.

Referenced by main().

◆ main()

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

Definition at line 30 of file lock.c.

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