mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-30 03:48:17 +00:00
30 lines
505 B
C
30 lines
505 B
C
|
/**
|
||
|
* Author......: See docs/credits.txt
|
||
|
* License.....: MIT
|
||
|
*/
|
||
|
|
||
|
#ifndef _PIDFILE_H
|
||
|
#define _PIDFILE_H
|
||
|
|
||
|
#include <stdio.h>
|
||
|
#include <unistd.h>
|
||
|
#include <errno.h>
|
||
|
|
||
|
#if defined (_POSIX)
|
||
|
#include <sys/types.h>
|
||
|
#include <sys/stat.h>
|
||
|
#endif // _POSIX
|
||
|
|
||
|
#if defined (_WIN)
|
||
|
#include <windows.h>
|
||
|
#include <psapi.h>
|
||
|
#endif // _WIN
|
||
|
|
||
|
void unlink_pidfile (hashcat_ctx_t *hashcat_ctx);
|
||
|
|
||
|
int pidfile_ctx_init (hashcat_ctx_t *hashcat_ctx);
|
||
|
|
||
|
void pidfile_ctx_destroy (hashcat_ctx_t *hashcat_ctx);
|
||
|
|
||
|
#endif // _PIDFILE_H
|