-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsysinfo.h
50 lines (37 loc) · 875 Bytes
/
sysinfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* sysinfo.h
*
* Written by: Rick Ohnemus ([email protected])
*
* rcsid: $Id: sysinfo.h,v 1.1 2008/12/27 00:56:03 vandys Exp $
*/
#if !defined(__SYSINFO_H__)
#define __SYSINFO_H__
typedef struct _group_info group_info;
struct _group_info {
char * name;
gid_t gid;
group_info * next;
};
typedef struct _user_info user_info;
struct _user_info {
char * name;
uid_t uid;
user_info * next;
};
extern group_info * getgigid(gid_t gid);
extern group_info * getginam(char *group_name);
extern user_info * getuinam(char *user_name);
extern user_info * getuiuid(uid_t uid);
#if defined(sun)
typedef struct _fs_info fs_info;
struct _fs_info {
char * fs_type;
dev_t fs_dev;
char * fs_dir;
fs_info * next;
};
extern fs_info * getfidev(dev_t fs_dev);
extern int mounted_fstype(char *type);
#endif /* sun */
#endif /* __SYSINFO_H__ */