This is the mail archive of the
mailing list for the Cygwin project.
Re: System API problem
- From: Pavel Tsekov <ptsekov at syntrex dot com>
- To: Bandla Srinivas <bandla_srinivas at yahoo dot com>
- Cc: cygwin at cygwin dot com
- Date: Fri, 18 Jan 2002 11:32:49 +0100
- Subject: Re: System API problem
- References: <firstname.lastname@example.org>
And another thing - by posting erronous information
you're not helping anyone to find the solution to
your problem. You're just fooling the people.
What I mean is that if the system() call returns
127 (0x7f) the error meaning is exec*() call failed
not ERROR_PROC_NOT_FOUND as you state below. Note that
cygwin is POSIX emulation layer - you should not read
winerror.h to find out the info on the error code but
the system() call man page.
Bandla Srinivas wrote:
> I am using cygwin 1.3.6 to compile the unix sources,
> and use those executables on Win NT. I am getting
> Strange error when running my application.
> I am using system API inside my application to
> execute commands. This is Sample Test program
> int status=system("diff t1.tct t2.txt");
> I compiled this in cygwin. I got test.exe. When i run
> test.exe from msdos prompt, it is printing 127. That
> means system api is returning error code as 127 it is
> equivalent to (ERROR_PROC_NOT_FOUND).
> I copied cygwin1.dll to c:\winnt\system32. system
> API has been defined in this cygwin1.dll. when i run
> this executable from dosprompt why it is not able to
> locate procedure system eventhough cygwin1.dll in
> path. Anybody faced such problem. i have tried with
> different commands with in the system API. Same error
> code 127. What is the problem. can i have any solution
> for this problem.
> - Bandla
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html