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

Similar Threads

fwrite problems... 3
PHP failed to create file 13
fwrite problems... 6
fread/fwrite 2 18
help with fwrite() 5
fwrite() does not write data to file 8
URGENT 1
Question about fwrite() function 3

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top