delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/31/07:54:22

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
From: "Gerrit P. Haase" <gerrit DOT haase AT t-online DOT de>
Organization: convey Information Systems GmbH
To: cygwin <cygwin AT cygwin DOT com>
Date: Thu, 31 May 2001 13:47:46 +0200
MIME-Version: 1.0
Subject: Question to Dr. Volker Zell's sendmail-patch
Reply-to: <gerrit AT familiehaase DOT de>, <gerrit DOT haase AT t-on>
Message-ID: <3B164B82.25566.976894@localhost>
X-mailer: Pegasus Mail for Win32 (v3.12cDE)

Hi Dr. Zell,

i found your patch at the archives, i want to build sendmail, but i got some questions.
Here is a part from that patch.
You do a define of USE_LOCKF.
A little below, there is a part with LOCK_EX and flock commented out.
Also i found in the sources a definition of LOCK_EX, which is initialised with
F_LOCK. So i didn't found F_LOCK, where does it came from?

 /*
+** Cygwin
+*/
+
+#ifdef __CYGWIN__
+# define HASSNPRINTF    1
+# define USE_LOCKF	1
+# define USE_SETEUID	1
+# define USE_VSYSLOG	0
+# define _PATH_MAILDIR	"/usr/spool/mail"
+#endif
+
+/*
  * If you don't have flock, you could try using lockf instead.
  */
 
[...]
@@ -1121,12 +1137,14 @@ tryagain:
 
 
 	/* Wait until we can get a lock on the file. */
+#ifndef __CYGWIN__
 	if (flock(mbfd, LOCK_EX) < 0)
 	{
 		mailerr("450 4.2.0", "%s: %s", path, errstring(errno));
 		goto err1;
 	}
-
+#endif


-gph


-- 
Gerrit P. Haase

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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