Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ Path: not-for-mail From: "Matt Seitz" Newsgroups: gmane.os.cygwin Subject: struct flock, off_t, and __CYGWIN_USE_BIG_TYPES__ Date: Thu, 14 Mar 2002 17:29:52 -0800 Lines: 11 Message-ID: NNTP-Posting-Host: aptos.meridian-data.com X-Trace: main.gmane.org 1016155795 31583 206.79.177.145 (15 Mar 2002 01:29:55 GMT) X-Complaints-To: usenet AT main DOT gmane DOT org NNTP-Posting-Date: Fri, 15 Mar 2002 01:29:55 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 I am porting a program that assumes 32-bit gid/uid, so I defined __CYGWIN_USE_BIG_TYPES__. Unfortunately, that is causing my compiler to compain when I try to assign an off_t value to the l_start or l_len fields of struct flock. It appears this is because l_start and l_len are hard coded as 32-bit longs, while off_t can be 32-bit or 64-bit depending on whether __CYGWIN_USE_BIG_TYPES__ is defined. I assume I can't simple redefine struct flock without having to rebuild cygwin.dll. What is the best solution to this problem? -- 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/