delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/12/07/00:40:21

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <010401c06010$3099e870$4c3ca8c0@adacel.com.au>
From: "Peter Tersteeg" <petert AT adacel DOT com DOT au>
To: <cygwin AT sourceware DOT cygnus DOT com>
Subject: Trouble accessing functions in cygwin1.dll
Date: Thu, 7 Dec 2000 16:40:21 +1100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-Mimeole: Produced By Microsoft MimeOLE V5.50.4133.2400

Hi,

I'm trying to use cygwin in a VC++ project (not pleasant, but I don't have a
choice) and I'm trying to access several functions using LoadLibrary and
GetProcAddress.  I've used assertions to check that they are found successfully,
but at runtime the program crashes when calling any of these functions.

The problem seems to be that I'm calling the functions with invalid parameters,
but I can't find any info that contradicts the parameters I'm using.  The
functions and the parameters I'm using are:

pid_t  wait(int *)
int  fcnt(int, int, ...)
pid_t  fork(void)
int  pipe(int __fildes[2])
int  stat(const char *__path, struct stat *__sbuf)

pid_t is defined as an unsigned int.

If anyone knows if these are okay or not, please let me know.

Thanks,

Peter Tersteeg
Adacel Technologies
petert AT adacel DOT com DOT au




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019