-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfile_perms.h
25 lines (19 loc) · 1011 Bytes
/
file_perms.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
/*************************************************************************\
* Copyright (C) Michael Kerrisk, 2020. *
* *
* This program is free software. You may use, modify, and redistribute it *
* under the terms of the GNU Lesser General Public License as published *
* by the Free Software Foundation, either version 3 or (at your option) *
* any later version. This program is distributed without any warranty. *
* See the files COPYING.lgpl-v3 and COPYING.gpl-v3 for details. *
\*************************************************************************/
/* file_perms.h
Header file for file_perms.c.
*/
#ifndef FILE_PERMS_H
#define FILE_PERMS_H
#include <sys/types.h>
#define FP_SPECIAL 1 /* Include set-user-ID, set-group-ID, and sticky
bit information in returned string */
char *filePermStr(mode_t perm, int flags);
#endif