summaryrefslogtreecommitdiff
path: root/os/windows/posix.c
diff options
context:
space:
mode:
authorBruce Cran <bruce@cran.org.uk>2012-02-20 21:03:48 +0100
committerJens Axboe <axboe@kernel.dk>2012-02-20 21:03:48 +0100
commitfc0b830f419bf64fff6fee91d1d3b9e94da11091 (patch)
tree3da4f700a53d6f03e67a67c160770ecb7e034c22 /os/windows/posix.c
parent01bff3b891c164413b67f8d349ec7e8108d962e2 (diff)
downloadfio-fc0b830f419bf64fff6fee91d1d3b9e94da11091.tar.gz
fio-fc0b830f419bf64fff6fee91d1d3b9e94da11091.tar.bz2
Fix tabbing and comment characters in Windows code.
Update syslog.h with proper flag values. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'os/windows/posix.c')
-rwxr-xr-xos/windows/posix.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/os/windows/posix.c b/os/windows/posix.c
index 27793cbd..ea3736d5 100755
--- a/os/windows/posix.c
+++ b/os/windows/posix.c
@@ -98,7 +98,7 @@ int gettimeofday(struct timeval *restrict tp, void *restrict tzp)
unsigned long long unix_time, windows_time;
const time_t MILLISECONDS_BETWEEN_1601_AND_1970 = 11644473600000;
- // Ignore the timezone parameter
+ /* Ignore the timezone parameter */
(void)tzp;
/*
@@ -191,12 +191,16 @@ int kill(pid_t pid, int sig)
return (-1);
}
-// This is assumed to be used only by the network code,
-// and so doesn't try and handle any of the other cases
+/*
+ * This is assumed to be used only by the network code,
+ * and so doesn't try and handle any of the other cases
+ */
int fcntl(int fildes, int cmd, ...)
{
- // non-blocking mode doesn't work the same as in BSD sockets,
- // so ignore it.
+ /*
+ * non-blocking mode doesn't work the same as in BSD sockets,
+ * so ignore it.
+ */
#if 0
va_list ap;
int val, opt, status;
@@ -440,7 +444,7 @@ int posix_madvise(void *addr, size_t len, int advice)
return ENOSYS;
}
-// Windows doesn't support advice for memory pages. Just ignore it.
+/* Windows doesn't support advice for memory pages. Just ignore it. */
int msync(void *addr, size_t len, int flags)
{
log_err("%s is not implemented\n", __func__);