Skip to content

Commit 27f0575

Browse files
Remove stuff for future calls (moved into a GH issue)
1 parent fd6a65e commit 27f0575

File tree

3 files changed

+0
-32
lines changed

3 files changed

+0
-32
lines changed

Cargo.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ libc = "^0.2.62"
1717
name = "libproc"
1818
path = "src/lib.rs"
1919

20-
[features]
21-
default = ["macosx_10_9"]
22-
macosx_10_7 = []
23-
macosx_10_9 = ["macosx_10_7"]
24-
2520
[[bin]]
2621
name = "procinfo"
2722
path = "src/procinfo.rs"

README.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -77,25 +77,6 @@ pub fn kmsgbuf() -> Result<String, String>
7777
# Platforms
7878
Mac OS X (10.5 and above) and Linux.
7979

80-
## Mac OS X Versions
81-
Calls were aded to libproc in Mac OS X 10.7 and again in 10.9.
82-
This library can be compiled to not include those calls by using rust `features`
83-
to enable/disable support for those versions.
84-
85-
The default build is for Mac OS 10.9 or later. See:
86-
```toml
87-
[features]
88-
default = ["macosx_10_9"]
89-
macosx_10_7 = []
90-
macosx_10_9 = ["macosx_10_7"]
91-
```
92-
in `Cargo.toml`
93-
94-
To build for versions prior to Mac OS 10.7 disable the default features by passing `--no-default-features` to `cargo`.
95-
96-
To build for Mac OS X 10.7 (or 10.8) you can enable that feature alone using
97-
`--no-default-features --features "macosx_10_7"`
98-
9980
# Build and Test
10081
`cargo test` should build and test as usual for rust projects.
10182

src/libproc/proc_pid.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,6 @@ extern {
144144
fn proc_pidpath(pid: c_int, buffer: *mut c_void, buffersize: u32) -> c_int;
145145
fn proc_regionfilename(pid: c_int, address: u64, buffer: *mut c_void, buffersize: u32) -> c_int;
146146

147-
// Added in 10.7
148-
// int proc_listallpids(void * buffer, int buffersize) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_1);
149-
// int proc_listpgrppids(pid_t pgrpid, void * buffer, int buffersize) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_1);
150-
// int proc_listchildpids(pid_t ppid, void * buffer, int buffersize) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_1);
151-
// int proc_pidfileportinfo(int pid, uint32_t fileport, int flavor, void *buffer, int buffersize) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
152-
153-
// Added in 10.9
154-
// int proc_pid_rusage(int pid, int flavor, rusage_info_t *buffer) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
155147
}
156148

157149
/// Returns the PIDs of the active processes that match the ProcType passed in

0 commit comments

Comments
 (0)