Apache HTTPD
Macros | Functions
testfile.c File Reference
#include "apr_file_io.h"
#include "apr_file_info.h"
#include "apr_network_io.h"
#include "apr_errno.h"
#include "apr_general.h"
#include "apr_poll.h"
#include "apr_lib.h"
#include "apr_strings.h"
#include "apr_thread_proc.h"
#include "testutil.h"

Go to the source code of this file.

Macros

#define DIRNAME   "data"
 
#define FILENAME   DIRNAME "/file_datafile.txt"
 
#define TESTSTR   "This is the file data file."
 
#define TESTREAD_BLKSIZE   1024
 
#define APR_BUFFERSIZE   4096 /* This should match APR's buffer size. */
 
#define LINE1   "this is a line of text\n"
 
#define LINE2   "this is a second line of text\n"
 

Functions

static void test_open_noreadwrite (abts_case *tc, void *data)
 
static void test_open_excl (abts_case *tc, void *data)
 
static void test_open_read (abts_case *tc, void *data)
 
static void link_existing (abts_case *tc, void *data)
 
static void link_nonexisting (abts_case *tc, void *data)
 
static void test_read (abts_case *tc, void *data)
 
static void test_readzero (abts_case *tc, void *data)
 
static void test_filename (abts_case *tc, void *data)
 
static void test_fileclose (abts_case *tc, void *data)
 
static void test_file_remove (abts_case *tc, void *data)
 
static void test_open_write (abts_case *tc, void *data)
 
static void test_open_writecreate (abts_case *tc, void *data)
 
static void test_write (abts_case *tc, void *data)
 
static void test_open_readwrite (abts_case *tc, void *data)
 
static void test_seek (abts_case *tc, void *data)
 
static void test_userdata_set (abts_case *tc, void *data)
 
static void test_userdata_get (abts_case *tc, void *data)
 
static void test_userdata_getnokey (abts_case *tc, void *data)
 
static void test_buffer_set_get (abts_case *tc, void *data)
 
static void test_getc (abts_case *tc, void *data)
 
static void test_ungetc (abts_case *tc, void *data)
 
static void test_gets (abts_case *tc, void *data)
 
static void test_gets_buffered (abts_case *tc, void *data)
 
static void test_gets_empty (abts_case *tc, void *data)
 
static void test_gets_multiline (abts_case *tc, void *data)
 
static void test_gets_small_buf (abts_case *tc, void *data)
 
static void test_gets_ungetc (abts_case *tc, void *data)
 
static void test_gets_buffered_big (abts_case *tc, void *data)
 
static void test_bigread (abts_case *tc, void *data)
 
static void test_mod_neg (abts_case *tc, void *data)
 
static void file_contents_equal (abts_case *tc, const char *fname, const void *expect, apr_size_t expectlen)
 
static void test_puts (abts_case *tc, void *data)
 
static void test_writev (abts_case *tc, void *data)
 
static void test_writev_full (abts_case *tc, void *data)
 
static void test_writev_buffered (abts_case *tc, void *data)
 
static void test_writev_buffered_seek (abts_case *tc, void *data)
 
static void test_truncate (abts_case *tc, void *data)
 
static void test_file_trunc (abts_case *tc, void *data)
 
static void test_file_trunc2 (abts_case *tc, void *data)
 
static void test_file_trunc_buffered_write (abts_case *tc, void *data)
 
static void test_file_trunc_buffered_write2 (abts_case *tc, void *data)
 
static void test_file_trunc_buffered_read (abts_case *tc, void *data)
 
static void test_bigfprintf (abts_case *tc, void *data)
 
static void test_fail_write_flush (abts_case *tc, void *data)
 
static void test_fail_read_flush (abts_case *tc, void *data)
 
static void test_xthread (abts_case *tc, void *data)
 
static void test_datasync_on_file (abts_case *tc, void *data)
 
static void test_datasync_on_stream (abts_case *tc, void *data)
 
static void test_atomic_append (abts_case *tc, void *data)
 
static void test_append_locked (abts_case *tc, void *data)
 
static void test_large_write_buffered (abts_case *tc, void *data)
 
static void test_two_large_writes_buffered (abts_case *tc, void *data)
 
static void test_small_and_large_writes_buffered (abts_case *tc, void *data)
 
static void test_write_buffered_spanning_over_bufsize (abts_case *tc, void *data)
 
static void test_empty_read_buffered (abts_case *tc, void *data)
 
static void test_large_read_buffered (abts_case *tc, void *data)
 
static void test_two_large_reads_buffered (abts_case *tc, void *data)
 
static void test_small_and_large_reads_buffered (abts_case *tc, void *data)
 
static void test_read_buffered_spanning_over_bufsize (abts_case *tc, void *data)
 
static void test_single_byte_reads_buffered (abts_case *tc, void *data)
 
static void test_read_buffered_seek (abts_case *tc, void *data)
 
static void test_append_buffered (abts_case *tc, void *data)
 
abts_suitetestfile (abts_suite *suite)
 

Macro Definition Documentation

◆ APR_BUFFERSIZE

#define APR_BUFFERSIZE   4096 /* This should match APR's buffer size. */

Definition at line 33 of file testfile.c.

◆ DIRNAME

#define DIRNAME   "data"

Definition at line 28 of file testfile.c.

◆ FILENAME

#define FILENAME   DIRNAME "/file_datafile.txt"

Definition at line 29 of file testfile.c.

◆ LINE1

#define LINE1   "this is a line of text\n"

Definition at line 817 of file testfile.c.

◆ LINE2

#define LINE2   "this is a second line of text\n"

Definition at line 818 of file testfile.c.

◆ TESTREAD_BLKSIZE

#define TESTREAD_BLKSIZE   1024

Definition at line 32 of file testfile.c.

◆ TESTSTR

#define TESTSTR   "This is the file data file."

Definition at line 30 of file testfile.c.

Function Documentation

◆ file_contents_equal()

static void file_contents_equal ( abts_case tc,
const char fname,
const void *  expect,
apr_size_t  expectlen 
)
static

< Open the file for reading

< Open the file for buffered I/O

Definition at line 797 of file testfile.c.

◆ link_existing()

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

Definition at line 76 of file testfile.c.

◆ link_nonexisting()

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

Definition at line 85 of file testfile.c.

◆ test_append_buffered()

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

< Open the file for writing

< Create the file if not there

< use OS's default permissions

< Open the file for reading

< Open the file for writing

< Append to the end of the file

< Open the file for buffered I/O

< use OS's default permissions

< Open the file for reading

< use OS's default permissions

Definition at line 2186 of file testfile.c.

◆ test_append_locked()

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

< Open the file for writing

< Create the file if not there

< Append to the end of the file

< use OS's default permissions

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

< Open the file for reading

< use OS's default permissions

Definition at line 1608 of file testfile.c.

◆ test_atomic_append()

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

Definition at line 1548 of file testfile.c.

◆ test_bigfprintf()

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

< Create the file if not there

< Open the file for writing

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

Definition at line 1275 of file testfile.c.

◆ test_bigread()

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

< Create the file if not there

< Open the file for writing

< Open the file and truncate to 0 length

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

< Open the file for reading

Definition at line 673 of file testfile.c.

◆ test_buffer_set_get()

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

< Open the file for writing

< Open the file for buffered I/O

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

< Read by group

<

Deprecated:
See also
APR_FPROT_GREAD

Definition at line 348 of file testfile.c.

◆ test_datasync_on_file()

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

< Create the file if not there

< Open the file for writing

< use OS's default permissions

Definition at line 1436 of file testfile.c.

◆ test_datasync_on_stream()

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

Definition at line 1457 of file testfile.c.

◆ test_empty_read_buffered()

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

< Create the file if not there

< Open the file for writing

< use OS's default permissions

< Open the file for reading

< Open the file for buffered I/O

< use OS's default permissions

Definition at line 1828 of file testfile.c.

◆ test_fail_read_flush()

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

< Create the file if not there

< Open the file for reading

< Open the file for buffered I/O

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

Definition at line 1338 of file testfile.c.

◆ test_fail_write_flush()

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

< Create the file if not there

< Open the file for reading

< Open the file for buffered I/O

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

Definition at line 1307 of file testfile.c.

◆ test_file_remove()

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

< Open the file for reading

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

< Read by group

<

Deprecated:
See also
APR_FPROT_GREAD

Definition at line 167 of file testfile.c.

◆ test_file_trunc()

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

< Create the file if not there

< Open the file for reading

< Open the file for writing

< Read by user

< Write by user

< Size of the file

< Create the file if not there

< Open the file for reading

< Open the file for writing

< Open the file for buffered I/O

< Read by user

< Write by user

< Size of the file

Definition at line 1028 of file testfile.c.

◆ test_file_trunc2()

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

< Create the file if not there

< Open the file for reading

< Open the file for writing

< Read by user

< Write by user

< Size of the file

< Size of the file

Definition at line 1084 of file testfile.c.

◆ test_file_trunc_buffered_read()

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

< Create the file if not there

< Open the file for reading

< Open the file for writing

< use OS's default permissions

< Open the file for reading

< Open the file for writing

< Open the file for buffered I/O

< use OS's default permissions

< Size of the file

< Size of the file

Definition at line 1224 of file testfile.c.

◆ test_file_trunc_buffered_write()

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

< Create the file if not there

< Open the file for reading

< Open the file for writing

< Open the file for buffered I/O

< Read by user

< Write by user

< Size of the file

< Size of the file

Definition at line 1131 of file testfile.c.

◆ test_file_trunc_buffered_write2()

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

< Create the file if not there

< Open the file for reading

< Open the file for writing

< Open the file for buffered I/O

< use OS's default permissions

< Size of the file

< Size of the file

Definition at line 1178 of file testfile.c.

◆ test_fileclose()

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

< Open the file for reading

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

< Read by group

<

Deprecated:
See also
APR_FPROT_GREAD

Definition at line 148 of file testfile.c.

◆ test_filename()

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

< Open the file for reading

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

< Read by group

<

Deprecated:
See also
APR_FPROT_GREAD

Definition at line 130 of file testfile.c.

◆ test_getc()

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

< Open the file for reading

Definition at line 378 of file testfile.c.

◆ test_gets()

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

< Open the file for reading

Definition at line 416 of file testfile.c.

◆ test_gets_buffered()

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

< Open the file for reading

< Open the file for buffered I/O

< Platform dependent tag to open the file for use across multiple threads

Definition at line 442 of file testfile.c.

◆ test_gets_buffered_big()

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

< Create the file if not there

< Open the file for writing

< use OS's default permissions

< Open the file for reading

< Open the file for buffered I/O

< use OS's default permissions

Definition at line 623 of file testfile.c.

◆ test_gets_empty()

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

< Create the file if not there

< Open the file for writing

< use OS's default permissions

< Open the file for reading

< use OS's default permissions

Definition at line 469 of file testfile.c.

◆ test_gets_multiline()

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

< Create the file if not there

< Open the file for writing

< use OS's default permissions

< Open the file for reading

< use OS's default permissions

Definition at line 496 of file testfile.c.

◆ test_gets_small_buf()

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

< Create the file if not there

< Open the file for writing

< use OS's default permissions

< Open the file for reading

< use OS's default permissions

Definition at line 535 of file testfile.c.

◆ test_gets_ungetc()

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

< Create the file if not there

< Open the file for writing

< use OS's default permissions

< Open the file for reading

< use OS's default permissions

Definition at line 580 of file testfile.c.

◆ test_large_read_buffered()

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

< Create the file if not there

< Open the file for writing

< use OS's default permissions

< Open the file for reading

< Open the file for buffered I/O

< use OS's default permissions

Definition at line 1860 of file testfile.c.

◆ test_large_write_buffered()

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

< Create the file if not there

< Open the file for writing

< Open the file for buffered I/O

< use OS's default permissions

< Open the file for reading

< use OS's default permissions

Definition at line 1646 of file testfile.c.

◆ test_mod_neg()

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

< Create the file if not there

< Open the file for writing

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

< Open the file for reading

Definition at line 716 of file testfile.c.

◆ test_open_excl()

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

< Create the file if not there

< Open should fail if APR_FOPEN_CREATE and file exists.

< Open the file for writing

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

< Read by group

<

Deprecated:
See also
APR_FPROT_GREAD

Definition at line 50 of file testfile.c.

◆ test_open_noreadwrite()

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

< Create the file if not there

< Open should fail if APR_FOPEN_CREATE and file exists.

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

< Read by group

<

Deprecated:
See also
APR_FPROT_GREAD

Definition at line 37 of file testfile.c.

◆ test_open_read()

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

< Open the file for reading

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

< Read by group

<

Deprecated:
See also
APR_FPROT_GREAD

Definition at line 63 of file testfile.c.

◆ test_open_readwrite()

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

< Open the file for reading

< Open the file for writing

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

< Read by group

<

Deprecated:
See also
APR_FPROT_GREAD

Definition at line 224 of file testfile.c.

◆ test_open_write()

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

< Open the file for writing

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

< Read by group

<

Deprecated:
See also
APR_FPROT_GREAD

Definition at line 180 of file testfile.c.

◆ test_open_writecreate()

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

< Open the file for writing

< Create the file if not there

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

< Read by group

<

Deprecated:
See also
APR_FPROT_GREAD

Definition at line 193 of file testfile.c.

◆ test_puts()

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

< Open the file for writing

< Create the file if not there

< Open the file and truncate to 0 length

< use OS's default permissions

<

Deprecated:
See also
APR_FPROT_OS_DEFAULT

Definition at line 820 of file testfile.c.

◆ test_read()

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

< Open the file for reading

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

< Read by group

<

Deprecated:
See also
APR_FPROT_GREAD

Definition at line 93 of file testfile.c.

◆ test_read_buffered_seek()

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

< Create the file if not there

< Open the file for writing

< use OS's default permissions

< Open the file for reading

< Open the file for buffered I/O

< use OS's default permissions

Definition at line 2127 of file testfile.c.

◆ test_read_buffered_spanning_over_bufsize()

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

< Create the file if not there

< Open the file for writing

< use OS's default permissions

< Open the file for reading

< Open the file for buffered I/O

< use OS's default permissions

Definition at line 2022 of file testfile.c.

◆ test_readzero()

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

< Open the file for reading

< use OS's default permissions

<

Deprecated:
See also
APR_FPROT_OS_DEFAULT

Definition at line 113 of file testfile.c.

◆ test_seek()

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

< Open the file for reading

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

< Read by group

<

Deprecated:
See also
APR_FPROT_GREAD

< Open the file for reading

< Open the file for buffered I/O

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

< Read by group

<

Deprecated:
See also
APR_FPROT_GREAD

Definition at line 239 of file testfile.c.

◆ test_single_byte_reads_buffered()

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

< Create the file if not there

< Open the file for writing

< use OS's default permissions

< Open the file for reading

< Open the file for buffered I/O

< use OS's default permissions

Definition at line 2079 of file testfile.c.

◆ test_small_and_large_reads_buffered()

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

< Create the file if not there

< Open the file for writing

< use OS's default permissions

< Open the file for reading

< Open the file for buffered I/O

< use OS's default permissions

Definition at line 1965 of file testfile.c.

◆ test_small_and_large_writes_buffered()

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

< Create the file if not there

< Open the file for writing

< Open the file for buffered I/O

< use OS's default permissions

< Open the file for reading

< use OS's default permissions

Definition at line 1734 of file testfile.c.

◆ test_truncate()

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

< Create the file if not there

< Open the file for writing

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

< Open the file and truncate to 0 length

< Open the file for writing

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

< Size of the file

Definition at line 989 of file testfile.c.

◆ test_two_large_reads_buffered()

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

< Create the file if not there

< Open the file for writing

< use OS's default permissions

< Open the file for reading

< Open the file for buffered I/O

< use OS's default permissions

Definition at line 1908 of file testfile.c.

◆ test_two_large_writes_buffered()

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

< Create the file if not there

< Open the file for writing

< Open the file for buffered I/O

< use OS's default permissions

< Open the file for reading

< use OS's default permissions

Definition at line 1687 of file testfile.c.

◆ test_ungetc()

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

< Open the file for reading

Definition at line 393 of file testfile.c.

◆ test_userdata_get()

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

< Open the file for writing

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

< Read by group

<

Deprecated:
See also
APR_FPROT_GREAD

Definition at line 307 of file testfile.c.

◆ test_userdata_getnokey()

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

< Open the file for writing

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

< Read by group

<

Deprecated:
See also
APR_FPROT_GREAD

Definition at line 331 of file testfile.c.

◆ test_userdata_set()

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

< Open the file for writing

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

< Read by group

<

Deprecated:
See also
APR_FPROT_GREAD

Definition at line 291 of file testfile.c.

◆ test_write()

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

< Open the file for writing

< Create the file if not there

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

< Read by group

<

Deprecated:
See also
APR_FPROT_GREAD

Definition at line 207 of file testfile.c.

◆ test_write_buffered_spanning_over_bufsize()

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

< Create the file if not there

< Open the file for writing

< Open the file for buffered I/O

< use OS's default permissions

< Open the file for reading

< use OS's default permissions

Definition at line 1781 of file testfile.c.

◆ test_writev()

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

< Open the file for writing

< Create the file if not there

< Open the file and truncate to 0 length

< use OS's default permissions

<

Deprecated:
See also
APR_FPROT_OS_DEFAULT

Definition at line 841 of file testfile.c.

◆ test_writev_buffered()

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

< Open the file for writing

< Create the file if not there

< Open the file and truncate to 0 length

< Open the file for buffered I/O

< use OS's default permissions

<

Deprecated:
See also
APR_FPROT_OS_DEFAULT

Definition at line 919 of file testfile.c.

◆ test_writev_buffered_seek()

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

< Open the file for writing

< Open the file for reading

< Open the file for buffered I/O

< use OS's default permissions

<

Deprecated:
See also
APR_FPROT_OS_DEFAULT

Definition at line 950 of file testfile.c.

◆ test_writev_full()

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

< Open the file for writing

< Create the file if not there

< Open the file and truncate to 0 length

< use OS's default permissions

<

Deprecated:
See also
APR_FPROT_OS_DEFAULT

Definition at line 883 of file testfile.c.

◆ test_xthread()

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

< Create the file if not there

< Open the file for reading

< Open the file for writing

< Append to the end of the file

< Platform dependent tag to open the file for use across multiple threads

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

< Read by user

<

Deprecated:
See also
APR_FPROT_UREAD

< Write by user

<

Deprecated:
See also
APR_FPROT_UWRITE

Definition at line 1383 of file testfile.c.

◆ testfile()

abts_suite * testfile ( abts_suite suite)

Definition at line 2230 of file testfile.c.