public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox 0/2] Use IsTerminal trait
@ 2023-11-17 12:37 Maximiliano Sandoval R
  2023-11-17 12:37 ` [pbs-devel] [PATCH proxmox 1/2] sys: Use safe wrapper for libc::isatty Maximiliano Sandoval R
  2023-11-17 12:37 ` [pbs-devel] [PATCH proxmox 2/2] router: " Maximiliano Sandoval R
  0 siblings, 2 replies; 6+ messages in thread
From: Maximiliano Sandoval R @ 2023-11-17 12:37 UTC (permalink / raw)
  To: pbs-devel

Small patch series that ports code to IsTerminal.

Since the functions stdout_isatty and stdin_isatty are used in multiple projects
(e.g. Backup Server and Offline Mirror), the function were just modified to use
the new trait instead of being removed.

Maximiliano Sandoval R (2):
  sys: Use safe wrapper for libc::isatty
  router: Use safe wrapper for libc::isatty

 proxmox-router/src/cli/text_table.rs |  4 ++--
 proxmox-sys/src/linux/tty.rs         | 20 +++++++-------------
 2 files changed, 9 insertions(+), 15 deletions(-)

-- 
2.39.2





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-11-20  7:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-17 12:37 [pbs-devel] [PATCH proxmox 0/2] Use IsTerminal trait Maximiliano Sandoval R
2023-11-17 12:37 ` [pbs-devel] [PATCH proxmox 1/2] sys: Use safe wrapper for libc::isatty Maximiliano Sandoval R
2023-11-19 15:09   ` Thomas Lamprecht
2023-11-20  7:54     ` Fabian Grünbichler
2023-11-20  7:55       ` Maximiliano Sandoval
2023-11-17 12:37 ` [pbs-devel] [PATCH proxmox 2/2] router: " Maximiliano Sandoval R

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal