diff options
author | Justus Winter <[email protected]> | 2016-11-08 14:11:12 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-11-08 15:02:55 +0000 |
commit | 591d61d80f4f81176f7e236df794922df9e001a1 (patch) | |
tree | c95abd7b3e052f25aa1ebbf2a83769275e6756c6 /tests/gpgscm/lib.scm | |
parent | gpgscm: Fix error message. (diff) | |
download | gnupg-591d61d80f4f81176f7e236df794922df9e001a1.tar.gz gnupg-591d61d80f4f81176f7e236df794922df9e001a1.zip |
gpgscm: Expose seek and associated constants.
* tests/gpgscm/ffi.c (do_seek): New function.
(ffi_init): Expose 'seek' and 'SEEK_{SET,CUR,END}'.
* tests/gpgscm/lib.scm: Document the new function.
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | tests/gpgscm/lib.scm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/gpgscm/lib.scm b/tests/gpgscm/lib.scm index 27779e24a..4e19eae60 100644 --- a/tests/gpgscm/lib.scm +++ b/tests/gpgscm/lib.scm @@ -204,6 +204,14 @@ ;; Libc functions. ;; +;; Change the read/write offset. +(ffi-define (seek fd offset whence)) + +;; Constants for WHENCE. +(ffi-define SEEK_SET) +(ffi-define SEEK_CUR) +(ffi-define SEEK_END) + ;; Get our process id. (ffi-define (getpid)) |