Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Macros | Functions
memchk.cpp File Reference
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <rw/_defs.h>
Include dependency graph for memchk.cpp:

Go to the source code of this file.

Macros

#define EINTR   4 /* AIX, HP-UX, IRIX, Linux, SunOS, Tru64 */
 
#define P_tmpdir   "/tmp/"
 
#define TMP_TEMPLATE   P_tmpdir "/rwmemchk-XXXXXX"
 

Functions

int mkstemp (char *) _LIBC_THROWS()
 
size_t memchk (const void *addr, size_t nbytes)
 
size_t strchk (const char *str)
 

Macro Definition Documentation

◆ EINTR

#define EINTR   4 /* AIX, HP-UX, IRIX, Linux, SunOS, Tru64 */

memchk.cpp - definitions of memory checking helper functions

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

Definition at line 48 of file memchk.cpp.

◆ P_tmpdir

#define P_tmpdir   "/tmp/"

Definition at line 64 of file memchk.cpp.

◆ TMP_TEMPLATE

#define TMP_TEMPLATE   P_tmpdir "/rwmemchk-XXXXXX"

Function Documentation

◆ memchk()

size_t memchk ( const void *  addr,
size_t  nbytes 
)

Definition at line 108 of file memchk.cpp.

◆ mkstemp()

int mkstemp ( char *  )

◆ strchk()

size_t strchk ( const char *  str)

Definition at line 232 of file memchk.cpp.