aboutsummaryrefslogtreecommitdiff
path: root/src/fullio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fullio.c')
-rw-r--r--src/fullio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fullio.c b/src/fullio.c
index bdb51cb..84eea60 100644
--- a/src/fullio.c
+++ b/src/fullio.c
@@ -24,13 +24,13 @@
24int 24int
25_gdbm_full_read (GDBM_FILE dbf, void *buffer, size_t size) 25_gdbm_full_read (GDBM_FILE dbf, void *buffer, size_t size)
26{ 26{
27 char *ptr = buffer; 27 char *ptr = buffer;
28 while (size) 28 while (size)
29 { 29 {
30 ssize_t rdbytes = __read (dbf, ptr, size); 30 ssize_t rdbytes = gdbm_file_read (dbf, ptr, size);
31 if (rdbytes == -1) 31 if (rdbytes == -1)
32 { 32 {
33 if (errno == EINTR) 33 if (errno == EINTR)
34 continue; 34 continue;
35 if (gdbm_last_errno (dbf) == GDBM_NO_ERROR) 35 if (gdbm_last_errno (dbf) == GDBM_NO_ERROR)
36 GDBM_SET_ERRNO (dbf, GDBM_FILE_READ_ERROR, FALSE); 36 GDBM_SET_ERRNO (dbf, GDBM_FILE_READ_ERROR, FALSE);
@@ -52,13 +52,13 @@ _gdbm_full_read (GDBM_FILE dbf, void *buffer, size_t size)
52int 52int
53_gdbm_full_write (GDBM_FILE dbf, void *buffer, size_t size) 53_gdbm_full_write (GDBM_FILE dbf, void *buffer, size_t size)
54{ 54{
55 char *ptr = buffer; 55 char *ptr = buffer;
56 while (size) 56 while (size)
57 { 57 {
58 ssize_t wrbytes = __write (dbf, ptr, size); 58 ssize_t wrbytes = gdbm_file_write (dbf, ptr, size);
59 if (wrbytes == -1) 59 if (wrbytes == -1)
60 { 60 {
61 if (errno == EINTR) 61 if (errno == EINTR)
62 continue; 62 continue;
63 if (gdbm_last_errno (dbf) == GDBM_NO_ERROR) 63 if (gdbm_last_errno (dbf) == GDBM_NO_ERROR)
64 GDBM_SET_ERRNO (dbf, GDBM_FILE_WRITE_ERROR, TRUE); 64 GDBM_SET_ERRNO (dbf, GDBM_FILE_WRITE_ERROR, TRUE);

Return to:

Send suggestions and report system problems to the System administrator.