Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

Diff for ep/src/fd.c between version 1.8 and 1.9

version 1.8, 2002/02/25 18:45:53 version 1.9, 2002/02/28 17:50:38
Line 20 
Line 20 
 #include "fd.h"  #include "fd.h"
 #include "message.h"  #include "message.h"
   
 /*  static char *fd_str[N_FD_STR][N_FD] = {
  * TODO:  
  * - make this static a cut the same parameters,  
  * because the comparion will be case insensitive  
  */  
 char *fd_str[N_FD_STR][N_FD] = {  
         {"input ", "output", "errput"},  
         {"input", "output", "errput"},          {"input", "output", "errput"},
         {"stdin", "stdout", "stderr"},          {"stdin", "stdout", "stderr"},
         {"in", "out", "err"},          {"in", "out", "err"},
         {"in", "ou", "er"},  
         {"i", "o", "e"},          {"i", "o", "e"},
         {"INPUT", "OUTPUT", "ERRPUT"},  
         {"STDIN", "STDOUT", "STDERR"},  
         {"IN", "OUT", "ERR"},  
         {"IN", "OU", "ER"},  
         {"I", "O", "E"}  
 };  };
   
         static int          static int
Line 53  my_close(fd)
Line 41  my_close(fd)
         return close(fd);          return close(fd);
 }  }
   
           char *
   fd_id_to_fd_str(id)
           int id;
   {
           return fd_str[0][id];
   }
   
         int          int
 fd_str_to_fd_id(str)  fd_str_to_fd_id(str)
         char *str;          char *str;

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

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top