projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
.
[gnulib.git]
/
lib
/
full-write.c
diff --git
a/lib/full-write.c
b/lib/full-write.c
index
9f30b85
..
1e80b0a
100644
(file)
--- a/
lib/full-write.c
+++ b/
lib/full-write.c
@@
-1,5
+1,5
@@
/* full-write.c -- an interface to write that retries after interrupts
/* full-write.c -- an interface to write that retries after interrupts
- Copyright (C) 1993, 1994 Free Software Foundation, Inc.
+ Copyright (C) 1993, 1994
, 1997
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-18,13
+18,13
@@
Copied largely from GNU C's cccp.c.
*/
Copied largely from GNU C's cccp.c.
*/
-#if
def
HAVE_CONFIG_H
+#if HAVE_CONFIG_H
# include <config.h>
#endif
#include <sys/types.h>
# include <config.h>
#endif
#include <sys/types.h>
-#if
def
HAVE_UNISTD_H
+#if HAVE_UNISTD_H
# include <unistd.h>
#endif
# include <unistd.h>
#endif
@@
-48,6
+48,10
@@
full_write (desc, ptr, len)
while (len > 0)
{
int written = write (desc, ptr, len);
while (len > 0)
{
int written = write (desc, ptr, len);
+ /* FIXME: write on my slackware Linux 1.2.13 returns zero when
+ I try to write more data than there is room on a floppy disk.
+ This puts dd into an infinite loop. Reproduce with
+ dd if=/dev/zero of=/dev/fd0. */
if (written < 0)
{
#ifdef EINTR
if (written < 0)
{
#ifdef EINTR