Skip to content

no lsof on OpenBSD #428

@marcespie

Description

@marcespie

Something fairly similar can be done using fstat, though.

Questions remain:

  • is it only OpenBSD ? I kind-of-think it might apply to NetBSD/FreeBSD/Dragonfly as well.

Depending on that, there might be some extra IS_ constants

Or just maybe, try to run either of lsof or fstat you can ? and parse the results differently.

Will probably be more sturdy on any Unix...

Anyway, here's the fstat code.

Looking forward, making it work better. Sorry to not have a full patch yet.

I can look into it further if you don't have time.

patch.txt

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions