Merge branch 'master' into develop
[jack2.git] / common / promiscuous.h
blob17373565ecdf3ed0c10376895c3161eab6d66a2e
1 /*
2 Copyright (C) 2014-2017 Cédric Schieli
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public License
6 as published by the Free Software Foundation; either version 2.1
7 of the License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #ifndef __jack_gid_h__
21 #define __jack_gid_h__
23 #ifdef __cplusplus
24 extern "C"
26 #endif
28 int jack_group2gid (const char *group); /*!< Lookup gid for a UNIX group in a thread-safe way */
29 #ifndef WIN32
30 int jack_promiscuous_perms (int fd, const char *path, gid_t gid); /*!< Set promiscuous permissions on object referenced by fd and/or path */
31 #endif
33 #ifdef __cplusplus
35 #endif
37 #endif /* __jack_gid_h__ */