Skip to content

Commit

Permalink
Add SEEK_DATA and SEEK_HOLE constants
Browse files Browse the repository at this point in the history
Allow discovery of holes in files with lseek(2).

Fix #207

Signed-off-by: Justin Cormack <justin@specialbusservice.com>
  • Loading branch information
justincormack committed Feb 16, 2017
1 parent 9a7b584 commit 61450f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions syscall/linux/constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,8 @@ c.SEEK = strflag {
SET = 0,
CUR = 1,
END = 2,
DATA = 3,
HOLE = 4,
}

-- exit
Expand Down

0 comments on commit 61450f5

Please sign in to comment.