terminal-util: pidref'ify two terminal related calls
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "macro.h"
|
||||
#include "pidref.h"
|
||||
#include "time-util.h"
|
||||
|
||||
/* Erase characters until the end of the line */
|
||||
@@ -143,8 +144,8 @@ int getttyname_harder(int fd, char **ret);
|
||||
int ptsname_malloc(int fd, char **ret);
|
||||
|
||||
int openpt_allocate(int flags, char **ret_peer);
|
||||
int openpt_allocate_in_namespace(pid_t pid, int flags, char **ret_peer);
|
||||
int open_terminal_in_namespace(pid_t pid, const char *name, int mode);
|
||||
int openpt_allocate_in_namespace(const PidRef *pidref, int flags, char **ret_peer);
|
||||
int open_terminal_in_namespace(const PidRef *pidref, const char *name, int mode);
|
||||
|
||||
int vt_restore(int fd);
|
||||
int vt_release(int fd, bool restore_vt);
|
||||
|
||||
Reference in New Issue
Block a user