Article View: demon.ip.developers
Article #1038findfirst() / _dos_findfirst()
From: John Washington
Date: Wed, 08 May 1996 00:00
Date: Wed, 08 May 1996 00:00
29 lines
1548 bytes
1548 bytes
I was thinking that, as part of SnzPrune's long overdue first birthday celebrations, I might add some code to complain if lock files exist, rather than blundering onward. "How Do They Do That?" I asked myself, and in the best hacking tradition, went off to steal^H^H^H^H^H browse some code. I found a piece that does the business in unbatch.c that had findfirst/findnext, and THEN noticed a #define tucked far away that turned findfirst into _dos_findfirst. WHY? There seems precious little difference between these two functions, except for parameter ordering. I found what may be a clue in compat.h, a file that starts with a remark about Microsoft/Borland compatibility, and also contains this #define (although the only file that includes compat.h is exec.c, and that file doesn't contain any use of findfirst!). Borland provide both findfirst AND _dos_findfirst. Does M'soft only offer the latter? And Borland's help file indicates findfirst is only for dos and windows. How does one do the equiv thing in Unix? (No, I'm not thinking of porting prune to Unix, just curious). -- John Washington
Technical Details
Message-ID:
<831575697snz@wash.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bb05,eea2e7ecc42db8da,start X-Google-Attributes: gid10bb05,public From: John Washington <john@wash.demon.co.uk> Subject: findfirst() / _dos_findfirst() Date: 1996/05/08 Message-ID: <831575697snz@wash.demon.co.uk> X-Deja-AN: 153765584 x-mail2news-path: wash.demon.co.uk x-nntp-posting-host: wash.demon.co.uk newsgroups: demon.ip.developers