--- libaitsync/src/file.c 2012/11/13 14:19:39 1.4 +++ libaitsync/src/file.c 2014/02/04 16:39:00 1.5.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: file.c,v 1.4 2012/11/13 14:19:39 misho Exp $ +* $Id: file.c,v 1.5.2.1 2014/02/04 16:39:00 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 +Copyright 2004 - 2014 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -48,7 +48,7 @@ SUCH DAMAGE. #include "file.h" -inline int +int sync_Open(const char *csFile, int mode, int perm) { int f; @@ -64,7 +64,7 @@ sync_Open(const char *csFile, int mode, int perm) return f; } -inline int +int sync_Temp(char * __restrict psName, int len) { char str[] = "/tmp/ansyncXXXXXX.dlt"; @@ -76,14 +76,14 @@ sync_Temp(char * __restrict psName, int len) return f; } -inline void +void sync_Close(int f) { if (f > 2) close(f); } -inline int +int sync_EOF(int f) { off_t old;