Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

beos_compatibility.h

Go to the documentation of this file.
00001 /******************************************************************************
00002  * $Id: beos_compatibility.h,v 1.2 2003/12/21 13:08:52 gareuselesinge Exp $
00003  * This file is part of liberopops (http://liberopops.sf.net)                 *
00004  * This file is distributed under the terms of GNU GPL license.               *
00005  ******************************************************************************/
00006 
00007 
00008 /******************************************************************************/
00014 /******************************************************************************/
00015 
00016 
00017 #ifndef BEOS_COMPATIBILILTY_H
00018 #define BEOS_COMPATIBILILTY_H
00019 
00020 #ifdef BEOS
00021 #include <pthread.h>
00022 
00024 #define usleep(a) snooze((a) * 1000L)
00025 
00027 #define SHUT_RDWR SHUTDOWN_BOTH
00028 
00030 #define pthread_equal(a,b) ((a)==(b))
00031 
00036 #define sem_t                   sem_id
00037 #define sem_wait(a)             acquire_sem(*(a))
00038 #define sem_post(a)             release_sem(*(a))
00039 #define sem_destroy(a)          delete_sem(*(a))
00040 #define sem_init(a,b,c)         ((*(a))=create_sem(c,"sem"))
00041 
00042   
00043 #ifndef index
00044 char* index(const char * s, int i);
00045 #endif
00046 
00047 #endif
00048 
00049 #endif

Generated on Wed May 5 15:48:03 2004 for LiberoPOPs by doxygen 1.3.6-20040222