Skip to content

Instantly share code, notes, and snippets.

@jkortus
jkortus / punch.py
Last active August 29, 2015 14:15 — forked from jimparis/punch.py
#!/usr/bin/python
import ctypes
import ctypes.util
c_off_t = ctypes.c_int64
def make_fallocate():
libc_name = ctypes.util.find_library('c')
libc = ctypes.CDLL(libc_name)