silc_rng_xor(rng, getpgid(getpid()) << 8, 2);
silc_rng_xor(rng, getpgid(getpid()) << 8, 3);
#endif
+#ifdef HAVE_GETGID
silc_rng_xor(rng, getgid(), 4);
#endif
+#endif
#ifdef HAVE_GETPGRP
silc_rng_xor(rng, getpgrp(), 5);
#endif
#ifdef HAVE_GETSID
silc_rng_xor(rng, getsid(getpid()) << 16, 6);
#endif
+#ifndef SILC_SYMBIAN
silc_rng_xor(rng, times(&ptime), 7);
silc_rng_xor(rng, ptime.tms_utime, 8);
silc_rng_xor(rng, (ptime.tms_utime + ptime.tms_stime), pos++);
silc_rng_xor(rng, (ptime.tms_stime ^ ptime.tms_cutime), pos++);
silc_rng_xor(rng, (ptime.tms_cutime + ptime.tms_stime), pos++);
silc_rng_xor(rng, (ptime.tms_stime << 8), pos++);
+#endif /* SILC_SYMBIAN */
#endif
silc_rng_xor(rng, clock() << 4, pos++);
#ifndef SILC_WIN32
#ifdef HAVE_SETSID
silc_rng_xor(rng, getsid(getpid()) << 16, pos++);
#endif
+#ifndef SILC_SYMBIAN
silc_rng_xor(rng, times(&ptime), pos++);
silc_rng_xor(rng, ptime.tms_utime, pos++);
+#endif /* SILC_SYMBIAN */
#ifdef HAVE_GETPGRP
silc_rng_xor(rng, getpgrp(), pos++);
#endif
}
/* Get real stat */
-#ifndef SILC_WIN32
+#ifdef SILC_WIN32
+ ret = stat(entry->data + 7, &stats);
+#endif /* SILC_WIN32 */
+#ifdef SILC_UNIX
ret = lstat(entry->data + 7, &stats);
-#else
+#endif /* SILC_UNIX */
+#ifdef SILC_SYMBIAN
ret = stat(entry->data + 7, &stats);
-#endif
+#endif /* SILC_SYMBIAN */
if (ret == -1) {
(*callback)(sftp, silc_sftp_map_errno(errno), NULL, callback_context);
return;