Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <20050924165413.93943.qmail@web33907.mail.mud.yahoo.com> Date: Sat, 24 Sep 2005 09:54:13 -0700 (PDT) From: The One Subject: fopen cannot open device name on windows xp To: Jason Tishler , cygwin AT cygwin DOT com In-Reply-To: <20050924004007.GA1500@tishler.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Hi Jason, Sorry to have to send this to you. I've been looking for answer and have posted this on the forum but no luck so far. I remember your name from a few responses on my previous posts. I believe you're very experience and knowledgeable in cygwin. Hope you can give me some hints as why fopen returns NULL on device name in windows xp. I've a c program that prints to network printer by getting a filehandle from fopen("//computer1/printer1", "wb"). That has always worked on Windows 95, 98 & 2000. When it's running under windows xp (sp1 or sp2), fopen returns a NULL. Has any one had a similar problem? Is there a solution to this? Thank you --- Jason Tishler wrote: > Yaakov, > > On Fri, Sep 23, 2005 at 01:34:20PM -0500, Yaakov S > wrote: > > When I have to run rebase from the distro, I get > the following error: > > gzip: Argument list too long > > Oops! > > > This is because of the command "gzip -d -c > /etc/setup/*.lst.gz". > > Instead, that part could work like the following: > > > > [snip] > > # Create rebase list > > for f in /etc/setup/*.lst.gz > > do > > gzip -d -c $f | grep -E "($Suffixes)\$" | \ > > sed -e '/cygwin1.dll$/d' -e 's/^/\//' > >>"$TmpFile" ; > > done > > I would prefer something like the following: > > find /etc/setup -name '*.lst.gz' -maxdepth 1 | > xargs gzip -d -c | \ > grep -E "($Suffixes)\$" | sed -e > '/cygwin1.dll$/d' -e 's/^/\//' \ > >>"$TmpFile" > > because it is more efficient than the above. > > I will release a new version of rebase with this > fix. > > Thanks for the heads up. > > Jason > > -- > PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc > or key servers > Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD > E4CC ECF4 8EF6 > > -- > Unsubscribe info: > http://cygwin.com/ml/#unsubscribe-simple > Problem reports: > http://cygwin.com/problems.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > ______________________________________________________ Yahoo! for Good Donate to the Hurricane Katrina relief effort. http://store.yahoo.com/redcross-donate3/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/