You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hashcat/include/locking.h

29 lines
401 B

/**
* Author......: See docs/credits.txt
* 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)
int lock_file (FILE *fp);
void unlock_file (FILE *fp);
#else
#define lock_file(dummy) 0
#define unlock_file(dummy)
#endif
#endif // _LOCKING_H