Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Date: Wed, 19 Jan 2000 00:05:53 -0500 From: cygwin AT sourceware DOT cygnus DOT com To: BKish9079 AT aol DOT com, cygwin AT sourceware DOT cygnus DOT com Subject: Re: binary mode Message-ID: <20000119000553.A4176@cygnus.com> Reply-To: cygwin AT sourceware DOT cygnus DOT com Mail-Followup-To: BKish9079 AT aol DOT com, cygwin AT sourceware DOT cygnus DOT com References: <34 DOT 6121c1 DOT 25b657d9 AT aol DOT com> <20000118222450 DOT B3627 AT cygnus DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20000118222450.B3627@cygnus.com>; from cygwin@sourceware.cygnus.com on Tue, Jan 18, 2000 at 10:24:50PM -0500 On Tue, Jan 18, 2000 at 10:24:50PM -0500, cygwin AT sourceware DOT cygnus DOT com wrote: >On Tue, Jan 18, 2000 at 06:57:13PM -0500, BKish9079 AT aol DOT com wrote: >>How do I set it to binary mode? It's been pointed out to me that my previous reply was less than helpful. So, in the interest of being more than unhelpful, please provide the mailing list a little more information on what you are trying to do. Your simple question did not provide enough context to provide any meaningful help. There are various ways of setting things in binmode. You can specify the -b option to mount when you mount a directory. You can set CYGWIN=binmode to control how devices (i.e., pipes) handle line endings. You can open files in binmode using the fopen function by appending a "b" to the second argument. You can open files in binmode using the open function by appending an "| O_BINARY" to the second argument. If none of this helps, provide more details to this mailing list and someone will surely be able to help. cgf -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com