mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
14 lines
210 B
Perl
14 lines
210 B
Perl
local ffi = require("ffi")
|
|
if ffi.os == "Windows" then
|
|
return
|
|
end
|
|
|
|
C,T = terralib.includec("sys/stat.h")
|
|
terra dostat()
|
|
var s : T.stat
|
|
C.stat("stattest.t",&s)
|
|
return s.st_size
|
|
end
|
|
|
|
assert(dostat() == 210)
|