mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
build: syscalls: Add unmount flags.
* guix/build/syscalls.scm (MNT_FORCE, MNT_DETACH, MNT_EXPIRE) (UMOUNT_NOFOLLOW): New variables.
This commit is contained in:
parent
577c02eb40
commit
b16d138a0a
1 changed files with 9 additions and 0 deletions
|
@ -34,6 +34,10 @@ (define-module (guix build syscalls)
|
|||
MS_BIND
|
||||
MS_MOVE
|
||||
MS_STRICTATIME
|
||||
MNT_FORCE
|
||||
MNT_DETACH
|
||||
MNT_EXPIRE
|
||||
UMOUNT_NOFOLLOW
|
||||
restart-on-EINTR
|
||||
mount
|
||||
umount
|
||||
|
@ -150,6 +154,11 @@ (define MS_BIND 4096)
|
|||
(define MS_MOVE 8192)
|
||||
(define MS_STRICTATIME 16777216)
|
||||
|
||||
(define MNT_FORCE 1)
|
||||
(define MNT_DETACH 2)
|
||||
(define MNT_EXPIRE 4)
|
||||
(define UMOUNT_NOFOLLOW 8)
|
||||
|
||||
(define mount
|
||||
(let* ((ptr (dynamic-func "mount" (dynamic-link)))
|
||||
(proc (pointer->procedure int ptr `(* * * ,unsigned-long *))))
|
||||
|
|
Loading…
Reference in a new issue