restic/internal/backend/util
greatroar 1ed93bd54d backend,termstatus: Unify foreground/background detection
PR #5358 reintroduced a version of the TIOCGPGRP ioctl call that works
on all Unix platforms except Linux, due to a bug/inconsistency in
x/sys/unix. This commit fixes that by introducing termstatus.Tcgetpgrp.

It also introduces termstatus.Getpgrp and termstatus.Tcsetpgrp to deal
with the different signature of unix.Getpgrp in Solaris vs. all other
Unix platforms and an int-overflowing constant on AIX, so that some
AIX/Solaris-specific code can be removed elsewhere and
foreground/background detection is done the same everywhere except on
Windows.
2025-09-08 09:33:44 +02:00
..
defaults.go move Backend interface to backend package 2023-10-25 23:00:18 +02:00
defaults_test.go Remove unnecessary type conversions. 2025-03-22 18:20:30 +00:00
foreground.go bump required go version to 1.21 2024-08-10 19:16:10 +02:00
foreground_test.go backend: move backend implementation helpers to util package 2023-10-25 22:54:07 +02:00
foreground_unix.go backend,termstatus: Unify foreground/background detection 2025-09-08 09:33:44 +02:00
foreground_windows.go backend: move backend implementation helpers to util package 2023-10-25 22:54:07 +02:00
limited_reader.go backend: move LimitReadCloser to util package 2024-05-18 21:26:00 +02:00
paths.go backend: move backend implementation helpers to util package 2023-10-25 22:54:07 +02:00