This is the mail archive of the
cygwin
mailing list for the Cygwin project.
fopen cannot open device name on windows xp
- From: The One <i51359 at yahoo dot com>
- To: Jason Tishler <jason at tishler dot net>, cygwin at cygwin dot com
- Date: Sat, 24 Sep 2005 09:54:13 -0700 (PDT)
- Subject: fopen cannot open device name on windows xp
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 <jason@tishler.net> 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/