#include "popen_as_ugid.h"
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
Go to the source code of this file.
|
FILE * | popen_as_ugid (const char *cmd, const char *mode, uid_t uid, gid_t gid) |
|
int | pclose_as_ugid (FILE *f) |
|
const char * | parse_ugid (const char *s, uid_t &uid, gid_t &gid, std::string &uname, std::string &gname) |
|
◆ parse_ugid()
const char * parse_ugid |
( |
const char * |
s, |
|
|
uid_t & |
uid, |
|
|
gid_t & |
gid, |
|
|
std::string & |
uname, |
|
|
std::string & |
gname |
|
) |
| |
◆ pclose_as_ugid()
int pclose_as_ugid |
( |
FILE * |
f | ) |
|
◆ popen_as_ugid()
FILE * popen_as_ugid |
( |
const char * |
cmd, |
|
|
const char * |
mode, |
|
|
uid_t |
uid, |
|
|
gid_t |
gid |
|
) |
| |
◆ popen_as_ugid_cvsid
const char* popen_as_ugid_cvsid |
Initial value:= "$Id: popen_as_ugid.cpp 5579 2024-01-12 18:43:41Z chrfranke $"
#define POPEN_AS_UGID_H_CVSID
Definition at line 13 of file popen_as_ugid.cpp.
◆ s_popen_file
◆ s_popen_pid