Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
18
Добавлен:
01.05.2014
Размер:
499 б
Скачать
	#ifndef PIPEFILE_H	/* This is pipefile.h */

	#define PIPEFILE_H

	#include "filebase.h"



	/* A class to encapsulate POSIX and UNIX FIFO file objects' properties */

	class pipefile	:	public filebase 	

	{

		public:

			pipefile(const char* fn, int flags, int prot) : filebase(fn,flags,prot)					{};

			int create( const char* fn, mode_t prot)			

						{	return mkfifo(fn,prot);	};

			streampos tellg()	{ 	return (streampos)-1;	};


	};

	#endif		/* pipefile.h */
Соседние файлы в папке ch7