delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Reply-To: | <vlad AT softaware DOT com> |
From: | "Vlad Soutyrine" <vlad AT softaware DOT com> |
To: | "'cygwin'" <cygwin AT sourceware DOT cygnus DOT com> |
Cc: | <corinna AT vinschen DOT de>, <sos AT prospect DOT com DOT ru> |
Subject: | how to link function sopen |
Date: | Thu, 29 Jun 2000 10:14:34 -0700 |
Message-ID: | <7BF34D04641AD411919D0090277E15A33F3D@mbox.softaware.com> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) |
Importance: | Normal |
In-Reply-To: | <7BF34D04641AD411919D0090277E15A3CA03@mbox.softaware.com> |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2919.6600 |
I am testing rsync under NT. It works basically fine with one exception. If a file that rsync is trying to replace is open in other application, rsync fails even if the file is open in a shared mode. I've noticed that using function "sopen" instead of "open" for file copying solves the problem. I did testing with VC++ compiler. I can compile fine under Cygwin with the call of sopen, but the linking fails, however. I found definition of function "sopen" in file /usr/include/mingw32/io.h Looks like it is a part of package Mingw32. However, when I try to link library libmingw32.a I am getting error messages like /lib/libmingw32.a(dirent.o)(.text+0x1d):dirent.c: undefined reference to `_errno' Is that correct library to use? How would I link a library with function "sopen" correctly? Thank you very much, Vlad -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |