CDA CD 60 Spezifikationen Seite 48

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 91
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 47
PCI CD and PCI CDa
Document Number: 008-00965-06 EDT Public Revision: I December 2004
Template: edt.dot
Page 48
Syntax
#include "edtinc.h"
int
edt_errno(void)
Arguments
None.
Return
32-bit integer representing the operating system-dependent error number generated by an error.
Example
if ((edt_p = edt_open("p11w",0))==NULL
{
int error_num;
edt_perror("edt_open");
error_num = edt_errno(edt_p);
}
edt_access
Description
Determines file access, independent of operating system. This a convenience routine that maps to
acccess() on Unix/Linus systems and _access() on Windows systems.
Syntax
int edt_access(char *fname, int perm)
Arguments
edt_p
device struct returned from edt_open
fname
path name of the file to check access permissions
perm
permission flag(s) to test for. See access() (Unix/Linux) or _access()
(Windows) for valid values.
Example
if(edt_access(“file.ras”, F_OK))
printf(“Warning: overwriting file %s\n”);
Return
0 on success, -1 on failure
edt_get_bitpath
Description
Obtains pathname to the currently loaded interface bitfile from the driver. The program “bitload” sets
this string in the driver when an interface bitfile is successfully loaded.
Syntax
#include “edtinc.h”
Seitenansicht 47
1 2 ... 43 44 45 46 47 48 49 50 51 52 53 ... 90 91

Kommentare zu diesen Handbüchern

Keine Kommentare