| 1 | /* $Id: semaphore.c,v 1.1.1.1 2003/07/02 13:57:02 eleph Exp $ */ | 
|---|
| 2 | /* | 
|---|
| 3 | * OS/2 implementation of Linux semaphore kernel services (stubs) | 
|---|
| 4 | * | 
|---|
| 5 | * (C) 2000-2002 InnoTek Systemberatung GmbH | 
|---|
| 6 | * (C) 2000-2001 Sander van Leeuwen (sandervl@xs4all.nl) | 
|---|
| 7 | * | 
|---|
| 8 | * This program is free software; you can redistribute it and/or | 
|---|
| 9 | * modify it under the terms of the GNU General Public License as | 
|---|
| 10 | * published by the Free Software Foundation; either version 2 of | 
|---|
| 11 | * the License, or (at your option) any later version. | 
|---|
| 12 | * | 
|---|
| 13 | * This program is distributed in the hope that it will be useful, | 
|---|
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|---|
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|---|
| 16 | * GNU General Public License for more details. | 
|---|
| 17 | * | 
|---|
| 18 | * You should have received a copy of the GNU General Public | 
|---|
| 19 | * License along with this program; if not, write to the Free | 
|---|
| 20 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, | 
|---|
| 21 | * USA. | 
|---|
| 22 | * | 
|---|
| 23 | */ | 
|---|
| 24 |  | 
|---|
| 25 | #include "linux.h" | 
|---|
| 26 | #include <linux/init.h> | 
|---|
| 27 | #include <linux/poll.h> | 
|---|
| 28 | #include <asm/uaccess.h> | 
|---|
| 29 | #include <asm/hardirq.h> | 
|---|
| 30 | #include <dbgos2.h> | 
|---|
| 31 |  | 
|---|
| 32 | //****************************************************************************** | 
|---|
| 33 | //****************************************************************************** | 
|---|
| 34 | void init_MUTEX (struct semaphore *sem) | 
|---|
| 35 | { | 
|---|
| 36 | dprintf3(("Warning: init_MUTEX %x not implemented!!", sem)); | 
|---|
| 37 | } | 
|---|
| 38 | //****************************************************************************** | 
|---|
| 39 | //****************************************************************************** | 
|---|
| 40 | void init_MUTEX_LOCKED (struct semaphore *sem) | 
|---|
| 41 | { | 
|---|
| 42 | dprintf3(("Warning: init_MUTEX_LOCKED %x not implemented!!", sem)); | 
|---|
| 43 | } | 
|---|
| 44 | //****************************************************************************** | 
|---|
| 45 | //****************************************************************************** | 
|---|
| 46 | void down(struct semaphore * sem) | 
|---|
| 47 | { | 
|---|
| 48 | dprintf3(("Warning: semaphore down not implemented!!")); | 
|---|
| 49 | } | 
|---|
| 50 | //****************************************************************************** | 
|---|
| 51 | //****************************************************************************** | 
|---|
| 52 | void up(struct semaphore * sem) | 
|---|
| 53 | { | 
|---|
| 54 | dprintf3(("Warning: semaphore up not implemented!!")); | 
|---|
| 55 | } | 
|---|
| 56 | //****************************************************************************** | 
|---|
| 57 | //****************************************************************************** | 
|---|
| 58 | int down_interruptible(struct semaphore * sem) | 
|---|
| 59 | { | 
|---|
| 60 | dprintf3(("Warning: semaphore down_interruptible not implemented!!")); | 
|---|
| 61 | return 0; | 
|---|
| 62 | } | 
|---|
| 63 | //****************************************************************************** | 
|---|
| 64 | //****************************************************************************** | 
|---|
| 65 |  | 
|---|