GRASS 8 Programmer's Manual 8.5.0RC1(2026)-3334b87d9c
Loading...
Searching...
No Matches
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().