/*
- * $Id: fd.cc,v 1.60 2007/12/14 23:11:46 amosjeffries Exp $
+ * $Id: fd.cc,v 1.61 2008/03/02 13:32:24 serassio Exp $
*
* DEBUG: section 51 Filedescriptor Functions
* AUTHOR: Duane Wessels
socket_read_method(int fd, char *buf, int len)
{
int i;
- PROF_start(send);
+ PROF_start(recv);
i = recv(fd, (void *) buf, len, 0);
- PROF_stop(send);
+ PROF_stop(recv);
return i;
}
int
file_write_method(int fd, const char *buf, int len)
{
- return (_write(fd, buf, len));
+ int i;
+ PROF_start(write);
+ i = (_write(fd, buf, len));
+ PROF_stop(write);
+ return i;
}
#else