This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch to avoid using mkfifo under Cygwin


On Thu, 12 Sep 2002, Mo DeJong wrote:

> Here is a patch that avoids calling mkfifo under Cygwin since
> it is not functional.

Ok, so given cgf's latest comments, do we want to hold off on this or 
revert it when the cygwin work is ready? Maybe we can write an autoconf 
test for it?

Keith

> 2002-09-12  Mo DeJong  <supermo@bayarea.net>
> 
> 	* unix/tclUnixFCmd.c (DoCopyFile): Don't use mkfifo
> 	when compiling with Cygwin, since it is not supported.
> 
> Index: unix/tclUnixFCmd.c
> ===================================================================
> RCS file: /cvs/src/src/tcl/unix/tclUnixFCmd.c,v
> retrieving revision 1.2
> diff -u -r1.2 tclUnixFCmd.c
> --- unix/tclUnixFCmd.c	9 Sep 2001 23:56:09 -0000	1.2
> +++ unix/tclUnixFCmd.c	12 Sep 2002 22:37:10 -0000
> @@ -391,12 +391,18 @@
>  	    }
>  	    return CopyFileAtts(src, dst, &srcStatBuf);
>  	}
> +#ifndef __CYGWIN__
> +        /*
> +         * mkfifo is not supported under Cygwin even though it is prototyped
> +         * in newlib headers.
> +         */
>          case S_IFIFO: {
>  	    if (mkfifo(dst, srcStatBuf.st_mode) < 0) {	/* INTL: Native. */
>  		return TCL_ERROR;
>  	    }
>  	    return CopyFileAtts(src, dst, &srcStatBuf);
>  	}
> +#endif /* __CYGWIN__ */
>          default: {
>  	    return CopyFile(src, dst, &srcStatBuf);
>  	}
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]