|  | @@ -471,7 +471,7 @@ static int64_t tcp_read(PAL_HANDLE handle, uint64_t offset, uint64_t len, void*
 | 
	
		
			
				|  |  |      if (len != (uint32_t)len)
 | 
	
		
			
				|  |  |          return -PAL_ERROR_INVAL;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    int bytes = ocall_recv(handle->sock.fd, buf, len, NULL, NULL, NULL, NULL);
 | 
	
		
			
				|  |  | +    ssize_t bytes = ocall_recv(handle->sock.fd, buf, len, NULL, NULL, NULL, NULL);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      if (IS_ERR(bytes))
 | 
	
		
			
				|  |  |          return unix_to_pal_error(ERRNO(bytes));
 | 
	
	
		
			
				|  | @@ -496,7 +496,7 @@ static int64_t tcp_write(PAL_HANDLE handle, uint64_t offset, uint64_t len, const
 | 
	
		
			
				|  |  |      if (len != (uint32_t)len)
 | 
	
		
			
				|  |  |          return -PAL_ERROR_INVAL;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    int bytes = ocall_send(handle->sock.fd, buf, len, NULL, 0, NULL, 0);
 | 
	
		
			
				|  |  | +    ssize_t bytes = ocall_send(handle->sock.fd, buf, len, NULL, 0, NULL, 0);
 | 
	
		
			
				|  |  |      if (IS_ERR(bytes))
 | 
	
		
			
				|  |  |          return unix_to_pal_error(ERRNO(bytes));
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -623,7 +623,7 @@ static int64_t udp_receive(PAL_HANDLE handle, uint64_t offset, uint64_t len, voi
 | 
	
		
			
				|  |  |      if (len != (uint32_t)len)
 | 
	
		
			
				|  |  |          return -PAL_ERROR_INVAL;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    int ret = ocall_recv(handle->sock.fd, buf, len, NULL, NULL, NULL, NULL);
 | 
	
		
			
				|  |  | +    ssize_t ret = ocall_recv(handle->sock.fd, buf, len, NULL, NULL, NULL, NULL);
 | 
	
		
			
				|  |  |      return IS_ERR(ret) ? unix_to_pal_error(ERRNO(ret)) : ret;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -644,7 +644,7 @@ static int64_t udp_receivebyaddr(PAL_HANDLE handle, uint64_t offset, uint64_t le
 | 
	
		
			
				|  |  |      struct sockaddr conn_addr;
 | 
	
		
			
				|  |  |      socklen_t conn_addrlen = sizeof(struct sockaddr);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    int bytes = ocall_recv(handle->sock.fd, buf, len, &conn_addr, &conn_addrlen, NULL, NULL);
 | 
	
		
			
				|  |  | +    ssize_t bytes = ocall_recv(handle->sock.fd, buf, len, &conn_addr, &conn_addrlen, NULL, NULL);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      if (IS_ERR(bytes))
 | 
	
		
			
				|  |  |          return unix_to_pal_error(ERRNO(bytes));
 | 
	
	
		
			
				|  | @@ -673,7 +673,7 @@ static int64_t udp_send(PAL_HANDLE handle, uint64_t offset, uint64_t len, const
 | 
	
		
			
				|  |  |      if (len != (uint32_t)len)
 | 
	
		
			
				|  |  |          return -PAL_ERROR_INVAL;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    int bytes = ocall_send(handle->sock.fd, buf, len, NULL, 0, NULL, 0);
 | 
	
		
			
				|  |  | +    ssize_t bytes = ocall_send(handle->sock.fd, buf, len, NULL, 0, NULL, 0);
 | 
	
		
			
				|  |  |      if (IS_ERR(bytes))
 | 
	
		
			
				|  |  |          return unix_to_pal_error(ERRNO(bytes));
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -710,7 +710,7 @@ static int64_t udp_sendbyaddr(PAL_HANDLE handle, uint64_t offset, uint64_t len,
 | 
	
		
			
				|  |  |      if (ret < 0)
 | 
	
		
			
				|  |  |          return ret;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    int bytes = ocall_send(handle->sock.fd, buf, len, &conn_addr, conn_addrlen, NULL, 0);
 | 
	
		
			
				|  |  | +    ssize_t bytes = ocall_send(handle->sock.fd, buf, len, &conn_addr, conn_addrlen, NULL, 0);
 | 
	
		
			
				|  |  |      if (IS_ERR(bytes))
 | 
	
		
			
				|  |  |          return unix_to_pal_error(ERRNO(bytes));
 | 
	
		
			
				|  |  |  
 |