Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 595 Bytes

File metadata and controls

30 lines (24 loc) · 595 Bytes

NodeJS Read File System Calls

Compile and Run file_read.c

gcc ./file_read_uv.c -o file_read
file_read

Compile and Run file_read_uv.c, you have to first install libuv(use this link)

gcc ./file_read_uv.c -o file_read_uv -luv
file_read_uv

How to Trace

Use strace, it works only on Linux

# For Debian-based distributions like Ubuntu
sudo apt-get install strace

# For RPM-based distributions like CentOS
sudo yum install strace

Tracing

strace -c ./file_read
strace -c node ./read_file_callback.js