mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
solaris8-namei-cleanup-20010802
note gi is useless for namei case The AFS_64BIT_ENV define is needed for afsutil.h which makes use of some 64-bit types (and if AFS_64BIT_ENV isn't set, defaults to the non-existant u_int64_t).
This commit is contained in:
parent
d11b1bf924
commit
cfa2e59dc1
@ -15,6 +15,8 @@
|
|||||||
#define AFS_USR_SUN7_ENV 1
|
#define AFS_USR_SUN7_ENV 1
|
||||||
#define AFS_USR_SUN8_ENV 1
|
#define AFS_USR_SUN8_ENV 1
|
||||||
|
|
||||||
|
#define AFS_64BIT_ENV 1
|
||||||
|
|
||||||
#include <afs/afs_sysnames.h>
|
#include <afs/afs_sysnames.h>
|
||||||
|
|
||||||
/*#define AFS_GLOBAL_SUNLOCK 1 /* For global locking */
|
/*#define AFS_GLOBAL_SUNLOCK 1 /* For global locking */
|
||||||
|
@ -26,6 +26,12 @@ char **argv;
|
|||||||
int error=0;
|
int error=0;
|
||||||
struct stat status;
|
struct stat status;
|
||||||
int dev, fd, inode;
|
int dev, fd, inode;
|
||||||
|
|
||||||
|
#if defined(AFS_NT40_ENV) || defined(AFS_NAMEI_ENV)
|
||||||
|
fprintf(stderr, "gi not supported on NT or NAMEI systems.\n");
|
||||||
|
exit(1);
|
||||||
|
#else
|
||||||
|
|
||||||
argc--; argv++;
|
argc--; argv++;
|
||||||
while (argc && **argv == '-') {
|
while (argc && **argv == '-') {
|
||||||
if (strcmp(*argv, "-stat") == 0)
|
if (strcmp(*argv, "-stat") == 0)
|
||||||
@ -65,6 +71,7 @@ char **argv;
|
|||||||
write(1, buf, n);
|
write(1, buf, n);
|
||||||
}
|
}
|
||||||
exit(0);
|
exit(0);
|
||||||
|
#endif /* AFS_NT40_ENV || AFS_NAMEI_ENV */
|
||||||
}
|
}
|
||||||
|
|
||||||
Perror(err, a1, a2, a3)
|
Perror(err, a1, a2, a3)
|
||||||
|
Loading…
Reference in New Issue
Block a user