projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added SILC Server library.
[silc.git]
/
lib
/
silcutil
/
win32
/
silcwin32util.c
diff --git
a/lib/silcutil/win32/silcwin32util.c
b/lib/silcutil/win32/silcwin32util.c
index 0fb3f204755132a8dd01ebccf7e455a3e7af7490..fad5f5996689eeea4831d13130aa5ffac873ed58 100644
(file)
--- a/
lib/silcutil/win32/silcwin32util.c
+++ b/
lib/silcutil/win32/silcwin32util.c
@@
-4,12
+4,11
@@
Author: Pekka Riikonen <priikone@silcnet.org>
Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 2001 Pekka Riikonen
+ Copyright (C) 2001
- 2005
Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
+ the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-19,7
+18,7
@@
*/
/* $Id$ */
*/
/* $Id$ */
-#include "silc
includes
.h"
+#include "silc.h"
/* XXX GNU regex may work on Win32 too!! */
char *silc_string_regexify(const char *string)
/* XXX GNU regex may work on Win32 too!! */
char *silc_string_regexify(const char *string)
@@
-74,3
+73,8
@@
char *silc_get_real_name(void)
{
return silc_get_username();
}
{
return silc_get_username();
}
+
+int silc_file_set_nonblock(int fd)
+{
+ return fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0) | O_NONBLOCK);
+}