Skip to content
Snippets Groups Projects
Commit b16d138a authored by David Thompson's avatar David Thompson Committed by David Thompson
Browse files

build: syscalls: Add unmount flags.

* guix/build/syscalls.scm (MNT_FORCE, MNT_DETACH, MNT_EXPIRE)
  (UMOUNT_NOFOLLOW): New variables.
parent 577c02eb
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,10 @@ (define-module (guix build syscalls) ...@@ -34,6 +34,10 @@ (define-module (guix build syscalls)
MS_BIND MS_BIND
MS_MOVE MS_MOVE
MS_STRICTATIME MS_STRICTATIME
MNT_FORCE
MNT_DETACH
MNT_EXPIRE
UMOUNT_NOFOLLOW
restart-on-EINTR restart-on-EINTR
mount mount
umount umount
...@@ -150,6 +154,11 @@ (define MS_BIND 4096) ...@@ -150,6 +154,11 @@ (define MS_BIND 4096)
(define MS_MOVE 8192) (define MS_MOVE 8192)
(define MS_STRICTATIME 16777216) (define MS_STRICTATIME 16777216)
(define MNT_FORCE 1)
(define MNT_DETACH 2)
(define MNT_EXPIRE 4)
(define UMOUNT_NOFOLLOW 8)
(define mount (define mount
(let* ((ptr (dynamic-func "mount" (dynamic-link))) (let* ((ptr (dynamic-func "mount" (dynamic-link)))
(proc (pointer->procedure int ptr `(* * * ,unsigned-long *)))) (proc (pointer->procedure int ptr `(* * * ,unsigned-long *))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment