Completed Linux/Posix implementation of getFileInfo

Moved parts of getFileInfo into a helper template.
This commit is contained in:
Clay Sweetser 2014-04-13 19:03:42 -04:00
commit 79f0c66b4d
2 changed files with 44 additions and 23 deletions

View file

@ -716,3 +716,6 @@ proc WSASend*(s: TSocketHandle, buf: ptr TWSABuf, bufCount: DWORD,
bytesSent: PDWord, flags: DWORD, lpOverlapped: POverlapped,
completionProc: POVERLAPPED_COMPLETION_ROUTINE): cint {.
stdcall, importc: "WSASend", dynlib: "Ws2_32.dll".}
proc get_osfhandle*(fd:TFileHandle): THandle {.
importc:"__get_osfhandle", header:"<io.h>".}