jack2 codebase
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.1KB

  1. /*
  2. Copyright (C) 2014-2017 Cédric Schieli
  3. This program is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU General Public License
  5. as published by the Free Software Foundation; either version 2
  6. of the License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14. */
  15. #ifndef __jack_gid_h__
  16. #define __jack_gid_h__
  17. #ifdef __cplusplus
  18. extern "C"
  19. {
  20. #endif
  21. int jack_group2gid (const char *group); /*!< Lookup gid for a UNIX group in a thread-safe way */
  22. #ifndef WIN32
  23. int jack_promiscuous_perms (int fd, const char *path, gid_t gid); /*!< Set promiscuous permissions on object referenced by fd and/or path */
  24. #endif
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif /* __jack_gid_h__ */