summaryrefslogtreecommitdiff
path: root/source/sys_unix.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2007-12-20 18:28:37 +0000
committerAndrey Nazarov <skuller@skuller.net>2007-12-20 18:28:37 +0000
commita33a790492ae722314521cd0f5c6c58c13c5fbd4 (patch)
tree564ce1d523798e4cf4fe8bfb5adee9b2cf252935 /source/sys_unix.c
parent0817feeab90886b7c4379bc9fa54f67154c40172 (diff)
Added initial server side support for r1ch.net anticheat.
Renamed `listban' command to `listbans'. Make sure NET_Connect sets NS_CONNECTING state even if connect() succeedes immediately. Changed FIFO_Read/FIFO_Write semantics.
Diffstat (limited to 'source/sys_unix.c')
-rw-r--r--source/sys_unix.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/sys_unix.c b/source/sys_unix.c
index 1046440..c6e50de 100644
--- a/source/sys_unix.c
+++ b/source/sys_unix.c
@@ -674,6 +674,11 @@ void Sys_AddDefaultConfig( void ) {
fclose( fp );
}
+void Sys_Sleep( int msec ) {
+ struct timespec req = { 0, msec * 1000000 };
+ nanosleep( &req, NULL );
+}
+
/*
================
Sys_FillAPI