blob: 09ff03678f6834a3dcffe0d356d4dce515b0550e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef _HACKERS_WATCH_H
#define _HACKERS_WATCH_H
#include <pthread.h>
#include <pwd.h>
struct session {
pthread_rwlock_t lock;
size_t cnt;
struct passwd *users;
/* The following are only for writers */
char *yamldir;
int *in_user_wds;
int in_fd;
int in_wd_home;
int in_wd_yaml;
};
int hackers_init(const char *yamldir, struct session *session);
int hackers_worker(struct session *session);
#endif
|