Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Macros | Functions
file.cpp File Reference
#include <rw_file.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <langinfo.h>
#include <unistd.h>
#include <assert.h>
#include <errno.h>
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <wchar.h>
Include dependency graph for file.cpp:

Go to the source code of this file.

Macros

#define _RWSTD_TEST_SRC
 
#define PATH_MAX   1024
 
#define P_tmpdir   "/tmp/"
 
#define TMP_TEMPLATE   "tmpfile-XXXXXX"
 

Functions

int mkstemp (char *)
 
_TEST_EXPORT void pcs_write (void *fpv, const char *str)
 
_TEST_EXPORT const char * rw_tmpnam (char *buf)
 
_TEST_EXPORT size_t rw_fsize (const char *fname)
 
_TEST_EXPORT void * rw_fread (const char *fname, size_t *size, const char *mode)
 
_TEST_EXPORT size_t rw_fwrite (const char *fname, const void *buf, size_t size, const char *mode)
 
_TEST_EXPORT int rw_nextfd (int *count)
 

Macro Definition Documentation

◆ _RWSTD_TEST_SRC

#define _RWSTD_TEST_SRC

file.cpp - definitions of testsuite file I/O helpers

$Id$

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2004-2007 Rogue Wave Software, Inc.

Definition at line 30 of file file.cpp.

◆ P_tmpdir

#define P_tmpdir   "/tmp/"

Definition at line 76 of file file.cpp.

◆ PATH_MAX

#define PATH_MAX   1024

Definition at line 69 of file file.cpp.

◆ TMP_TEMPLATE

#define TMP_TEMPLATE   "tmpfile-XXXXXX"

Function Documentation

◆ mkstemp()

int mkstemp ( char *  )

◆ pcs_write()

_TEST_EXPORT void pcs_write ( void *  fpv,
const char *  str 
)

Definition at line 89 of file file.cpp.

◆ rw_fread()

_TEST_EXPORT void * rw_fread ( const char *  fname,
size_t *  size,
const char *  mode 
)

Definition at line 360 of file file.cpp.

◆ rw_fsize()

_TEST_EXPORT size_t rw_fsize ( const char *  fname)

Definition at line 305 of file file.cpp.

◆ rw_fwrite()

_TEST_EXPORT size_t rw_fwrite ( const char *  fname,
const void *  buf,
size_t  size,
const char *  mode 
)

Definition at line 443 of file file.cpp.

◆ rw_nextfd()

_TEST_EXPORT int rw_nextfd ( int *  count)

Definition at line 478 of file file.cpp.

◆ rw_tmpnam()

_TEST_EXPORT const char * rw_tmpnam ( char *  buf)

Definition at line 206 of file file.cpp.