I’m trying to determine what libc_write does exactly. I’m executing a binary on a processor simulator I designed in c++ and the program being run has jumped to the function call libc_write(). Now, there are 2 different types of write functions – write() which writes one large buffer to a stream, possibly comprised of many buffers that were copied contiguously in memory from other buffers – and writev() which takes an array of pointers to one or many buffers along with each buffer’s size and writes them all to a single stream. What does libc_write do? Write, Writev, both, none?
I’m trying to determine what libc_write does exactly. I’m executing a binary on a
Share
libc_writeis the LIBC’s internal alias forwrite(3). Sincewritev(3)boils down to a separate syscall, you’d seelibc_writevif you were calling it.A side note – make Google Code Search your friend 🙂
Edit:
(3)means section 3 of the manual:I.e.
write(2)means manual entry forwritesystem call.write(3)means manual entry forwritelibrary routine.