⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dotlock.man

📁 mutt-1.5.12 源代码。linux 下邮件接受的工具。
💻 MAN
字号:
.\" -*-nroff-*-.\".\".\"     Copyright (C) 1996-8 Michael R. Elkins <me@cs.hmc.edu>.\"	Copyright (C) 1998-9 Thomas Roessler <roessler@guug.de>.\" .\"     This program is free software; you can redistribute it and/or modify.\"     it under the terms of the GNU General Public License as published by.\"     the Free Software Foundation; either version 2 of the License, or.\"     (at your option) any later version..\" .\"     This program is distributed in the hope that it will be useful,.\"     but WITHOUT ANY WARRANTY; without even the implied warranty of.\"     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the.\"     GNU General Public License for more details..\" .\"     You should have received a copy of the GNU General Public License.\"     along with this program; if not, write to the Free Software.\"     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA..\".TH dotlock 1 "AUGUST 1999" Unix "User Manuals".SH NAMEmutt_dotlock \- Lock mail spool files..SH SYNOPSIS.PP.B mutt_dotlock [-t|-f|-u|-d] [-p] [-r \fIretries\fP] \fIfile\fP.SH DESCRIPTION.PP.B mutt_dotlockimplements the traditional mail spool file locking method:To lock \fIfile\fP, a file named \fIfile\fP.lock iscreated. The program operates with group mail privilegesif necessary..SH OPTIONS.PP.IP "-t"Just try..B mutt_dotlockwon't actually lock a file, but inform the invokingprocess if it's at all possible to lock \fIfile\fP..IP "-f"Force the lock.  If another process holds a lock on\fIfile\fP longer than a certain amount of time, .B mutt_dotlockwill break that lock by removing the lockfile..IP "-u"Unlock..B mutt_dotlock will remove \fIfile\fP.lock..IP "-d"Delete..B mutt_dotlockwill lock \fIfile\fP, remove it if it has length 0, and afterwardsremove \fIfile\fP.lock..IP "-p"Use privileges.  If given this option, .B mutt_dotlockwill operate with group mail privileges when creating anddeleting lock files..IP "-r \fIretries\fP"This command line option tells .B mutt_dotlock to try locking\fIretries\fP times before giving up or (if invoked withthe .B -fcommand line option) break a lock.  The default value is 5..B mutt_dotlockwaits one second between successive locking attempts.  .SH FILES.PP.IP "\fIfile\fP.lock"The lock file .B mutt_dotlockgenerates..SH SEE ALSO.PP.BR fcntl (2),.BR flock (2),.BR lockfile (1),.BR mutt (1).SH DIAGNOSTICS.PP.B mutt_dotlockgives all diagnostics in its return values:.TP.B "0 \- DL_EX_OK"The program was successful..TP .B "1 \- DL_EX_ERROR"An unspecified error such as bad command line parameters,lack of system memory and the like has occured..TP .B "3 \- DL_EX_EXIST"The user wants to lock a file which has been locked byanother process already.  If .B mutt_dotlockis invoked with the.B -f command line option, .B mutt_dotlockwon't generate this error, but break other processes'locks..TP .B "4 \- DL_EX_NEED_RPIVS"This return value only occurs if .B mutt_dotlock has been invokedwith the .B -tcommand line option.  It means that.B mutt_dotlockwill have to use its group mail privileges to lock\fIfile\fP..TP.B "5 \- DL_EX_IMPOSSIBLE"This return value only occurs if.B mutt_dotlockhas been invoked with the.B -tcommand line option.  It means that.B mutt_dotlock is unable to lock \fIfile\fP even with group mailprivileges..SH NOTES.PP.B mutt_dotlocktries to implement an NFS-safe dotlocking method which wasborrowed from .B lockfile(1).  .PPIf the user can't open \fIfile\fP for reading with hisnormal privileges, .B mutt_dotlock will return the.B DL_EX_ERRORexit value to avoid certain attacks against other users'spool files. The code carefully avoids race conditionswhen checking permissions; for details of all this see thecomments in dotlock.c..SH HISTORY.PP.B mutt_dotlockis part of the Mutt mail user agent package.  It has beencreated to avoid running mutt with group mail privileges..SH AUTHORThomas Roessler <roessler@guug.de>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -