src/irc.c
changeset 5 7c7fc8906920
parent 2 6a2e88214b80
child 6 7eb12be31bb5
equal deleted inserted replaced
4:00ad78d34d4c 5:7c7fc8906920
    59     }
    59     }
    60 
    60 
    61     /*
    61     /*
    62      * rw mode,but many seek errors ...
    62      * rw mode,but many seek errors ...
    63      */
    63      */
       
    64 #ifdef NETBSD
       
    65     /* BEGIN OF STREAM */
       
    66     stream = fdopen (csocket, "r+");
       
    67 #else
       
    68     /* END OF STREAM */
    64     stream = fdopen (csocket, "a+");
    69     stream = fdopen (csocket, "a+");
       
    70 #endif
       
    71     csocket = fileno(stream);
       
    72 
       
    73     printf ("Using filedescriptor %d for stream operations\n", csocket);
    65     return stream;
    74     return stream;
    66 }
    75 }
    67 
    76 
    68 int irc_login (FILE * stream, char *nick, char *password)
    77 int irc_login (FILE * stream, char *nick, char *password)
    69 {
    78 {