vol: Remove unneeded braces
[openafs.git] / src / vol / ntops.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  *
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
8  */
9
10 #ifndef _NTOPS_H_
11 #define _NTOPS_H_
12
13 #ifdef AFS_NT40_ENV
14 /* We don't include Unix afssyscalls.h on Windows, so: */
15 #define VALID_INO(I) ((I != (__int64)-1) && (I != (__int64)0))
16
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];
20
21 extern char *PrintInode(char *, Inode);
22 #endif
23
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 FD_t nt_fdopen(IHandle_t * h, char *fdperms);
39 extern int nt_unlink(char *name);
40
41 extern void nt_DevToDrive(char *drive, int dev);
42 extern int nt_DriveToDev(char *drive);
43 #endif /* _NTOPS_H_ */