noinst_LTLIBRARIES = libsfiodc_C.la
libsfiodc_C_la_SOURCES = sfdcdos.c sfdcfilter.c sfdclzw.c \
- sfdcslow.c sfdcsubstream.c sfdctee.c sfdcunion.c
+ sfdcsubstream.c sfdctee.c sfdcunion.c
${top_builddir}/FEATURE/sfio: ${top_srcdir}/lib/sfio/features/sfio
mkdir -p ${top_builddir}/FEATURE
+++ /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/sfdchdr.h>
-
-/* Make a stream op return immediately on interrupts.
-** This is useful on slow streams (hence the name).
-**
-** Written by Glenn Fowler (03/18/1998).
-*/
-
-static int slowexcept(Sfio_t * f, int type, void * v, Sfdisc_t * disc)
-{
- NOTUSED(f);
- NOTUSED(v);
- NOTUSED(disc);
-
- switch (type) {
- case SF_FINAL:
- case SF_DPOP:
- free(disc);
- break;
- case SF_READ:
- case SF_WRITE:
- if (errno == EINTR)
- return (-1);
- break;
- }
-
- return (0);
-}
-
-int sfdcslow(Sfio_t * f)
-{
- Sfdisc_t *disc;
-
- if (!(disc = (Sfdisc_t *) malloc(sizeof(Sfdisc_t))))
- return (-1);
-
- disc->readf = NIL(Sfread_f);
- disc->writef = NIL(Sfwrite_f);
- disc->seekf = NIL(Sfseek_f);
- disc->exceptf = slowexcept;
-
- if (sfdisc(f, disc) != disc) {
- free(disc);
- return (-1);
- }
-
- return (0);
-}
extern int sfdcdos(Sfio_t *);
extern int sfdcfilter(Sfio_t *, const char *);
extern int sfdclzw(Sfio_t *);
- extern int sfdcslow(Sfio_t *);
extern int sfdcsubstream(Sfio_t *, Sfio_t *, Sfoff_t, Sfoff_t);
extern int sfdctee(Sfio_t *, Sfio_t *);
extern int sfdcunion(Sfio_t *, Sfio_t **, int);