comparison src/win32/libc_interface.c @ 6425:26b739bc9f1a

[gaim-migrate @ 6933] Warnings and gaim_debugs committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Mon, 11 Aug 2003 18:54:38 +0000
parents 9657e243d001
children 5e7ffea3f76a
comparison
equal deleted inserted replaced
6424:8e7f1662d802 6425:26b739bc9f1a
28 #include <stdio.h> 28 #include <stdio.h>
29 #include <errno.h> 29 #include <errno.h>
30 #include <sys/timeb.h> 30 #include <sys/timeb.h>
31 #include <sys/stat.h> 31 #include <sys/stat.h>
32 #include <time.h> 32 #include <time.h>
33 #include "debug.h"
33 #include "libc_internal.h" 34 #include "libc_internal.h"
34 35
35 /* 36 /*
36 * PROTOS 37 * PROTOS
37 */ 38 */
38 extern void debug_printf(char * fmt, ...);
39 39
40 /* 40 /*
41 * LOCALS 41 * LOCALS
42 */ 42 */
43 43
55 if( (getsockopt(fd, SOL_SOCKET, SO_TYPE, (void*)&optval, &optlen)) == SOCKET_ERROR ) { 55 if( (getsockopt(fd, SOL_SOCKET, SO_TYPE, (void*)&optval, &optlen)) == SOCKET_ERROR ) {
56 int error = WSAGetLastError(); 56 int error = WSAGetLastError();
57 if( error == WSAENOTSOCK ) 57 if( error == WSAENOTSOCK )
58 return FALSE; 58 return FALSE;
59 else { 59 else {
60 debug_printf("wgaim_read: getsockopt returned error: %d\n", error); 60 gaim_debug(GAIM_DEBUG_WARNING, "wgaim", "wgaim_is_socket: getsockopt returned error: %d\n", error);
61 return FALSE; 61 return FALSE;
62 } 62 }
63 } 63 }
64 return TRUE; 64 return TRUE;
65 } 65 }
133 return -1; 133 return -1;
134 } 134 }
135 return 0; 135 return 0;
136 } 136 }
137 default: 137 default:
138 debug_printf("wgaim_fcntl: Unsupported command\n"); 138 gaim_debug(GAIM_DEBUG_WARNING, "wgaim", "wgaim_fcntl: Unsupported command\n");
139 return -1; 139 return -1;
140 }/*end switch*/ 140 }/*end switch*/
141 } 141 }
142 142
143 /* sys/ioctl.h */ 143 /* sys/ioctl.h */
327 else { 327 else {
328 /* This is not quite right.. If newname is empty and 328 /* This is not quite right.. If newname is empty and
329 is not a sub dir of oldname, newname should be 329 is not a sub dir of oldname, newname should be
330 deleted and oldname should be renamed. 330 deleted and oldname should be renamed.
331 */ 331 */
332 debug_printf("Warning: wgaim_rename does not behave here as it should\n"); 332 gaim_debug(GAIM_DEBUG_WARNING, "wgaim", "wgaim_rename does not behave here as it should\n");
333 return rename(oldname, newname); 333 return rename(oldname, newname);
334 } 334 }
335 } 335 }
336 /* oldname is not a dir */ 336 /* oldname is not a dir */
337 else { 337 else {