update copyright date
[gnash.git] / libbase / SharedMemHaiku.cpp
blob2ab688f5a5bef1a9cf98024fa34194af9ef65893
1 //
2 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010,
3 // 2011 Free Software Foundation, Inc
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 // This is generated by autoconf
20 #ifdef HAVE_CONFIG_H
21 # include "gnashconfig.h"
22 #endif
24 #include <sys/types.h>
25 #if !defined(HAVE_WINSOCK_H) && !defined(__riscos__) && !defined(__OS2__) && !defined(__HAIKU__) && !defined(ANDROID)
26 # include <sys/ipc.h>
27 # include <sys/shm.h>
28 #elif !defined(__riscos__) && !defined(__OS2__) && !defined(__HAIKU__) && !defined(ANDROID)
30 # include <windows.h>
31 # include <process.h>
32 # include <fcntl.h>
33 # include <io.h>
34 #endif
36 #include "log.h"
37 #include "rc.h"
38 #include "SharedMem.h"
40 namespace {
41 gnash::RcInitFile& rcfile = gnash::RcInitFile::getDefaultInstance();
44 namespace gnash {
46 SharedMem::SharedMem(size_t size)
48 _addr(0),
49 _size(size),
50 _semid(0),
51 _shmid(0),
52 _shmkey(0)
54 log_unimpl(_("%s on Haiku"), __FUNCTION__);
57 SharedMem::~SharedMem()
59 log_unimpl(_("%s on Haiku"), __FUNCTION__);
62 bool
63 SharedMem::lock() const
65 log_unimpl(_("%s on Haiku"), __FUNCTION__);
66 return false;
69 bool
70 SharedMem::unlock() const
72 log_unimpl(_("%s on Haiku"), __FUNCTION__);
73 return false;
76 bool
77 SharedMem::attach()
79 log_unimpl(_("%s on Haiku"), __FUNCTION__);
80 return false;
83 } // end of gnash namespace
85 // Local Variables:
86 // mode: C++
87 // indent-tabs-mode: t
88 // End: