/[global]/global/libutil/test.c
ViewVC logotype

Diff of /global/libutil/test.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by shigio, Fri May 13 23:51:24 2005 UTC revision 1.10 by h-iwamoto, Sat May 14 06:29:05 2005 UTC
# Line 56  is_binary(path) Line 56  is_binary(path)
56          char buf[32];          char buf[32];
57          int i, c, size;          int i, c, size;
58    
59          ip = open(path, 0);          ip = open(path, O_RDONLY);
60          if (ip < 0)          if (ip < 0)
61                  die("cannot open file '%s' in read mode.", path);                  die("cannot open file '%s' in read mode.", path);
62          size = read(ip, buf, sizeof(buf));          size = read(ip, buf, sizeof(buf));

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26