[complement-svn] SF.net SVN: complement: [1772] trunk/complement/explore/inquiry/shades
Status: Pre-Alpha
Brought to you by:
complement
From: <com...@us...> - 2007-10-24 16:52:24
|
Revision: 1772 http://complement.svn.sourceforge.net/complement/?rev=1772&view=rev Author: complement Date: 2007-10-24 09:52:22 -0700 (Wed, 24 Oct 2007) Log Message: ----------- fifo with fstream, order of open Added Paths: ----------- trunk/complement/explore/inquiry/shades/fifo/ trunk/complement/explore/inquiry/shades/fifo/Makefile trunk/complement/explore/inquiry/shades/fifo/Makefile.inc trunk/complement/explore/inquiry/shades/fifo/test.cc Property changes on: trunk/complement/explore/inquiry/shades/fifo ___________________________________________________________________ Name: svn:ignore + obj Added: trunk/complement/explore/inquiry/shades/fifo/Makefile =================================================================== --- trunk/complement/explore/inquiry/shades/fifo/Makefile (rev 0) +++ trunk/complement/explore/inquiry/shades/fifo/Makefile 2007-10-24 16:52:22 UTC (rev 1772) @@ -0,0 +1,9 @@ +# -*- Makefile -*- Time-stamp: <04/01/09 16:53:50 ptr> + +SRCROOT := ../../.. +COMPILER_NAME := gcc + +include Makefile.inc +include ${SRCROOT}/Makefiles/gmake/top.mak + +LDFLAGS += -Wl,--rpath=${STLPORT_LIB_DIR} Added: trunk/complement/explore/inquiry/shades/fifo/Makefile.inc =================================================================== --- trunk/complement/explore/inquiry/shades/fifo/Makefile.inc (rev 0) +++ trunk/complement/explore/inquiry/shades/fifo/Makefile.inc 2007-10-24 16:52:22 UTC (rev 1772) @@ -0,0 +1,4 @@ +# -*- makefile -*- Time-stamp: <04/01/12 15:37:40 ptr> + +PRGNAME = test +SRC_CC = test.cc Added: trunk/complement/explore/inquiry/shades/fifo/test.cc =================================================================== --- trunk/complement/explore/inquiry/shades/fifo/test.cc (rev 0) +++ trunk/complement/explore/inquiry/shades/fifo/test.cc 2007-10-24 16:52:22 UTC (rev 1772) @@ -0,0 +1,18 @@ +#include <fstream> +#include <iostream> +#include <sys/types.h> +#include <sys/stat.h> + +using namespace std; + +int main() +{ + mkfifo( "./file", 0666 ); + { + ofstream f( "./file" ); + + f << "Hello" << endl; + } + + return 0; +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |