+++ /dev/null
-/* $Id$ $Revision$ */
-/* vim:set shiftwidth=4 ts=8: */
-
-/*************************************************************************
- * Copyright (c) 2011 AT&T Intellectual Property
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: See CVS logs. Details at http://www.graphviz.org/
- *************************************************************************/
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifndef _VTHREAD_H
-#define _VTHREAD_H 1
-
-#define VTHREAD_VERSION 20001201L
-
-/* Header for the Vthread library.
-**
-** Written by Kiem-Phong Vo
-*/
-
-#include <errno.h>
-
-#include "config.h"
-
-#ifdef HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif // HAVE_SYS_TYPES_H
-
-/* common attributes for various structures */
-#define VT_RUNNING 000000001 /* thread is running */
-#define VT_SUSPENDED 000000002 /* thread is suspended */
-#define VT_WAITED 000000004 /* thread has been waited */
-#define VT_FREE 000010000 /* object can be freed */
-#define VT_INIT 000020000 /* object was initialized */
-#define VT_BITS 000030007 /* bits that we care about */
-
-/* directives for vtset() */
-#define VT_STACK 1 /* set stack size */
-
- typedef struct _vtmutex_s Vtmutex_t;
- typedef struct _vtonce_s Vtonce_t;
- typedef struct _vthread_s Vthread_t;
-
-#ifndef EINVAL
-#define EINVAL 22
-#endif
-#ifndef EBUSY
-#define EBUSY 16
-#endif
-#ifndef EDEADLK
-#define EDEADLK 45
-#endif
-#ifndef EPERM
-#define EPERM 1
-#endif
-
- extern void *vtstatus(Vthread_t *);
- extern int vterror(Vthread_t *);
- extern int vtmtxerror(Vtmutex_t *);
- extern int vtonceerror(Vtonce_t *);
-
-/* fake structures and functions */
- struct _vtmutex_s {
- int error;
- };
- struct _vtattr_s {
- int error;
- };
- struct _vthread_s {
- int error;
- };
- struct _vtonce_s {
- int error;
- };
-
-#define VTONCE_INITDATA {0}
-
-#define vtstatus(vt) ((void*)0)
-#define vterror(vt) (0)
-#define vtmtxerror(mtx) (0)
-#define vtonceerror(once) (0)
-
-#endif /*_VTHREAD_H*/
-
-#ifdef __cplusplus
-}
-#endif