strace of fwrite

G

Guru

I have written one very basic file write program by fopen/fwrite/
fclose.
That executable i run through strace.

From strace output i observed fwrite uses "write" system call.

Ex-

write(3, "Text String001"..., 4096) = 4096
write(3, "Text String002"..., 4096) = 4096

Here 3 is my open fd for given file.
Here it always writes 4096 bytes

1) My doubt is, this 4096 is default page size/default memory block
size.Exactely what is this 4096 ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top