"Fossies" - the Fresh Open Source Software Archive

Member "pidentd-3.0.19/src/avail.h" (20 Jan 1999, 713 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 "avail.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2 ** avail.h - Data availability control functions.
    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 PIDENTD_AVAIL_H
   16 #define PIDENTD_AVAIL_H
   17 
   18 typedef struct
   19 {
   20     int avail;
   21     pthread_mutex_t mtx;
   22     pthread_cond_t cv;
   23 } avail_t;
   24 
   25 extern int avail_init(avail_t *ap);
   26 extern int avail_wait(avail_t *ap);
   27 extern int avail_signal(avail_t *ap);
   28 
   29 #endif