delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4680E3A0.3020508@pacific.net.sg> |
Date: | Tue, 26 Jun 2007 14:00:00 +0400 |
From: | Erich Dollansky <oceanare AT pacific DOT net DOT sg> |
User-Agent: | Thunderbird 2.0.0.4 (Windows/20070604) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Problem with stat |
References: | <46808EA8 DOT 2030202 AT pacific DOT net DOT sg> <4680DD73 DOT 8090300 AT sh DOT cvut DOT cz> |
In-Reply-To: | <4680DD73.8090300@sh.cvut.cz> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id l5Q9xifR026959 |
Hi, Václav Haisman wrote: > Erich Dollansky wrote: > [...] >> When I run this little C++ program: >> >> PRIVATE VOID StatLessdox (VOID) >> BEGIN >> struct stat Stat; >> >> IF (stat ("/usr/X11R6/share/doc/lesstif-0.94.4/html/Lessdox", &Stat) >> == 0) THEN >> printf ("Mode: %lX\n", (unsigned long) Stat.st_mode); >> IF (S_ISDIR (Stat.st_mode)) THEN >> printf ("Directory flag is set.\n"); >> END; >> IF (S_ISREG (Stat.st_mode)) THEN >> printf ("Is a regular file.\n"); >> END; >> IF (S_ISLNK (Stat.st_mode)) THEN >> printf ("Link flag is set.\n"); >> END; >> END; >> END; > [...] > This is NOT C++. Not without some obscure header included before the source. > this is why I mentioned that it is C++. Erich -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |