heim-rs / darwin-libproc Goto Github PK
View Code? Open in Web Editor NEWRust FFI bindings for macOS libproc
Home Page: https://crates.io/crates/darwin-libproc
License: Apache License 2.0
Rust FFI bindings for macOS libproc
Home Page: https://crates.io/crates/darwin-libproc
License: Apache License 2.0
I'm trying to retrive fd count for my process by proc_pidinfo(...,PROC_PIDLISTFDS,...)
, it works in C demo, but rust code does not.
Finally, I found the problem. I think correct PROC_PIDLISTFDS
value is 1, not 2.
This is where I found it define.
bogon:include zhangli.pear$ pwd
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
bogon:include zhangli.pear$ rg PROC_PIDLISTFDS
sys/proc_info.h
656:#define PROC_PIDLISTFDS 1
Usage of this library conflicts with regex
1.5.4. #3 resolves this issue.
Heh, I just came across your crate.
I maintain (more or less!) libproc-rs (https://github.com/andrewdavidmackenzie/libproc-rs) and wondered if you were interested in collaborating, possibly combining and sharing any maintenance workload/requests we get?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.