From 5145dd3aa0c02c9fc496d1432fc4410674206e1d Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 20 Feb 2017 00:05:31 -0800 Subject: Import Upstream version 3a2 --- transact.txi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'transact.txi') diff --git a/transact.txi b/transact.txi index 5e3ff8f..4dec378 100644 --- a/transact.txi +++ b/transact.txi @@ -55,6 +55,7 @@ Returns the string @samp{@var{user}@@@var{hostname}} associated with the lock owner of file @var{path} if locked; and #f otherwise. @end defun + @deffn {Procedure} file-lock! path email @@ -69,6 +70,7 @@ unlocked, then @code{file-lock!} returns the certificate string associated with new lock for file @var{path}. @end deffn + @deffn {Procedure} file-unlock! path certificate @var{path} must be a string naming the file to be unlocked. @var{certificate} must be the @@ -78,6 +80,7 @@ If @var{path} is locked with @var{certificate}, then @code{file-unlock!} removes @samp{#t}. Otherwise, @code{file-unlock!} leaves the file system unaltered and returns @samp{#f}. @end deffn + @subsubheading File Transactions @@ -104,6 +107,7 @@ the string "@var{path}.bak" @end table @end defun + @defun transact-file-replacement proc path backup-style certificate @@ -140,6 +144,7 @@ returns a string, then @var{path} is renamed to it. Finally, the temporary file is renamed @var{path}. @code{transact-file-replacement} returns #t if @var{path} was successfully replaced; and #f otherwise. @end defun + @subsubheading Identification @@ -148,3 +153,4 @@ Finally, the temporary file is renamed @var{path}. @code{user-email-address} returns a string of the form @samp{username@r{@@}hostname}. If this e-mail address cannot be obtained, #f is returned. @end defun + -- cgit v1.2.3