... |
... |
@@ -12,6 +12,7 @@ |
12
|
12
|
#include <math.h>
|
13
|
13
|
#include <netdb.h>
|
14
|
14
|
#include <pwd.h>
|
|
15
|
+#include <stdint.h>
|
15
|
16
|
#include <stdio.h>
|
16
|
17
|
#include <stdlib.h>
|
17
|
18
|
#include <string.h>
|
... |
... |
@@ -608,8 +609,8 @@ os_sleep(double seconds) |
608
|
609
|
* function that works across all OSes.
|
609
|
610
|
*/
|
610
|
611
|
int
|
611
|
|
-os_stat(const char* path, u_int64_t *dev, u_int64_t *ino, unsigned int *mode, u_int64_t *nlink,
|
612
|
|
- unsigned int *uid, unsigned int *gid, u_int64_t *rdev, int64_t *size,
|
|
612
|
+os_stat(const char* path, uint64_t *dev, uint64_t *ino, unsigned int *mode, uint64_t *nlink,
|
|
613
|
+ unsigned int *uid, unsigned int *gid, uint64_t *rdev, int64_t *size,
|
613
|
614
|
int64_t *atime, int64_t *mtime, int64_t *ctime,
|
614
|
615
|
long *blksize, int64_t *blocks)
|
615
|
616
|
{
|
... |
... |
@@ -661,8 +662,8 @@ os_stat(const char* path, u_int64_t *dev, u_int64_t *ino, unsigned int *mode, u_ |
661
|
662
|
}
|
662
|
663
|
|
663
|
664
|
int
|
664
|
|
-os_fstat(int fd, u_int64_t *dev, u_int64_t *ino, unsigned int *mode, u_int64_t *nlink,
|
665
|
|
- unsigned int *uid, unsigned int *gid, u_int64_t *rdev, int64_t *size,
|
|
665
|
+os_fstat(int fd, uint64_t *dev, uint64_t *ino, unsigned int *mode, uint64_t *nlink,
|
|
666
|
+ unsigned int *uid, unsigned int *gid, uint64_t *rdev, int64_t *size,
|
666
|
667
|
int64_t *atime, int64_t *mtime, int64_t *ctime,
|
667
|
668
|
long *blksize, int64_t *blocks)
|
668
|
669
|
{
|
... |
... |
@@ -693,8 +694,8 @@ os_fstat(int fd, u_int64_t *dev, u_int64_t *ino, unsigned int *mode, u_int64_t * |
693
|
694
|
}
|
694
|
695
|
|
695
|
696
|
int
|
696
|
|
-os_lstat(const char* path, u_int64_t *dev, u_int64_t *ino, unsigned int *mode, u_int64_t *nlink,
|
697
|
|
- unsigned int *uid, unsigned int *gid, u_int64_t *rdev, int64_t *size,
|
|
697
|
+os_lstat(const char* path, uint64_t *dev, uint64_t *ino, unsigned int *mode, uint64_t *nlink,
|
|
698
|
+ unsigned int *uid, unsigned int *gid, uint64_t *rdev, int64_t *size,
|
698
|
699
|
int64_t *atime, int64_t *mtime, int64_t *ctime,
|
699
|
700
|
long *blksize, int64_t *blocks)
|
700
|
701
|
{
|