🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #1841

Re: Unique file determination

#1841
From: Dugal James P.
Date: Fri, 10 Aug 1990 18:10
14 lines
1174 bytes
In article <1990Aug9.193919.2996@caen.engin.umich.edu> mrice@caen.engin.umich.edu (Michael Rice) writes:
>What I want to do is store some type of file indentifier for each file
>so when I get a new file I can create this identified and check it
Mike, how about using the stat() function and concatenating st_dev with
st_ino?  If this doesn't work I have a function I wrote for Lattice C
several years ago that does work.  However, the st_ino value may well change
after a disk reorganization.

--James
-- 
-- James Dugal,	N5KNX		Internet: jpd@usl.edu
Associate Director		Ham packet: n5knx@k5arh
Computing Center		US Mail: PO Box 42770  Lafayette, LA  70504
University of Southwestern LA.	Tel. 318-231-6417	U.S.A.
Technical Details
Message-ID: <12972@rouge.usl.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!rex!rouge!pc!jpd
References: <1990Aug9.193919.2996@caen.engin.umich.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!rex!rouge!pc!jpd
From: jpd@pc.usl.edu (Dugal James P.)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Unique file determination
Message-ID: <12972@rouge.usl.edu>
Date: 10 Aug 90 18:10:04 GMT
References: <1990Aug9.193919.2996@caen.engin.umich.edu>
Sender: anon@rouge.usl.edu
Organization: Univ. of Southwestern La., Lafayette
Lines: 14
Originator: jpd@pc.usl.edu