2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
14 /* We don't include Unix afssyscalls.h on Windows, so: */
15 #define VALID_INO(I) ((I != (__int64)-1) && (I != (__int64)0))
17 /* minimum size of string to hand to PrintInode */
18 #define AFS_INO_STR_LENGTH 32
19 typedef char afs_ino_str_t
[AFS_INO_STR_LENGTH
];
21 extern char *PrintInode(char *, Inode
);
24 /* Basic file operations */
25 extern FD_t
nt_open(const char *name
, int flags
, int mode
);
26 extern int nt_close(FD_t fd
);
27 extern int nt_write(FD_t fd
, void *buf
, afs_sfsize_t size
);
28 extern int nt_read(FD_t fd
, void *buf
, afs_sfsize_t size
);
29 extern int nt_pread(FD_t fd
, void * buf
, afs_sfsize_t count
, afs_foff_t offset
);
30 extern int nt_pwrite(FD_t fd
, const void * buf
, afs_sfsize_t count
, afs_foff_t offset
);
31 extern afs_sfsize_t
nt_size(FD_t fd
);
32 extern int nt_getFileCreationTime(FD_t fd
, FILETIME
* ftime
);
33 extern int nt_setFileCreationTime(FD_t fd
, FILETIME
* ftime
);
34 extern int nt_sync(int cdrive
);
35 extern int nt_ftruncate(FD_t fd
, afs_foff_t len
);
36 extern int nt_fsync(FD_t fd
);
37 extern int nt_seek(FD_t fd
, afs_foff_t off
, int whence
);
38 extern FILE *nt_fdopen(IHandle_t
* h
, char *fdperms
);
39 extern int nt_unlink(char *name
);
41 extern void nt_DevToDrive(char *drive
, int dev
);
42 extern int nt_DriveToDev(char *drive
);
43 #endif /* _NTOPS_H_ */