Apache HTTPD
Functions
testflock.c File Reference
#include "testflock.h"
#include "testutil.h"
#include "apr_pools.h"
#include "apr_thread_proc.h"
#include "apr_file_io.h"
#include "apr_file_info.h"
#include "apr_general.h"
#include "apr_strings.h"

Go to the source code of this file.

Functions

static int launch_reader (abts_case *tc)
 
static void test_withlock (abts_case *tc, void *data)
 
static void test_withoutlock (abts_case *tc, void *data)
 
static void remove_lockfile (abts_case *tc, void *data)
 
abts_suitetestflock (abts_suite *suite)
 

Function Documentation

◆ launch_reader()

static int launch_reader ( abts_case tc)
static

Definition at line 26 of file testflock.c.

◆ remove_lockfile()

static void remove_lockfile ( abts_case tc,
void *  data 
)
static

Definition at line 89 of file testflock.c.

◆ test_withlock()

static void test_withlock ( abts_case tc,
void *  data 
)
static

< Open the file for writing

< Create the file if not there

< use OS's default permissions

<

Deprecated:
See also
APR_FPROT_OS_DEFAULT

< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".

Definition at line 60 of file testflock.c.

◆ test_withoutlock()

static void test_withoutlock ( abts_case tc,
void *  data 
)
static

Definition at line 81 of file testflock.c.

◆ testflock()

abts_suite * testflock ( abts_suite suite)

Definition at line 95 of file testflock.c.