~ubuntu-branches/ubuntu/trusty/postfix/trusty-updates

« back to all changes in this revision

Viewing changes to src/util/open_lock.c

Tags: upstream-2.3.1
ImportĀ upstreamĀ versionĀ 2.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
/* SYNOPSIS
7
7
/*      #include <open_lock.h>
8
8
/*
9
 
/*      VSTREAM *open_lock(path, int flags, int mode, why)
 
9
/*      VSTREAM *open_lock(path, flags, mode, why)
10
10
/*      const char *path;
11
11
/*      int     flags;
12
 
/*      int     mode;
 
12
/*      mode_t  mode;
13
13
/*      VSTRING *why;
14
14
/* DESCRIPTION
15
15
/*      This module opens or creates the named file and attempts to
55
55
 
56
56
/* open_lock - open file and lock it for exclusive access */
57
57
 
58
 
VSTREAM *open_lock(const char *path, int flags, int mode, VSTRING *why)
 
58
VSTREAM *open_lock(const char *path, int flags, mode_t mode, VSTRING *why)
59
59
{
60
60
    VSTREAM *fp;
61
61