Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Data Structures | Macros | Functions | Variables
27.filebuf.cpp File Reference
#include <cerrno>
#include <csignal>
#include <cstdio>
#include <cstring>
#include <cwchar>
#include <fstream>
#include <cstdlib>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <rw_driver.h>
#include <rw_file.h>
#include <rw_valcmp.h>
Include dependency graph for 27.filebuf.cpp:

Go to the source code of this file.

Data Structures

struct  CodeCvt< charT >
 

Macros

#define SIGPIPE   13 /* HP-UX, Linux, and SunOS value */
 
#define REMOVE_FILE(tmpfname)
 
#define BEGIN_MODE(openmode, ext)
 
#define ASSERT_OPEN(expr, mode, txt)
 

Functions

void ignore_signal (int)
 
std::size_t find_char (const char **pbeg, const char *end, const char *const chartbl[], std::size_t tblsize)
 
int main (int argc, char *argv[])
 

Variables

const char *const escapes []
 
const char *const charnames []
 

Macro Definition Documentation

◆ ASSERT_OPEN

#define ASSERT_OPEN (   expr,
  mode,
  txt 
)
Value:
rw_assert (expr, __FILE__, __LINE__, \
"basic_filebuf<%s>::open (\"%s\", %{Io}) %s ", \
tname, tmpfname, mode, txt) \
#define mode
Definition 17.names.cpp:497
_TEST_EXPORT int rw_assert(int, const char *, int, const char *,...)
Definition driver.cpp:1630

◆ BEGIN_MODE

#define BEGIN_MODE (   openmode,
  ext 
)
Value:
mode = (openmode), \
rw_info (0, __FILE__, __LINE__, "%{Io} %s", mode, ext)
_TEST_EXPORT int rw_info(int, const char *, int, const char *,...)
Definition driver.cpp:1681

◆ REMOVE_FILE

#define REMOVE_FILE (   tmpfname)
Value:
rw_warn (0 == std::remove (tmpfname), __FILE__, __LINE__, \
"std::remove(\"%s\") failed: %m", tmpfname)
_TEST_EXPORT int rw_warn(int, const char *, int, const char *,...)
Definition driver.cpp:1647

Definition at line 64 of file 27.filebuf.cpp.

◆ SIGPIPE

#define SIGPIPE   13 /* HP-UX, Linux, and SunOS value */

27.filebuf.cpp - test exercising class template basic_filebuf

$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 1994-2008 Rogue Wave Software, Inc.

Definition at line 56 of file 27.filebuf.cpp.

Function Documentation

◆ find_char()

std::size_t find_char ( const char **  pbeg,
const char *  end,
const char *const  chartbl[],
std::size_t  tblsize 
)

Definition at line 1864 of file 27.filebuf.cpp.

◆ ignore_signal()

void ignore_signal ( int  )

Definition at line 244 of file 27.filebuf.cpp.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 2797 of file 27.filebuf.cpp.

Variable Documentation

◆ charnames

const char* const charnames[]
extern

◆ escapes

const char* const escapes[]
extern
Initial value:
= {
"<ESC-CNTRL>", "<ESC-PUNCT>", "<ESC-DIGIT>",
"<ESC-UPPER>", "<ESC-LOWER>", "<ESC-HEXCODE>"
}