Skip to content

Commit d5fa4c0

Browse files
committed
Remove pflags
1 parent 762513b commit d5fa4c0

File tree

8 files changed

+12
-824
lines changed

8 files changed

+12
-824
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@ jobs:
7070
--ignore-filename-regex='/(\.cargo/registry|rustc)/' \
7171
--instr-profile=target/coverage/ptools.profdata \
7272
target/debug/pargs --object target/debug/pauxv --object target/debug/penv \
73-
--object target/debug/pflags --object target/debug/pfiles --object target/debug/prun \
73+
--object target/debug/pfiles --object target/debug/prun \
7474
--object target/debug/psig --object target/debug/pstop --object target/debug/ptree \
7575
--object target/debug/pwait

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ $ llvm-cov report --ignore-filename-regex='/(\.cargo/registry|rustc)/' \
8484
--instr-profile=target/coverage/ptools.profdata \
8585
target/debug/pargs --object target/debug/pauxv --object target/debug/pcred \
8686
--object target/debug/penv --object target/debug/pfiles \
87-
--object target/debug/pflags --object target/debug/prun \
87+
--object target/debug/prun \
8888
--object target/debug/psig --object target/debug/pstop \
8989
--object target/debug/ptree --object target/debug/pwait
9090
$ llvm-cov export --format=lcov \
9191
--instr-profile=target/coverage/ptools.profdata \
9292
target/debug/pargs --object target/debug/pauxv --object target/debug/pcred \
9393
--object target/debug/penv --object target/debug/pfiles \
94-
--object target/debug/pflags --object target/debug/prun \
94+
--object target/debug/prun \
9595
--object target/debug/psig --object target/debug/pstop \
9696
--object target/debug/ptree --object target/debug/pwait > target/coverage/lcov.info
9797
```

Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ assets = [
4545
["target/release/pauxv", "usr/bin/", "755"],
4646
["target/release/pcred", "usr/bin/", "755"],
4747
["target/release/penv", "usr/bin/", "755"],
48-
["target/release/pflags", "usr/bin/", "755"],
4948
["target/release/pfiles", "usr/bin/", "755"],
5049
["target/release/prun", "usr/bin/", "755"],
5150
["target/release/psig", "usr/bin/", "755"],
@@ -56,7 +55,6 @@ assets = [
5655
["target/man/pauxv.1", "usr/share/man/man1/pauxv.1", "644"],
5756
["target/man/pcred.1", "usr/share/man/man1/pcred.1", "644"],
5857
["target/man/penv.1", "usr/share/man/man1/penv.1", "644"],
59-
["target/man/pflags.1", "usr/share/man/man1/pflags.1", "644"],
6058
["target/man/pfiles.1", "usr/share/man/man1/pfiles.1", "644"],
6159
["target/man/prun.1", "usr/share/man/man1/prun.1", "644"],
6260
["target/man/psig.1", "usr/share/man/man1/psig.1", "644"],
@@ -73,7 +71,6 @@ assets = [
7371
{ source = "target/release/pauxv", dest = "/usr/bin/pauxv", mode = "755" },
7472
{ source = "target/release/pcred", dest = "/usr/bin/pcred", mode = "755" },
7573
{ source = "target/release/penv", dest = "/usr/bin/penv", mode = "755" },
76-
{ source = "target/release/pflags", dest = "/usr/bin/pflags", mode = "755" },
7774
{ source = "target/release/pfiles", dest = "/usr/bin/pfiles", mode = "755" },
7875
{ source = "target/release/prun", dest = "/usr/bin/prun", mode = "755" },
7976
{ source = "target/release/psig", dest = "/usr/bin/psig", mode = "755" },
@@ -84,7 +81,6 @@ assets = [
8481
{ source = "target/man/pauxv.1", dest = "/usr/share/man/man1/pauxv.1", mode = "644" },
8582
{ source = "target/man/pcred.1", dest = "/usr/share/man/man1/pcred.1", mode = "644" },
8683
{ source = "target/man/penv.1", dest = "/usr/share/man/man1/penv.1", mode = "644" },
87-
{ source = "target/man/pflags.1", dest = "/usr/share/man/man1/pflags.1", mode = "644" },
8884
{ source = "target/man/pfiles.1", dest = "/usr/share/man/man1/pfiles.1", mode = "644" },
8985
{ source = "target/man/prun.1", dest = "/usr/share/man/man1/prun.1", mode = "644" },
9086
{ source = "target/man/psig.1", dest = "/usr/share/man/man1/psig.1", mode = "644" },

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ make this same consistent debugging experience available on Linux.
5353
## Current State
5454

5555
The following table lists all Solaris/illumos ptools and their status in this
56-
project. Tools provided by [procps-ng](https://gitlab.com/procps-ng/procps) or
57-
[glibc](https://www.gnu.org/software/libc/) are not reimplemented here, as these
56+
project. Tools provided by [procps-ng](https://gitlab.com/procps-ng/procps),
57+
[glibc](https://www.gnu.org/software/libc/), or
58+
[python-linux-procfs](python-linux-procfs) are not reimplemented here, as these
5859
packages are widely available on Linux distributions and already provide
5960
equivalent functionality. There are a number of commands available on
6061
Solaris/illumos which have not been implemented here yet, perhaps most notably
@@ -67,10 +68,10 @@ Solaris/illumos which have not been implemented here yet, perhaps most notably
6768
| `pcred(1)` | Print process credentials | ✅ Implemented |
6869
| `penv(1)` | Print process environment variables | ✅ Implemented |
6970
| `pfiles(1)` | Print information for all open files in each process | ✅ Implemented |
70-
| `pflags(1)` | Print process status flags | ✅ Implemented |
71+
| `pflags(1)` | Print process status flags | ➡️ See `python-linux-procfs` |
7172
| `pgrep(1)` | Find processes by name | ➡️ See `procps-ng` |
7273
| `pkill(1)` | Signal processes by name | ➡️ See `procps-ng` |
73-
| `pldd(1)` | Print process dynamic libraries | ➡️ See `glibc` |
74+
| `pldd(1)` | Print process dynamic libraries | ➡️ See `glibc` |`
7475
| `plgrp(1)` | Print or modify home lgroup and lgroup affinities | 🔲 Not yet implemented |
7576
| `plimit(1)` | Get or set process resource limits | 🔲 Not yet implemented |
7677
| `plockstat(1)` | Print lock statistics | 🔲 Not yet implemented |

build.rs

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ fn main() {
125125
examples: &[],
126126
exit_status: DEFAULT_EXIT_STATUS,
127127
files: DEFAULT_FILES,
128-
see_also: "pauxv(1), penv(1), pflags(1), proc(5)",
128+
see_also: "pauxv(1), penv(1), proc(5)",
129129
warnings: "",
130130
},
131131
out_dir,
@@ -184,7 +184,7 @@ fn main() {
184184
examples: &[],
185185
exit_status: DEFAULT_EXIT_STATUS,
186186
files: DEFAULT_FILES,
187-
see_also: "pfiles(1), pflags(1), proc(5), credentials(7)",
187+
see_also: "pfiles(1), proc(5), credentials(7)",
188188
warnings: "",
189189
},
190190
out_dir,
@@ -225,35 +225,13 @@ fn main() {
225225
description: "List the signal actions and handlers of each process. For each \
226226
signal, print whether the signal is caught, ignored, or handled by \
227227
default, and whether the signal is blocked or pending. Real-time \
228-
signals (SIGRTMIN through SIGRTMAX) are also displayed. Use \
229-
pflags(1) to see more information about currently pending signals \
230-
and signal masks.",
228+
signals (SIGRTMIN through SIGRTMAX) are also displayed.",
231229
synopsis: "PID...",
232230
options: &[],
233231
examples: &[],
234232
exit_status: DEFAULT_EXIT_STATUS,
235233
files: DEFAULT_FILES,
236-
see_also: "kill(1), pflags(1), signal(7), proc(5)",
237-
warnings: "",
238-
},
239-
out_dir,
240-
);
241-
242-
render_man_page(
243-
&ManPage {
244-
name: "pflags",
245-
about: "print process status flags",
246-
description: "Print the data model, process flags, pending and held signals, \
247-
and other status information for each process or specified threads \
248-
in each process. For each thread, print its state, current system \
249-
call (if any), and signal mask. If a thread has a non-empty signal \
250-
mask, it will be printed.",
251-
synopsis: "PID[/TID]...",
252-
options: &[],
253-
examples: &[],
254-
exit_status: DEFAULT_EXIT_STATUS,
255-
files: DEFAULT_FILES,
256-
see_also: "psig(1), proc(5)",
234+
see_also: "kill(1), signal(7), proc(5)",
257235
warnings: "",
258236
},
259237
out_dir,

examples/pflags_process.rs

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)