Completed Linux/Posix implementation of getFileInfo
Moved parts of getFileInfo into a helper template.
This commit is contained in:
parent
8af083c847
commit
79f0c66b4d
2 changed files with 44 additions and 23 deletions
|
|
@ -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>".}
|
||||
Loading…
Add table
Add a link
Reference in a new issue