From: Matthew Fernandez Date: Sat, 17 Oct 2020 03:00:47 +0000 (-0700) Subject: remove now unused vthread.h X-Git-Tag: 2.46.0~20^2^2~16^2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cefa2556b65486591fd7db9fb13b909332d12826;p=graphviz remove now unused vthread.h --- diff --git a/lib/sfio/Makefile.am b/lib/sfio/Makefile.am index 92a39d1c0..d455b0156 100644 --- a/lib/sfio/Makefile.am +++ b/lib/sfio/Makefile.am @@ -5,7 +5,7 @@ SUBDIRS = Sfio_f AM_CPPFLAGS = -I$(top_srcdir)/lib -noinst_HEADERS = sfhdr.h sfio.h sfio_t.h vthread.h +noinst_HEADERS = sfhdr.h sfio.h sfio_t.h noinst_LTLIBRARIES = libsfio_C.la libsfio_C_la_SOURCES = sfclose.c sfcvt.c sfdisc.c \ diff --git a/lib/sfio/sfhdr.h b/lib/sfio/sfhdr.h index 4fe8d4301..51cbe7aad 100644 --- a/lib/sfio/sfhdr.h +++ b/lib/sfio/sfhdr.h @@ -30,8 +30,6 @@ extern "C" { #include #include "config.h" -#include - #if defined(__mips) && __mips == 2 && !defined(_NO_LARGEFILE64_SOURCE) #define _NO_LARGEFILE64_SOURCE 1 #endif diff --git a/lib/sfio/sfio.vcxproj b/lib/sfio/sfio.vcxproj index 74957c26c..0dd06c61a 100644 --- a/lib/sfio/sfio.vcxproj +++ b/lib/sfio/sfio.vcxproj @@ -79,7 +79,6 @@ - diff --git a/lib/sfio/sfio.vcxproj.filters b/lib/sfio/sfio.vcxproj.filters index 559cd6b57..aaa6745b4 100644 --- a/lib/sfio/sfio.vcxproj.filters +++ b/lib/sfio/sfio.vcxproj.filters @@ -24,9 +24,6 @@ Header Files - - Header Files - diff --git a/lib/sfio/vthread.h b/lib/sfio/vthread.h deleted file mode 100644 index 897d15043..000000000 --- a/lib/sfio/vthread.h +++ /dev/null @@ -1,94 +0,0 @@ -/* $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 - -#include "config.h" - -#ifdef HAVE_SYS_TYPES_H -# include -#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