/* code to initialize mutexes */
static Vtmutex_t Sfmutex;
-static Vtonce_t Sfonce = VTONCE_INITDATA;
-static void _sfoncef(void)
-{
- _Sfdone = 1;
-}
/* global variables used internally to the package */
Sfextern_t _Sfextern = { 0, /* _Sfpage */
NIL(void (*)(void)), /* _Sfcleanup */
0, /* _Sfexiting */
0, /* _Sfdone */
- &Sfonce, /* _Sfonce */
- _sfoncef, /* _Sfoncef */
&Sfmutex /* _Sfmutex */
};
#define _Sfcleanup (_Sfextern.sf_cleanup)
#define _Sfexiting (_Sfextern.sf_exiting)
#define _Sfdone (_Sfextern.sf_done)
-#define _Sfonce (_Sfextern.sf_once)
-#define _Sfoncef (_Sfextern.sf_oncef)
#define _Sfmutex (_Sfextern.sf_mutex)
typedef struct _sfextern_s {
ssize_t sf_page;
void (*sf_cleanup) (void);
int sf_exiting;
int sf_done;
- Vtonce_t *sf_once;
- void (*sf_oncef) (void);
Vtmutex_t *sf_mutex;
} Sfextern_t;