🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.qnx
Article #3

struct stat.st_type in Watcom C/C++ v9.5 for QNX

#3
From: Marek Brudka (A. Pacut)
Date: Tue, 02 Apr 1996 18:59
13 lines
1150 bytes
Hi,
According to the "WATCOM C LIBRARY REFERENCE FOR QNX" the structure stat
in sys/stat.h should contain the field _ftype_t st_type that allows to
identify the type of given file i.e if it is fifo, regular, directory
etc. Unfortunatelly there is no st_type in this structure. Moreover
there is no field of _ftype_t in the structure stat that makes me able
to recognize the file (althought the field st_spare0 is the appropriate
type, its values are usually useless). Could anybody tell me then what
is the way of checking the type of a file?
 
					Thanks
					Marek Brudka
					brudka@ia.pw.edu.pl
Technical Details
Message-ID: <3161791B.5D8F@ia.pw.edu.pl>
Path: arc1-ca.pugleaf.net!gemini.coi.pw.edu.pl!news-adm@io.coi.pw.edu.pl

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!gemini.coi.pw.edu.pl!news-adm@io.coi.pw.edu.pl
From: "Marek Brudka (A. Pacut)" <brudka@ia.pw.edu.pl>
Newsgroups: comp.os.qnx,comp.lang.c++,comp.lang.c
Subject: struct stat.st_type in Watcom C/C++ v9.5 for QNX
Date: Tue, 02 Apr 1996 20:59:39 +0200
Organization: Warsaw University of Technology
Message-ID: <3161791B.5D8F@ia.pw.edu.pl>
NNTP-Posting-Host: bobas.ia.pw.edu.pl
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-2
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0b2 (X11; I; SunOS 5.4 sun4c)