This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: ASM allowed in Fortran? and OpenDir?
- From: "Janne Blomqvist" <blomqvist dot janne at gmail dot com>
- To: "Christopher D. Rickett" <crickett at lanl dot gov>
- Cc: "FX Coudert" <fxcoudert at gmail dot com>, "Tobias Burnus" <burnus at net-b dot de>, RadSurfer <RadSurfer at yahoo dot com>, fortran at gcc dot gnu dot org
- Date: Tue, 7 Aug 2007 20:46:35 +0300
- Subject: Re: ASM allowed in Fortran? and OpenDir?
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RaqvU6uOalmRMe8Nv8NvpD9LY90mA9UmXuBjrwMkGDtd81/ELTFV/04WmmbGRveacsho94SK+smC8Hzu0NA8Eyd1FteAo2I6ep4OmE+ii1awun29kER/SbJ2+9m0RjBUPWzQA27KzX9+Otfyo6CsPlqtkWdysG5Aso5Nz440BTw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CBjnD2pWI4kjJN17IKR1jFRGA4IXe7nTwCdyOaFNESRLVVCgxmEpDASI15muYw6eivTZI8FYacsr6o6R+mmPyPe2ciGxUwVaCUyIIIEFTuHwC8L+WdqRzlPjw7t9cjECPIpTOIExRLyv4khvhF4ADb2V8uzCOOIqVWxf7tstYfI=
- References: <loom.20070807T045837-299@post.gmane.org> <46B81DC4.8090502@net-b.de> <2A103943-FB13-4A5C-9992-997FDF2AEF12@gmail.com> <Pine.LNX.4.64.0708071122430.1580@lennox.lanl.gov>
On 8/7/07, Christopher D. Rickett <crickett@lanl.gov> wrote:
> on my linux box, there is a dirent and a dirent64. the dirent struct
> matches Tobias's, and when used in the modified version of his code, works
> as expected. the dirent64 matches the definition provided by FX. the
> user will probably need to figure out what their's is by looking in
> dirent.h. of course, this is not the most portable way this could be
> done.
Most systems probably have both, dirent64 is used if LFS is enabled,
typically on Linux by compiling with -D_FILE_OFFSET_BITS=64. See
http://www.suse.de/~aj/linux_lfs.html
If one is interested in portability there are autoconf macros for
determining LFS support (AC_SYS_LARGEFILE) used e.g. by libgfortran.
--
Janne Blomqvist