mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-24 15:38:11 +00:00
29 lines
418 B
C
29 lines
418 B
C
/**
|
|
* Author......: Jens Steube <jens.steube@gmail.com>
|
|
* License.....: MIT
|
|
*/
|
|
|
|
#ifndef _LOCKING_H
|
|
#define _LOCKING_H
|
|
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
#include <errno.h>
|
|
#include <fcntl.h>
|
|
|
|
#if defined (F_SETLKW)
|
|
|
|
void lock_file (FILE *fp);
|
|
void unlock_file (FILE *fp);
|
|
|
|
#else
|
|
|
|
#define lock_file(dummy) {}
|
|
#define unlock_file(dummy) {}
|
|
|
|
#endif
|
|
|
|
#endif // _LOCKING_H
|