Personal tools
You are here: Home Projects C++ Cfront releases Release 3.0.3 source incl-master proto-headers memory.h
Document Actions

memory.h

by Michael L Powell last modified 2007-01-26 03:21

Click here to get the file

Size 2.6 kB - File type text/plain

File contents

/*ident	"@(#)cls4:incl-master/proto-headers/memory.h	1.1" */
#usedby bsd3 sunos3 sunos4 sunos4.1 alliant hpux2.0 hpux hpux8.0 svr2 svr3 sgi uts svr4 sgi-svr4 solaris

/*******************************************************************************
 
C++ source for the C++ Language System, Release 3.0.  This product
is a new release of the original cfront developed in the computer
science research center of AT&T Bell Laboratories.

Copyright (c) 1991 AT&T and UNIX System Laboratories, Inc.
Copyright (c) 1984, 1989, 1990 AT&T.  All Rights Reserved.

THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE of AT&T and UNIX System
Laboratories, Inc.  The copyright notice above does not evidence
any actual or intended publication of such source code.

*******************************************************************************/
#os bsd3 sunos3 sunos4 sunos4.1 alliant hpux2.0 hpux hpux8.0 svr2 svr3 sgi uts
#ifndef __MEMORY_H
#define __MEMORY_H
#endos
#os svr4 sgi-svr4 solaris
#ifndef ___MEMORY_H
#define ___MEMORY_H
#endos

#os bsd3 sunos3 sunos4 sunos4.1 hpux2.0 svr2 svr3 sgi uts svr4 sgi-svr4 solaris

#hide memccpy
#hide memchr
#hide memcpy
#hide memset
#hide memcmp

#expand memory.h
#endos

#os bsd3 sunos3 sunos4 sunos4.1 hpux2.0 svr2 svr3 sgi uts
extern "C" {
    void* memcpy(void*, const void*, int);
    void* memccpy(void*, const void*, int, int);
    void* memchr(const void*, int, int);
    int   memcmp(const void*, const void*, int);
    void* memset(void*, int, int);
}

#endos
#os svr4 sgi-svr4 solaris
extern "C" {
    void* memcpy(void*, const void*, size_t);
    void* memccpy(void*, const void*, int, size_t);
    void* memchr(const void*, int, size_t);
    void* memset(void*, int, size_t);
    int   memcmp(const void*, const void*, size_t);
}

#endos

#os hpux hpux8.0

#hide memccpy
#hide memchr
#hide memcpy
#hide memset
#hide memcmp

#include <stddef.h>
#expand memory.h

extern "C" {
    void* memcpy(void*, const void*, size_t);
    void* memccpy(void*, const void*, int, size_t);
    void* memchr(const void*, int, size_t);
    int   memcmp(const void*, const void*, size_t);
    void* memmove(void*, const void*, size_t);
    void* memset(void*, int, size_t);
}

#endos

#os alliant


extern "C" {
    void bcopy(const void* from, void* to, int length);
    /* These are NOT in libc, however they are in libx.a */
    int   memcmp(const void* s1, const void* s2, int n);
    void* memset(void* s, int c, int n);
}

/* BUG in 6.1 prevents this */
/*
inline void* memcpy(void* to, const void* from, int n)
    { bcopy(from,to,n); return to; }
*/
#define memcpy(t,f,n) bcopy(f,t,n)

#endos


#endif


« November 2024 »
Su Mo Tu We Th Fr Sa
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: