equal
deleted
inserted
replaced
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 { |