1*062c5bc4SJason Schmidlapp /*
2*062c5bc4SJason Schmidlapp * -------------------------------------------------------------
3*062c5bc4SJason Schmidlapp *
4*062c5bc4SJason Schmidlapp * Module: sem_open.c
5*062c5bc4SJason Schmidlapp *
6*062c5bc4SJason Schmidlapp * Purpose:
7*062c5bc4SJason Schmidlapp * Semaphores aren't actually part of the PThreads standard.
8*062c5bc4SJason Schmidlapp * They are defined by the POSIX Standard:
9*062c5bc4SJason Schmidlapp *
10*062c5bc4SJason Schmidlapp * POSIX 1003.1b-1993 (POSIX.1b)
11*062c5bc4SJason Schmidlapp *
12*062c5bc4SJason Schmidlapp * -------------------------------------------------------------
13*062c5bc4SJason Schmidlapp *
14*062c5bc4SJason Schmidlapp * --------------------------------------------------------------------------
15*062c5bc4SJason Schmidlapp *
16*062c5bc4SJason Schmidlapp * Pthreads-embedded (PTE) - POSIX Threads Library for embedded systems
17*062c5bc4SJason Schmidlapp * Copyright(C) 2008 Jason Schmidlapp
18*062c5bc4SJason Schmidlapp *
19*062c5bc4SJason Schmidlapp * Contact Email: jschmidlapp@users.sourceforge.net
20*062c5bc4SJason Schmidlapp *
21*062c5bc4SJason Schmidlapp *
22*062c5bc4SJason Schmidlapp * Based upon Pthreads-win32 - POSIX Threads Library for Win32
23*062c5bc4SJason Schmidlapp * Copyright(C) 1998 John E. Bossom
24*062c5bc4SJason Schmidlapp * Copyright(C) 1999,2005 Pthreads-win32 contributors
25*062c5bc4SJason Schmidlapp *
26*062c5bc4SJason Schmidlapp * Contact Email: rpj@callisto.canberra.edu.au
27*062c5bc4SJason Schmidlapp *
28*062c5bc4SJason Schmidlapp * The original list of contributors to the Pthreads-win32 project
29*062c5bc4SJason Schmidlapp * is contained in the file CONTRIBUTORS.ptw32 included with the
30*062c5bc4SJason Schmidlapp * source code distribution. The list can also be seen at the
31*062c5bc4SJason Schmidlapp * following World Wide Web location:
32*062c5bc4SJason Schmidlapp * http://sources.redhat.com/pthreads-win32/contributors.html
33*062c5bc4SJason Schmidlapp *
34*062c5bc4SJason Schmidlapp * This library is free software; you can redistribute it and/or
35*062c5bc4SJason Schmidlapp * modify it under the terms of the GNU Lesser General Public
36*062c5bc4SJason Schmidlapp * License as published by the Free Software Foundation; either
37*062c5bc4SJason Schmidlapp * version 2 of the License, or (at your option) any later version.
38*062c5bc4SJason Schmidlapp *
39*062c5bc4SJason Schmidlapp * This library is distributed in the hope that it will be useful,
40*062c5bc4SJason Schmidlapp * but WITHOUT ANY WARRANTY; without even the implied warranty of
41*062c5bc4SJason Schmidlapp * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
42*062c5bc4SJason Schmidlapp * Lesser General Public License for more details.
43*062c5bc4SJason Schmidlapp *
44*062c5bc4SJason Schmidlapp * You should have received a copy of the GNU Lesser General Public
45*062c5bc4SJason Schmidlapp * License along with this library in the file COPYING.LIB;
46*062c5bc4SJason Schmidlapp * if not, write to the Free Software Foundation, Inc.,
47*062c5bc4SJason Schmidlapp * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
48*062c5bc4SJason Schmidlapp */
49*062c5bc4SJason Schmidlapp
50*062c5bc4SJason Schmidlapp #include "pthread.h"
51*062c5bc4SJason Schmidlapp #include "semaphore.h"
52*062c5bc4SJason Schmidlapp #include "implement.h"
53*062c5bc4SJason Schmidlapp
54*062c5bc4SJason Schmidlapp
55*062c5bc4SJason Schmidlapp int
sem_open(const char * name,int oflag,mode_t mode,unsigned int value)56*062c5bc4SJason Schmidlapp sem_open (const char *name, int oflag, mode_t mode, unsigned int value)
57*062c5bc4SJason Schmidlapp {
58*062c5bc4SJason Schmidlapp errno = ENOSYS;
59*062c5bc4SJason Schmidlapp return -1;
60*062c5bc4SJason Schmidlapp } /* sem_open */
61