about summary refs log tree commit diff
path: root/lib/pmfileio.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2010-05-19 03:25:42 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2010-05-19 03:25:42 +0000
commit5e3a1ff09e327f6e1de32ae3d4718f3579559f32 (patch)
treebd1c2dea327ed56bf4fad12cf9d873c4b659da83 /lib/pmfileio.c
parent1f2aae5b55e42ed8fa247785ee896f750042a12d (diff)
downloadnetpbm-mirror-5e3a1ff09e327f6e1de32ae3d4718f3579559f32.tar.gz
netpbm-mirror-5e3a1ff09e327f6e1de32ae3d4718f3579559f32.tar.xz
netpbm-mirror-5e3a1ff09e327f6e1de32ae3d4718f3579559f32.zip
Remove VMS code. Who are we kidding?
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1216 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib/pmfileio.c')
-rw-r--r--lib/pmfileio.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/lib/pmfileio.c b/lib/pmfileio.c
index 585b0d0f..819a0343 100644
--- a/lib/pmfileio.c
+++ b/lib/pmfileio.c
@@ -48,18 +48,14 @@
 
 /* File open/close that handles "-" as stdin/stdout and checks errors. */
 
-FILE*
+FILE *
 pm_openr(const char * const name) {
-    FILE* f;
+    FILE * f;
 
-    if (strcmp(name, "-") == 0)
+    if (streq(name, "-"))
         f = stdin;
     else {
-#ifndef VMS
         f = fopen(name, "rb");
-#else
-        f = fopen(name, "r", "ctx=stm");
-#endif
         if (f == NULL) 
             pm_error("Unable to open file '%s' for reading.  "
                      "fopen() returns errno %d (%s)", 
@@ -70,18 +66,14 @@ pm_openr(const char * const name) {
 
 
 
-FILE*
+FILE *
 pm_openw(const char * const name) {
-    FILE* f;
+    FILE * f;
 
-    if (strcmp(name, "-") == 0)
+    if (streq(name, "-"))
         f = stdout;
     else {
-#ifndef VMS
         f = fopen(name, "wb");
-#else
-        f = fopen(name, "w", "mbc=32", "mbf=2");  /* set buffer factors */
-#endif
         if (f == NULL) 
             pm_error("Unable to open file '%s' for writing.  "
                      "fopen() returns errno %d (%s)",