"Fossies" - the Fresh Open Source Software Archive

Member "pidentd-3.0.19/src/s_pthread.h" (20 Jan 1999, 872 Bytes) of package /linux/misc/old/pidentd-3.0.19.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "s_pthread.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2 ** s_pthread.h - Pthread emulation header file
    3 **
    4 ** Copyright (c) 1997 Peter Eriksson <pen@lysator.liu.se>
    5 **
    6 ** This program is free software; you can redistribute it and/or
    7 ** modify it as you wish - as long as you don't claim that you wrote
    8 ** it.
    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.
   13 */
   14 
   15 #ifndef S_PTHREAD_H
   16 #define S_PTHREAD_H
   17 
   18 #include "config.h"
   19 
   20 
   21 #ifdef HAVE_LIBPTHREAD
   22 #  include <pthread.h>
   23 
   24 #elif HAVE_LIBPTHREADS
   25 /* IBM AIX almost-pthreads */
   26 #  include <pthread.h>
   27 #  ifndef PTHREAD_CREATE_JOINABLE
   28 #    define PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
   29 #  endif
   30 
   31 #elif HAVE_LIBTHREAD
   32 #  include "ui_thr.h"
   33 
   34 #elif HAVE_LIBCMA
   35 #  include "cma_thr.h"
   36 
   37 #else
   38 #  include "no_thr.h"
   39 #endif
   40 
   41 #endif