public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Min Yao" <kbdu@erols.com>
To: <dslate@interaccess.com>
Cc: <gnu-win32@cygnus.com>
Subject: Help
Date: Sun, 31 Jan 1999 23:52:00 -0000	[thread overview]
Message-ID: <000701be3c4e$07724ec0$582daccf@kebocomp> (raw)

Hi, David, I am trying to port the SSLftp 0.8 ftpd server part unix c source
code to Windows NT C source code and run the ftpd server on NT, I think I
can use gnu-win32 package to do it, but I do not know how, I just downloaded
user.exe file and installed on Windows95, and then I do not know what to do,
Could you or anybody help me please !


Thanks very much !

Kebo

To: gnu-win32@cygnus.com
Reply-To: dslate@interaccess.com
Subject: Problems with gnu-win32

Dave Slate wrote:

I recently installed the gnu-win32 package (b18, with development tools) on
a DELL PentiumII box running Windows-95, and on a DELL Pentium-Pro box
running Windows-NT.  I'm trying to port a complex application from a
Linux/Unix environment to both of these systems.  Much of this application
is now running ok, including some hairy I/O involving inter-process pipes
and select calls.  Here are some of the things that don't seem to be
working properly:

1. The hostname command seems to work on Win95 but aborts on WinNT.
2. popen seems to work on WinNT, but on Win95 only read calls (mode "r")
   work, while write calls ("w") fail.
3. Attempts to retrieve cpu time using getrusage() fail on both systems,
   returning junk.  Here is the code, which works ok on Linux/Unix:

--------------------------------------------------------------------------
#include
#include
#include
#include
#include

/*
 * double CpuTime( ) - report Dsu cpu time.
 */
double
CpuTime( void)
{
 double   t;
 struct rusage   r;

 getrusage( RUSAGE_SELF, &r);
 t = r.ru_utime.tv_sec + r.ru_stime.tv_sec +
         (r.ru_utime.tv_usec + r.ru_stime.tv_usec) / 1000000.0;
 return (t);
--------------------------------------------------------------------------

Any ideas on these problems?

Thanks for the gnu-win32 package, and for whatever help you can provide,

-- Dave Slate


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

             reply	other threads:[~1999-01-31 23:52 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-31 23:52 Min Yao [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-03-10 17:59 help Scott Smith
2020-07-21 16:47 help Birane Koundoul
2020-07-21 17:55 ` help Csaba Raduly
2020-07-21 17:59 ` help Marco Atzeri
     [not found] <mailman.10707.1587224442.8982.cygwin@cygwin.com>
2020-04-18 17:26 ` Help William de la Vega
2003-08-17 20:21 FW: help Glen Zhang
2003-08-17 20:34 ` help Martin Gainty
2003-08-18  4:49   ` help Glen Zhang
2003-08-18  5:14     ` help Martin Gainty
2003-01-13  3:04 help top_general
2003-01-13  3:04 ` help Christopher Faylor
     [not found] <00121217290105.05746@cygbert>
2000-12-12  8:40 ` help M@ikel Gloudemans
2000-12-12  9:23   ` help Christopher Faylor
1999-05-20 19:13 help ML
1999-05-31 21:10 ` help ML
1999-03-29 14:22 Help Nirmal Vuppuluri
1999-03-31 19:45 ` Help Nirmal Vuppuluri
1999-01-31 23:52 Help Fritz Schenk
1999-01-31 23:52 ` Help Jyrki O Saarinen
1999-01-31 15:00 Help mendes
1999-01-31 23:52 ` Help mendes
1998-11-10  7:48 Help Jama Musse Jama
1998-07-24  5:20 help Joseph Sirucka
1997-10-19 13:17 Help BMullenber
1997-10-08  2:27 Help Earnie Boyd
     [not found] <199710062225.SAA20805@magnum.wpe.com.>
1997-10-07  6:18 ` Help Dominick Love

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000701be3c4e$07724ec0$582daccf@kebocomp' \
    --to=kbdu@erols.com \
    --cc=dslate@interaccess.com \
    --cc=gnu-win32@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).