/usr/include/wvstreams/wvshmzone.h is in libwvstreams-dev 4.6.1-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | /* -*- Mode: C++ -*-
* Worldvisions Weaver Software:
* Copyright (C) 1997-2002 Net Integration Technologies, Inc.
*
* Shared memory zones.
*/
#ifndef __WVSHMZONE_H
#define __WVSHMZONE_H
#include "wverror.h"
/**
* Represents a shared-memory zone via mmap().
*
* If you create one of these, its buf element will be
* shared across fork() and you can use it for various things
* such as a circular queue, semaphore, etc.
*
*/
class WvShmZone : public WvErrorBase
{
public:
/**
* Creates a shared memory zone.
*
* "size" is the size of the zone in bytes
*/
WvShmZone(size_t size);
~WvShmZone();
private:
int fd;
public:
int size;
union {
void *buf;
char *cbuf;
unsigned char *ucbuf;
};
};
#endif // __WVSHMZONE_h
|