tin  2.4.5
About: TIN is a threaded NNTP and spool based UseNet newsreader.
  Fossies Dox: tin-2.4.5.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

lock.c File Reference
#include "tin.h"
Include dependency graph for lock.c:

Go to the source code of this file.

Macros

#define LOCK_SUFFIX   ".lock"
 

Functions

int fd_lock (int fd, t_bool block)
 
int fd_unlock (int fd)
 
t_bool dot_lock (const char *filename)
 
t_bool dot_unlock (const char *filename)
 

Macro Definition Documentation

◆ LOCK_SUFFIX

#define LOCK_SUFFIX   ".lock"

Definition at line 61 of file lock.c.

Function Documentation

◆ dot_lock()

t_bool dot_lock ( const char *  filename)

Definition at line 220 of file lock.c.

References dir_name(), FALSE, LOCK_SUFFIX, my_tmpfile(), PATH_LEN, snprintf, TRUE, and unlink.

Referenced by append_mail().

◆ dot_unlock()

t_bool dot_unlock ( const char *  filename)

Definition at line 267 of file lock.c.

References FALSE, LOCK_SUFFIX, my_malloc, TRUE, and unlink.

Referenced by append_mail().

◆ fd_lock()

int fd_lock ( int  fd,
t_bool  block 
)

Definition at line 73 of file lock.c.

References SEEK_SET.

Referenced by append_mail().

◆ fd_unlock()

int fd_unlock ( int  fd)

Definition at line 178 of file lock.c.

References SEEK_SET.

Referenced by append_mail().