Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 1997 - 2005 Pekka Riikonen
+ Copyright (C) 1997 - 2007 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
return -1;
}
+#ifdef SILC_UNIX
fsync(fd);
+#endif /* SILC_UNIX */
return silc_file_close(fd);
}
return -1;
}
+#ifdef SILC_UNIX
fsync(fd);
+#endif /* SILC_UNIX */
return silc_file_close(fd);
}
int ret;
struct stat stats;
-#ifndef SILC_WIN32
+#ifdef SILC_WIN32
+ ret = stat(filename, &stats);
+#endif /* SILC_WIN32 */
+#ifdef SILC_UNIX
ret = lstat(filename, &stats);
-#else
+#endif /* SILC_UNIX */
+#ifdef SILC_SYMBIAN
ret = stat(filename, &stats);
-#endif
+#endif /* SILC_SYMBIAN */
if (ret < 0)
return 0;