SUBDIRS = Sfio_f
+AM_CPPFLAGS = -I$(top_srcdir)/lib
+
noinst_HEADERS = sfhdr.h sfio.h sfio_t.h vthread.h
noinst_LTLIBRARIES = libsfio_C.la
# $Id$ $Revision$
## Process this file with automake to produce Makefile.in
-AM_CPPFLAGS = -I$(top_srcdir)/lib/sfio
+AM_CPPFLAGS = -I$(top_srcdir)/lib
noinst_HEADERS = sfdchdr.h sfdisc.h
noinst_LTLIBRARIES = libsfiodc_C.la
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfdchdr.h"
+#include <sfio/sfdchdr.h>
/* Discipline to turn \r\n into \n.
** This is useful to deal with DOS text files.
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfdchdr.h"
+#include <sfio/sfdchdr.h>
/* Discipline to invoke UNIX processes as data filters.
** These processes must be able to fit in pipelines.
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfdchdr.h"
+#include <sfio/sfdchdr.h>
/*
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfdchdr.h"
+#include <sfio/sfdchdr.h>
/* Discipline to make an unseekable read stream seekable
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfdchdr.h"
+#include <sfio/sfdchdr.h>
/* Make a stream op return immediately on interrupts.
** This is useful on slow streams (hence the name).
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfdchdr.h"
+#include <sfio/sfdchdr.h>
/* Discipline to treat a contiguous segment of a stream as a stream
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfdchdr.h"
+#include <sfio/sfdchdr.h>
/* A discipline to tee the output to a stream to another stream.
** This is similar to what the "tee" program does. As implemented
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfdchdr.h"
+#include <sfio/sfdchdr.h>
/* Make a sequence of streams act like a single stream.
# $Id$ $Revision$
## Process this file with automake to produce Makefile.in
-AM_CPPFLAGS = -I$(top_srcdir)/lib/sfio
+AM_CPPFLAGS = -I$(top_srcdir)/lib
noinst_LTLIBRARIES = libsfiof_C.la
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
#undef sfclrerr
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
#undef sfdlen
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
#undef sfeof
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
#undef sferror
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
#undef sffileno
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
#undef sfgetc
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
#undef sfllen
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
#undef sfputc
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
#undef sfputd
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
#undef sfputl
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
#undef sfputm
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
#undef sfputu
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
#undef sfslen
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
#undef sfstacked
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
#undef sfulen
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
#undef sfvalue
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Close a stream. A file stream is synced before closing.
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Function to clear a locked stream.
** This is useful for programs that longjmp from the mid of an sfio function.
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Convert a floating point value to ASCII
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Set a new discipline for a stream.
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
#include <math.h>
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Function to handle io exceptions.
** Written by Kiem-Phong Vo
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/*
** Any required functions for process exiting.
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* External variables and functions used only by Sfio
** Written by Kiem-Phong Vo
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Fill the buffer of a stream with data.
** If n < 0, sffilbuf() attempts to fill the buffer if it's empty.
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Write a buffer out to a file descriptor or
** extending a buffer for a SF_STRING stream.
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
#include <math.h>
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Read a long value coded in a portable format.
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Read an unsigned long value coded portably for a given range.
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Read a record delineated by a character.
** The record length can be accessed via sfvalue(f).
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Read an unsigned long value coded in a portable format.
**
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>$(ProjectDir);$(SolutionDir)windows\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>$(ProjectDir);$(SolutionDir)windows\include;$(SolutionDir)lib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
- <AdditionalIncludeDirectories>$(ProjectDir);$(SolutionDir)windows\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>$(ProjectDir);$(SolutionDir)windows\include;$(SolutionDir)lib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PrecompiledHeader />
<WarningLevel>Level4</WarningLevel>
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Get size of a long value coded in a portable format
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
static char *Version = "\n@(#)sfio (AT&T Labs - kpv) 2001-02-01\0\n";
/* Functions to set a given stream to some desired mode
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Obtain/release exclusive use of a stream.
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Fundamental function to create a new stream.
** The argument flags defines the type of stream and the scheme
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Set the function to be called when a stream is opened or closed
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
#include <string.h>
/* Write out a character n times
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
#ifdef _WIN32
-#include "io.h"
+#include <io.h>
#endif
/* Open a file/string for IO.
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
#ifndef FIONREAD
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Poll a set of streams to see if any is available for I/O.
** Ready streams are moved to front of array but retain the
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Management of pools of streams.
** If pf is not nil, f is pooled with pf and f becomes current;
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Create a coprocess.
** Written by Kiem-Phong Vo.
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Print data with a given format
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Construct a string with the given format and data.
** This function allocates space as necessary to store the string.
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Delete all pending data in the buffer
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
#include <float.h>
#include <math.h>
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Write out a long value in a portable format
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Write out an unsigned long value in a portable format.
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Put out a null-terminated string
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Write out an unsigned long value in a portable format.
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Invoke event handlers for a stream
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Internal function to do a hard read.
** This knows about discipline and memory mapping, peek read.
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Read n bytes from a stream into a buffer
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Reserve a segment of data or buffer.
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Resize a stream.
Written by Kiem-Phong Vo.
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Read formatted data from a stream
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Set the IO pointer to a specific location in the stream
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Set some control flags or file descript for the stream
**
#define getpagesize ______getpagesize
#endif
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
#if defined(__STDPP__directive) && defined(__STDPP__hide)
__STDPP__directive pragma pp:nohide getpagesize
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Change the file descriptor
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Get the size of a stream.
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Seek function that knows discipline
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Push/pop streams
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Convert a Sfdouble_t value represented in an ASCII format into
** the internal Sfdouble_t representation.
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Swap two streams. If the second argument is NULL,
** a new stream will be created. Always return the second argument
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Synchronize data in buffers with the file system.
** If f is nil, all streams are sync-ed
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Dealing with $ argument addressing stuffs.
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Tell the current location in a given stream
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Create a temporary stream for read/write.
** The stream is originally created as a memory-resident stream.
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Push back one byte to a given SF_READ stream
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* The engine for formatting data
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* The main engine for reading formatted data
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Write with discipline.
**
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "sfhdr.h"
+#include <sfio/sfhdr.h>
/* Write data out to the file system
**