time_out = timeout in milliseconds
****************************************************************************/
-NTSTATUS read_socket_with_timeout_ntstatus(int fd, char *buf,
- size_t mincnt, size_t maxcnt,
- unsigned int time_out,
- size_t *size_ret)
+NTSTATUS read_socket_with_timeout(int fd, char *buf,
+ size_t mincnt, size_t maxcnt,
+ unsigned int time_out,
+ size_t *size_ret)
{
fd_set fds;
int selrtn;
set_smb_read_error(pre, SMB_READ_OK);
- status = read_socket_with_timeout_ntstatus(fd, buffer, N, N, 0, NULL);
+ status = read_socket_with_timeout(fd, buffer, N, N, 0, NULL);
if (NT_STATUS_IS_OK(status)) {
return N;
int msg_type;
NTSTATUS status;
- status = read_socket_with_timeout_ntstatus(fd, inbuf, 4, 4, timeout,
- NULL);
+ status = read_socket_with_timeout(fd, inbuf, 4, 4, timeout, NULL);
if (!NT_STATUS_IS_OK(status)) {
return status;
set_smb_read_error(pre, SMB_READ_OK);
- status = read_socket_with_timeout_ntstatus(
+ status = read_socket_with_timeout(
fd, buffer+4, len, len, timeout, &len);
if (!NT_STATUS_IS_OK(status)) {
set_smb_read_error(&cli->smb_rw_error, SMB_READ_OK);
- status = read_socket_with_timeout_ntstatus(
+ status = read_socket_with_timeout(
cli->fd, buffer, len, len, cli->timeout, NULL);
if (NT_STATUS_IS_OK(status)) {
return len;
return NT_STATUS_OK;
}
- return read_socket_with_timeout_ntstatus(fd, buffer, len, len,
- timeout, NULL);
+ return read_socket_with_timeout(fd, buffer, len, len, timeout, NULL);
}
/****************************************************************************
memcpy(writeX_header, lenbuf, sizeof(lenbuf));
- status = read_socket_with_timeout_ntstatus(
+ status = read_socket_with_timeout(
fd, writeX_header + 4,
STANDARD_WRITE_AND_X_HEADER_SIZE,
STANDARD_WRITE_AND_X_HEADER_SIZE,