tanelpoder / 0xtools

0x.Tools: X-Ray vision for Linux systems
https://0x.tools
GNU General Public License v2.0
1.22k stars 99 forks source link

bundle unistd.h with psn #5

Closed tanelpoder closed 4 years ago

tanelpoder commented 5 years ago

This way no need to install or copy this file even on minimal Linux installs that don't have it. it's not completely trivial as different platforms (and different major kernel versions apparently) the syscall number<->name mappings are different. So might be easy to just bundle x86_64's mappings for "recent" kernels - and still use the separate unistd.h file if it's there

tanelpoder commented 5 years ago

An additional optimization that can be done is to attempt to read the unistd.h only when the syscall data source is used. It's not needed otherwise.

tanelpoder commented 4 years ago

I implemented this a while ago.