Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
LSH
lsh
Commits
9634d28b
Commit
9634d28b
authored
Sep 15, 1998
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More debug.
Rev: src/io.c:1.10
parent
42ca876c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
src/io.c
src/io.c
+8
-4
No files found.
src/io.c
View file @
9634d28b
...
@@ -23,11 +23,12 @@
...
@@ -23,11 +23,12 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
*/
#include <assert.h>
#include <string.h>
#include <unistd.h>
#include <unistd.h>
#include <poll.h>
#include <poll.h>
#include <errno.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/socket.h>
...
@@ -47,7 +48,7 @@ struct fd_read
...
@@ -47,7 +48,7 @@ struct fd_read
int
fd
;
int
fd
;
};
};
static
int
do_read
(
struct
abstract_read
**
r
,
UINT
8
*
buffer
,
UINT32
length
)
static
int
do_read
(
struct
abstract_read
**
r
,
UINT
32
length
,
UINT8
*
buffer
)
{
{
struct
fd_read
*
closure
struct
fd_read
*
closure
=
(
struct
fd_read
*
)
*
r
;
=
(
struct
fd_read
*
)
*
r
;
...
@@ -67,7 +68,10 @@ static int do_read(struct abstract_read **r, UINT8 *buffer, UINT32 length)
...
@@ -67,7 +68,10 @@ static int do_read(struct abstract_read **r, UINT8 *buffer, UINT32 length)
case
EWOULDBLOCK
:
/* aka EAGAIN */
case
EWOULDBLOCK
:
/* aka EAGAIN */
return
0
;
return
0
;
default:
default:
werror
(
"io.c: do_read: read() failed, %s
\n
"
,
strerror
(
errno
));
werror
(
"io.c: do_read: read() failed (errno %d), %s
\n
"
,
errno
,
strerror
(
errno
));
debug
(
" fd = %d, buffer = %p, length = %ud
\n
"
,
closure
->
fd
,
buffer
,
length
);
return
A_FAIL
;
return
A_FAIL
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment