transmit - send bytes through a file descriptor
#include <libcgc.h> int transmit(int fd, const void *buf, size_t count, size_t *tx_bytes)
transmit system call writes up to
count bytes from the buffer
pointed to by
buf to the file descriptor
count is zero,
transmit returns 0 and optionally sets
*tx_bytes to zero.
transmit function is invoked through system call number 2.
On success, zero is returned and, if
tx_bytes is not
NULL, the number
of bytes transmitted in returned in
*tx_bytes (zero indicates nothing
was transmitted). On error, an error code is returned and
is left unmodified.
fdis not a valid file descriptor or is not open.
bufor tx_bytes points to an invalid address.