1 /* 2 * Copyright (c) 2016-2017 Intel, Inc. All rights reserved. 3 * $COPYRIGHT$ 4 * 5 * Additional copyrights may follow 6 * 7 * $HEADER$ 8 */ 9 10 #ifndef PMIX_GETID_H 11 #define PMIX_GETID_H 12 13 #include <src/include/pmix_config.h> 14 #include "include/pmix_common.h" 15 16 #ifdef HAVE_UNISTD_H 17 #include <unistd.h> 18 #endif 19 #ifdef HAVE_SYS_TYPES_H 20 #include <sys/types.h> 21 #endif 22 23 BEGIN_C_DECLS 24 25 /* lookup the effective uid and gid of a socket */ 26 PMIX_EXPORT pmix_status_t pmix_util_getid(int sd, uid_t *uid, gid_t *gid); 27 28 END_C_DECLS 29 30 #endif /* PMIX_PRINTF_H */