summaryrefslogtreecommitdiffstats
path: root/debian/transcode/transcode-1.1.7/libtc/static_xio.h
blob: 878b56a3e42013682c0af1f2fd4c0edc69e4e918 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * static_xio.h - static linkage helper for (lib)xio.
 *
 * This file is part of transcode, a video stream processing tool.
 * transcode is free software, distributable under the terms of the GNU
 * General Public License (version 2 or later).  See the file COPYING
 * for details.
 */

#ifndef STATIC_XIO_H
#define STATIC_XIO_H

#include "xio.h"
#include <fcntl.h>
#include <unistd.h>

void dummy_xio(void);
void dummy_xio(void)
{
	int i;
	struct stat tmp;

	i = xio_open("", O_RDONLY);
	xio_read(i, NULL, 0);
	xio_write(i, NULL, 0);
	xio_ftruncate(i, 0);
	xio_lseek(i, 0, 0);
	xio_fstat(i, &tmp);
	xio_lstat("", &tmp);
	xio_stat("", &tmp);
	xio_rename("", "");
	xio_close(i);
}

#endif /* STATIC_XIO_H */