libsfio_C_la_SOURCES = sfclose.c sfclrlock.c sfcvt.c sfdisc.c \
sfdlen.c sfexcept.c sfexit.c sfextern.c sffilbuf.c \
sfflsbuf.c sfgetd.c sfgetl.c sfgetm.c sfgetr.c sfgetu.c \
- sfllen.c sfmode.c sfmutex.c sfnew.c sfnotify.c \
+ sfllen.c sfmode.c sfnew.c sfnotify.c \
sfnputc.c sfopen.c sfpkrd.c sfpoll.c sfpool.c sfpopen.c \
sfprintf.c sfprints.c sfpurge.c sfputd.c sfputl.c sfputm.c \
sfputr.c sfputu.c sfraise.c sfrd.c sfread.c sfreserve.c \
#define SF_SEQUENTIAL 00000020 /* sequential access */
#define SF_JUSTSEEK 00000040 /* just did a sfseek */
-/* this bit signals sfmutex() not to create a mutex for a private stream */
-#define SF_PRIVATE 00000200 /* private stream to Sfio */
-
/* on closing, don't be a hero about reread/rewrite on interrupts */
#define SF_ENDING 00000400
#define SFFMT_JFLAG 04000000 /* 'j' flag, intmax_t */
#define SFFMT_SET 07777770 /* flags settable on calling extf */
-/* for sfmutex() call */
-#define SFMTX_LOCK 0 /* up mutex count */
-#define SFMTX_TRYLOCK 1 /* try to up mutex count */
-#define SFMTX_UNLOCK 2 /* down mutex count */
-#define SFMTX_CLRLOCK 3 /* clear mutex count */
-
/* various constants */
#ifndef NULL
#define NULL 0
extern int sfvscanf(Sfio_t *, const char *, va_list);
extern int sfresize(Sfio_t *, Sfoff_t);
-/* mutex locking for thread-safety */
- extern int sfmutex(Sfio_t *, int);
-
/* io functions with discipline continuation */
extern ssize_t sfrd(Sfio_t *, void *, size_t, Sfdisc_t *);
extern ssize_t sfwr(Sfio_t *, const void *, size_t, Sfdisc_t *);
<ClCompile Include="sfio_f\_sfvalue.c" />
<ClCompile Include="sfllen.c" />
<ClCompile Include="sfmode.c" />
- <ClCompile Include="sfmutex.c" />
<ClCompile Include="sfnew.c" />
<ClCompile Include="sfnotify.c" />
<ClCompile Include="sfnputc.c" />
<ClCompile Include="sfmode.c">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="sfmutex.c">
- <Filter>Source Files</Filter>
- </ClCompile>
<ClCompile Include="sfnew.c">
<Filter>Source Files</Filter>
</ClCompile>
+++ /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/
- *************************************************************************/
-
-#include <sfio/sfhdr.h>
-
-/* Obtain/release exclusive use of a stream.
-**
-** Written by Kiem-Phong Vo.
-*/
-
-/* the main locking/unlocking interface */
-int sfmutex(Sfio_t * f, int type)
-{
- return 0;
-}
/* make a fake stream */
SFCLEAR(&f, NIL(Vtmutex_t *));
f.flags = SF_STRING | SF_WRITE;
- f.bits = SF_PRIVATE;
f.mode = SF_WRITE;
f.size = n - 1;
f.data = f.next = f.endr = (uchar *) s;
/* make a fake stream */
SFCLEAR(&f, NIL(Vtmutex_t *));
f.flags = SF_STRING | SF_READ;
- f.bits = SF_PRIVATE;
f.mode = SF_READ;
f.size = strlen(s);
f.data = f.next = f.endw = (uchar *) s;