FSOBJS=$(OUT)\fs.obj \
$(OUT)\fs_utils.obj \
- $(OUT)\cm_nls.obj
+ $(OUT)\cm_nls.obj \
+ $(OUT)\parsemode.obj
CMDBGOBJS=$(OUT)\cmdebug.obj
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef __AFSD_H_ENV__
-#define __AFSD_H_ENV__ 1
+#ifndef OPENAFS_WINNT_AFSD_AFSD_H
+#define OPENAFS_WINNT_AFSD_AFSD_H 1
#define USE_BPLUS 1
typedef BOOL ( APIENTRY * AfsdStoppedHook )(void);
#define SERVICE_CONTROL_CUSTOM_DUMP 128
-#endif /* AFSD_H_ENV */
+#endif /* OPENAFS_WINNT_AFSD_AFSD_H */
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef __AFSDICON_H_ENV__
-#define __AFSDICON_H_ENV__ 1
+#ifndef OPENAFS_WINNT_AFSD_AFSDICON_H
+#define OPENAFS_WINNT_AFSD_AFSDICON_H 1
#define IDM_HELP 100
-#endif /* __AFSDICON_H_ENV */
+#endif /* OPENAFS_WINNT_AFSD_AFSDICON_H */
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef __CM_H_ENV__
-#define __CM_H_ENV__ 1
+#ifndef OPENAFS_WINNT_AFSD_CM_H
+#define OPENAFS_WINNT_AFSD_CM_H 1
/* We use pthreads in the cache manager (not LWP) */
#ifndef AFS_PTHREAD_ENV
#define LOCK_HIERARCHY_AFSDBSBMT_GLOBAL 1000
#define LOCK_HIERARCHY_TOKEN_EVENT_GLOBAL 2000
#define LOCK_HIERARCHY_SYSCFG_GLOBAL 3000
-#endif /* __CM_H_ENV__ */
+#endif /* OPENAFS_WINNT_AFSD_CM_H */
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef _CM_ACCESS_H_ENV__
-#define _CM_ACCESS_H_ENV__ 1
+#ifndef OPENAFS_WINNT_AFSD_CM_ACCESS_H
+#define OPENAFS_WINNT_AFSD_CM_ACCESS_H 1
#include "cm_user.h"
struct cm_req *reqp);
extern int cm_accessPerFileCheck;
-#endif /* _CM_ACCESS_H_ENV__ */
+#endif /* OPENAFS_WINNT_AFSD_CM_ACCESS_H */
/* Copyright (C) 1994 Cazamar Systems, Inc. */
-#ifndef _BUF_H__ENV_
-#define _BUF_H__ENV_ 1
+#ifndef OPENAFS_WINNT_AFSD_BUF_H
+#define OPENAFS_WINNT_AFSD_BUF_H 1
#include <osi.h>
#ifdef DISKCACHE95
/* error codes */
#define CM_BUF_EXISTS 1 /* buffer exists, and shouldn't */
-#endif /* _BUF_H__ENV_ */
+#endif /* OPENAFS_WINNT_AFSD_BUF_H */
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef _CM_CALLBACK_H_ENV__
-#define _CM_CALLBACK_H_ENV__ 1
+#ifndef OPENAFS_WINNT_AFSD_CM_CALLBACK_H
+#define OPENAFS_WINNT_AFSD_CM_CALLBACK_H 1
#include <osi.h>
extern afs_int32 cm_giveUpAllCBs;
extern afs_int32 cm_shutdown;
-#endif /* _CM_CALLBACK_H_ENV__ */
+#endif /* OPENAFS_WINNT_AFSD_CM_CALLBACK_H */
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef __CELL_H_ENV_
-#define __CELL_H_ENV_ 1
+#ifndef OPENAFS_WINNT_AFSD_CELL_H
+#define OPENAFS_WINNT_AFSD_CELL_H 1
#define CELL_MAXNAMELEN 256
unsigned short vlport, afs_uint32 host_count,
char *hostname[], afs_uint32 flags);
-#endif /* __CELL_H_ENV_ */
+#endif /* OPENAFS_WINNT_AFSD_CELL_H */
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef __CONFIG_H_ENV_
-#define __CONFIG_H_ENV_ 1
+#ifndef OPENAFS_WINNT_AFSD_CONFIG_H
+#define OPENAFS_WINNT_AFSD_CONFIG_H 1
#define CM_CONFIGDEFAULT_CACHESIZE 98304
#define CM_CONFIGDEFAULT_BLOCKSIZE 4096
#endif /* __CM_CONFIG_INTERFACES_ONLY__ */
-#endif /* __CONFIG_H_ENV_ */
+#endif /* OPENAFS_WINNT_AFSD_CONFIG_H */
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef __CM_CONN_H_ENV__
-#define __CM_CONN_H_ENV__ 1
+#ifndef OPENAFS_WINNT_AFSD_CM_CONN_H
+#define OPENAFS_WINNT_AFSD_CM_CONN_H 1
#define CM_CONN_DEFAULTRDRTIMEOUT 45
#ifndef CM_CONN_CONNDEADTIME
extern long cm_ServerAvailable(struct cm_fid *fidp, struct cm_user *userp);
-#endif /* __CM_CONN_H_ENV__ */
+#endif /* OPENAFS_WINNT_AFSD_CM_CONN_H */
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef __CM_DAEMON_H_ENV_
-#define __CM_DAEMON_H_ENV_ 1
+#ifndef OPENAFS_WINNT_AFSD_CM_DAEMON_H
+#define OPENAFS_WINNT_AFSD_CM_DAEMON_H 1
/* externs */
extern long cm_daemonCheckDownInterval;
#define CM_MAX_DAEMONS 64
-#endif /* __CM_DAEMON_H_ENV_ */
+#endif /* OPENAFS_WINNT_AFSD_CM_DAEMON_H */
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef __CM_DCACHE_ENV__
-#define __CM_DCACHE_ENV__ 1
+#ifndef OPENAFS_WINNT_AFSD_CM_DCACHE_H
+#define OPENAFS_WINNT_AFSD_CM_DCACHE_H 1
/* bulk I/O descriptor */
typedef struct cm_bulkIO {
extern long cm_BufWrite(void *vscp, osi_hyper_t *offsetp, long length, long flags,
cm_user_t *userp, cm_req_t *reqp);
-#endif /* __CM_DCACHE_ENV__ */
+#endif /* OPENAFS_WINNT_AFSD_CM_DCACHE_H */
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef __CM_DIR_ENV__
-#define __CM_DIR_ENV__ 1
+#ifndef OPENAFS_WINNT_AFSD_CM_DIR_H
+#define OPENAFS_WINNT_AFSD_CM_DIR_H 1
/* These data structures are derived from src/dir/dir.h and should not
* be changed as they describe AFS3 wire protocol.
extern afs_uint64 dir_enums;
-#endif /* __CM_DIR_ENV__ */
+#endif /* OPENAFS_WINNT_AFSD_CM_DIR_H */
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef __CM_IOCTL_H_ENV__
-#define __CM_IOCTL_H_ENV__ 1
+#ifndef OPENAFS_WINNT_AFSD_CM_IOCTL_H
+#define OPENAFS_WINNT_AFSD_CM_IOCTL_H 1
#ifndef __CM_IOCTL_INTERFACES_ONLY__
#include "cm_user.h"
#endif /* __CM_IOCTL_INTERFACES_ONLY__ */
-#endif /* __CM_IOCTL_H_ENV__ */
+#endif /* OPENAFS_WINNT_AFSD_CM_IOCTL_H */
* SOFTWARE.
*/
-#ifndef __CM_NLS_H_ENV__
-#define __CM_NLS_H_ENV__
+#ifndef OPENAFS_WINNT_AFSD_CM_NLS_H
+#define OPENAFS_WINNT_AFSD_CM_NLS_H 1
/* Character types
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef __CM_SCACHE_H_ENV__
-#define __CM_SCACHE_H_ENV__ 1
+#ifndef OPENAFS_WINNT_AFSD_CM_SCACHE_H
+#define OPENAFS_WINNT_AFSD_CM_SCACHE_H 1
#define MOUNTPOINTLEN 1024 /* max path length for symlink; same as AFSPATHMAX */
extern void cm_ResetSCacheDirectory(cm_scache_t *scp, afs_int32 locked);
extern cm_scache_t * cm_RootSCachep(cm_user_t *userp, cm_req_t *reqp);
-#endif /* __CM_SCACHE_H_ENV__ */
+#endif /* OPENAFS_WINNT_AFSD_CM_SCACHE_H */
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef __CM_SERVER_H_ENV__
-#define __CM_SERVER_H_ENV__ 1
+#ifndef OPENAFS_WINNT_AFSD_CM_SERVER_H
+#define OPENAFS_WINNT_AFSD_CM_SERVER_H 1
#include <winsock2.h>
#include <osi.h>
extern int cm_NetMtu[CM_MAXINTERFACE_ADDR]; /* client's MTU sizes */
extern int cm_NetFlags[CM_MAXINTERFACE_ADDR]; /* network flags */
extern int cm_LanAdapterChangeDetected;
-#endif /* __CM_SERVER_H_ENV__ */
+#endif /* OPENAFS_WINNT_AFSD_CM_SERVER_H */
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef __CM_USER_H_ENV__
-#define __CM_USER_H_ENV__ 1
+#ifndef OPENAFS_WINNT_AFSD_CM_USER_H
+#define OPENAFS_WINNT_AFSD_CM_USER_H 1
#include <osi.h>
#include <rx/rxkad.h>
extern cm_user_t *cm_rootUserp;
-#endif /* __CM_USER_H_ENV__ */
+#endif /* OPENAFS_WINNT_AFSD_CM_USER_H */
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef __CM_UTILS_H_ENV__
-#define __CM_UTILS_H_ENV__ 1
+#ifndef OPENAFS_WINNT_AFSD_CM_UTILS_H
+#define OPENAFS_WINNT_AFSD_CM_UTILS_H 1
#define CM_UTILS_SPACESIZE 8192 /* space to allocate */
typedef struct cm_space {
extern void cm_utilsCleanup(void);
-#endif /* __CM_UTILS_H_ENV__ */
+#endif /* OPENAFS_WINNT_AFSD_CM_UTILS_H */
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef __CM_VNODEOPS_H_ENV__
-#define __CM_VNODEOPS_H_ENV__ 1
+#ifndef OPENAFS_WINNT_AFSD_CM_VNODEOPS_H
+#define OPENAFS_WINNT_AFSD_CM_VNODEOPS_H 1
extern unsigned int cm_mountRootGen;
extern afs_int32 cm_TryBulkStatRPC(cm_scache_t *dscp, cm_bulkStat_t *bbp,
cm_user_t *userp, cm_req_t *reqp);
-#endif /* __CM_VNODEOPS_H_ENV__ */
+#endif /* OPENAFS_WINNT_AFSD_CM_VNODEOPS_H */
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef __CM_VOLUME_H_ENV__
-#define __CM_VOLUME_H_ENV__ 1
+#ifndef OPENAFS_WINNT_AFSD_CM_VOLUME_H
+#define OPENAFS_WINNT_AFSD_CM_VOLUME_H 1
#define VL_MAXNAMELEN 65
extern afs_int32 cm_VolumeType(cm_volume_t *volp, afs_uint32 id);
extern osi_rwlock_t cm_volumeLock;
-#endif /* __CM_VOLUME_H_ENV__ */
+#endif /* OPENAFS_WINNT_AFSD_CM_VOLUME_H */
#include <afs/param.h>
#include <afs/stds.h>
#include <afs/com_err.h>
+#include <afs/cmd.h>
#include <windows.h>
#include <stdlib.h>
#include "cmd.h"
#include "afsd.h"
#include "cm_ioctl.h"
+#include "parsemode.h"
#define MAXNAME 100
#define MAXINSIZE 1300 /* pioctl complains if data is larger than this */
static struct ubik_client *uclient;
+/* some forward references */
+static void ZapList (struct AclEntry *alist);
+
+static int PruneList (struct AclEntry **ae, int dfs);
+
+static int CleanAcl(struct Acl *aa, char *fname);
+
+static int SetVolCmd(struct cmd_syndesc *as, void *arock);
+
+static int GetCellName(char *cellNamep, struct afsconf_cell *infop);
+
+static int VLDBInit(int noAuthFlag, struct afsconf_cell *infop);
static int GetClientAddrsCmd(struct cmd_syndesc *asp, void *arock);
static int SetClientAddrsCmd(struct cmd_syndesc *asp, void *arock);
static int FlushMountCmd(struct cmd_syndesc *asp, void *arock);
static int RxStatProcCmd(struct cmd_syndesc *asp, void *arock);
static int RxStatPeerCmd(struct cmd_syndesc *asp, void *arock);
-extern struct cmd_syndesc *cmd_CreateSyntax();
-
static int MemDumpCmd(struct cmd_syndesc *asp, void *arock);
static int CSCPolicyCmd(struct cmd_syndesc *asp, void *arock);
static int MiniDumpCmd(struct cmd_syndesc *asp, void *arock);
}
-#define USR_MODES (S_ISUID|S_IRWXU)
-#define GRP_MODES (S_ISGID|S_IRWXG)
-#define EXE_MODES (S_IXUSR|S_IXGRP|S_IXOTH)
-#ifdef S_ISVTX
-#define ALL_MODES (USR_MODES|GRP_MODES|S_IRWXO|S_ISVTX)
-#else
-#define ALL_MODES (USR_MODES|GRP_MODES|S_IRWXO)
-#endif
-
-/*
- * parsemode() is Copyright 1991 by Vincent Archer.
- * You may freely redistribute this software, in source or binary
- * form, provided that you do not alter this copyright mention in any
- * way.
- */
-static afs_uint32
-parsemode(char *symbolic, afs_uint32 oldmode)
-{
- afs_uint32 who, mask, u_mask = 022, newmode, tmpmask;
- char action;
-
- newmode = oldmode & ALL_MODES;
- while (*symbolic) {
- who = 0;
- for (; *symbolic; symbolic++) {
- if (*symbolic == 'a') {
- who |= ALL_MODES;
- continue;
- }
- if (*symbolic == 'u') {
- who |= USR_MODES;
- continue;
- }
- if (*symbolic == 'g') {
- who |= GRP_MODES;
- continue;
- }
- if (*symbolic == 'o') {
- who |= S_IRWXO;
- continue;
- }
- break;
- }
- if (!*symbolic || *symbolic == ',') {
- Die(EINVAL, "invalid mode");
- exit(1);
- }
- while (*symbolic) {
- if (*symbolic == ',')
- break;
- switch (*symbolic) {
- default:
- Die(EINVAL, "invalid mode");
- exit(1);
- case '+':
- case '-':
- case '=':
- action = *symbolic++;
- }
- mask = 0;
- for (; *symbolic; symbolic++) {
- if (*symbolic == 'u') {
- tmpmask = newmode & S_IRWXU;
- mask |= tmpmask | (tmpmask << 3) | (tmpmask << 6);
- symbolic++;
- break;
- }
- if (*symbolic == 'g') {
- tmpmask = newmode & S_IRWXG;
- mask |= tmpmask | (tmpmask >> 3) | (tmpmask << 3);
- symbolic++;
- break;
- }
- if (*symbolic == 'o') {
- tmpmask = newmode & S_IRWXO;
- mask |= tmpmask | (tmpmask >> 3) | (tmpmask >> 6);
- symbolic++;
- break;
- }
- if (*symbolic == 'r') {
- mask |= S_IRUSR | S_IRGRP | S_IROTH;
- continue;
- }
- if (*symbolic == 'w') {
- mask |= S_IWUSR | S_IWGRP | S_IWOTH;
- continue;
- }
- if (*symbolic == 'x') {
- mask |= EXE_MODES;
- continue;
- }
- if (*symbolic == 's') {
- mask |= S_ISUID | S_ISGID;
- continue;
- }
- if (*symbolic == 'X') {
- if (S_ISDIR(oldmode) || (oldmode & EXE_MODES))
- mask |= EXE_MODES;
- continue;
- }
- if (*symbolic == 't') {
- mask |= S_ISVTX;
- who |= S_ISVTX;
- continue;
- }
- break;
- }
- switch (action) {
- case '=':
- if (who)
- newmode &= ~who;
- else
- newmode = 0;
- case '+':
- if (who)
- newmode |= who & mask;
- else
- newmode |= mask & (~u_mask);
- break;
- case '-':
- if (who)
- newmode &= ~(who & mask);
- else
- newmode &= ~mask | u_mask;
- }
- }
- if (*symbolic)
- symbolic++;
- }
- return(newmode);
-}
-
static int
ChModCmd(struct cmd_syndesc *as, void *arock)
return code;
}
-static void
+void
Die(int code, char *filename)
{ /*Die*/
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef __FS_H_ENV__
-#define __FS_H_ENV__ 1
+#ifndef OPENAFS_WINNT_AFSD_FS_H
+#define OPENAFS_WINNT_AFSD_FS_H 1
-/* some forward references */
-static void ZapList (struct AclEntry *alist);
+void Die(int code, char *filename);
-static int PruneList (struct AclEntry **ae, int dfs);
-
-static int CleanAcl(struct Acl *aa, char *fname);
-
-static int SetVolCmd(struct cmd_syndesc *as, void *arock);
-
-static int GetCellName(char *cellNamep, struct afsconf_cell *infop);
-
-static int VLDBInit(int noAuthFlag, struct afsconf_cell *infop);
-
-static void Die(int code, char *filename);
-#endif /* FS_H_ENV */
+#endif /* OPENAFS_WINNT_AFSD_FS_H */
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef __FS_UTILS_H_ENV__
-#define __FS_UTILS_H_ENV__ 1
+#ifndef OPENAFS_WINNT_AFSD_FS_UTILS_H
+#define OPENAFS_WINNT_AFSD_FS_UTILS_H 1
/* pioctl opcode constants */
extern char *cm_slash_mount_root; /*"/afs"*/
extern char *cm_back_slash_mount_root; /*"\\afs"*/
extern void fs_utils_InitMountRoot();
-#endif /* FS_UTILS_H_ENV */
+#endif /* OPENAFS_WINNT_AFSD_FS_UTILS_H */
--- /dev/null
+/*
+ * Copyright 1991 by Vincent Archer.
+ * You may freely redistribute this software, in source or binary
+ * form, provided that you do not alter this copyright mention in any
+ * way.
+ */
+
+#include <afsconfig.h>
+#include <afs/param.h>
+
+#include <stdlib.h>
+#include <sys/stat.h>
+#include <errno.h>
+#include "parsemode.h"
+#include "fs.h"
+
+afs_uint32
+parsemode(char *symbolic, afs_uint32 oldmode)
+{
+ afs_uint32 who, mask, u_mask = 022, newmode, tmpmask;
+ char action;
+
+ newmode = oldmode & ALL_MODES;
+ while (*symbolic) {
+ who = 0;
+ for (; *symbolic; symbolic++) {
+ if (*symbolic == 'a') {
+ who |= ALL_MODES;
+ continue;
+ }
+ if (*symbolic == 'u') {
+ who |= USR_MODES;
+ continue;
+ }
+ if (*symbolic == 'g') {
+ who |= GRP_MODES;
+ continue;
+ }
+ if (*symbolic == 'o') {
+ who |= S_IRWXO;
+ continue;
+ }
+ break;
+ }
+ if (!*symbolic || *symbolic == ',') {
+ Die(EINVAL, "invalid mode");
+ exit(1);
+ }
+ while (*symbolic) {
+ if (*symbolic == ',')
+ break;
+ switch (*symbolic) {
+ default:
+ Die(EINVAL, "invalid mode");
+ exit(1);
+ case '+':
+ case '-':
+ case '=':
+ action = *symbolic++;
+ }
+ mask = 0;
+ for (; *symbolic; symbolic++) {
+ if (*symbolic == 'u') {
+ tmpmask = newmode & S_IRWXU;
+ mask |= tmpmask | (tmpmask << 3) | (tmpmask << 6);
+ symbolic++;
+ break;
+ }
+ if (*symbolic == 'g') {
+ tmpmask = newmode & S_IRWXG;
+ mask |= tmpmask | (tmpmask >> 3) | (tmpmask << 3);
+ symbolic++;
+ break;
+ }
+ if (*symbolic == 'o') {
+ tmpmask = newmode & S_IRWXO;
+ mask |= tmpmask | (tmpmask >> 3) | (tmpmask >> 6);
+ symbolic++;
+ break;
+ }
+ if (*symbolic == 'r') {
+ mask |= S_IRUSR | S_IRGRP | S_IROTH;
+ continue;
+ }
+ if (*symbolic == 'w') {
+ mask |= S_IWUSR | S_IWGRP | S_IWOTH;
+ continue;
+ }
+ if (*symbolic == 'x') {
+ mask |= EXE_MODES;
+ continue;
+ }
+ if (*symbolic == 's') {
+ mask |= S_ISUID | S_ISGID;
+ continue;
+ }
+ if (*symbolic == 'X') {
+ if (S_ISDIR(oldmode) || (oldmode & EXE_MODES))
+ mask |= EXE_MODES;
+ continue;
+ }
+ if (*symbolic == 't') {
+ mask |= S_ISVTX;
+ who |= S_ISVTX;
+ continue;
+ }
+ break;
+ }
+ switch (action) {
+ case '=':
+ if (who)
+ newmode &= ~who;
+ else
+ newmode = 0;
+ case '+':
+ if (who)
+ newmode |= who & mask;
+ else
+ newmode |= mask & (~u_mask);
+ break;
+ case '-':
+ if (who)
+ newmode &= ~(who & mask);
+ else
+ newmode &= ~mask | u_mask;
+ }
+ }
+ if (*symbolic)
+ symbolic++;
+ }
+ return(newmode);
+}
+
--- /dev/null
+/*
+ * Copyright 1991 by Vincent Archer.
+ * You may freely redistribute this software, in source or binary
+ * form, provided that you do not alter this copyright mention in any
+ * way.
+ */
+
+#ifndef OPENAFS_WINNT_AFSD_PARSEMODE_H
+#define OPENAFS_WINNT_AFSD_PARSEMODE_H
+extern afs_uint32 parsemode(char *symbolic, afs_uint32 oldmode);
+
+#define USR_MODES (S_ISUID|S_IRWXU)
+#define GRP_MODES (S_ISGID|S_IRWXG)
+#define EXE_MODES (S_IXUSR|S_IXGRP|S_IXOTH)
+#ifdef S_ISVTX
+#define ALL_MODES (USR_MODES|GRP_MODES|S_IRWXO|S_ISVTX)
+#else
+#define ALL_MODES (USR_MODES|GRP_MODES|S_IRWXO)
+#endif
+
+#endif /* OPENAFS_WINNT_AFSD_PARSEMODE_H */
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef __SMB_H_ENV__
-#define __SMB_H_ENV__ 1
+#ifndef OPENAFS_WINNT_AFSD_SMB_H
+#define OPENAFS_WINNT_AFSD_SMB_H 1
/* #define DEBUG_SMB_REFCOUNT 1 */
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef __SMB3_H_ENV__
-#define __SMB3_H_ENV__ 1
+#ifndef OPENAFS_WINNT_AFSD_SMB3_H
+#define OPENAFS_WINNT_AFSD_SMB3_H 1
typedef struct smb_tran2Packet {
osi_queue_t q; /* queue of all packets */
extern afs_uint32 smb_GetUserSID(HANDLE hToken, PSID *ppsid);
extern void smb_FreeSID (PSID psid);
-#endif /* __SMB3_H_ENV__ */
+#endif /* OPENAFS_WINNT_AFSD_SMB3_H */
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef __SMB_IOCONS_H_ENV_
-#define __SMB_IOCONS_H_ENV_ 1
+#ifndef OPENAFS_WINNT_AFSD_SMB_IOCONS_H
+#define OPENAFS_WINNT_AFSD_SMB_IOCONS_H 1
/* included in both AFSD and fs commands */
#define CM_IOCTL_MAXDATA 8192*2
#define CM_IOCTL_MAXPROCS 64
-#endif /* __SMB_IOCONS_H_ENV_ */
+#endif /* OPENAFS_WINNT_AFSD_SMB_IOCONS_H */
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#ifndef __SMB_IOCTL_H_ENV__
-#define __SMB_IOCTL_H_ENV__ 1
+#ifndef OPENAFS_WINNT_AFSD_SMB_IOCTL_H
+#define OPENAFS_WINNT_AFSD_SMB_IOCTL_H 1
#include <cm_ioctl.h>
#include <smb_iocons.h>
extern afs_int32 smb_IoctlSetUnixMode(struct smb_ioctl *ioctlp, struct cm_user *userp, afs_uint32 flags);
-#endif /* __SMB_IOCTL_H_ENV__ */
+#endif /* OPENAFS_WINNT_AFSD_SMB_IOCTL_H */
/* Copyright (C) 1994 Cazamar Systems, Inc. */
-#ifndef __BASIC_H_ENV_
-#define __BASIC_H_ENV_ 1
+#ifndef OPENAFS_WINNT_CLIENT_OSI_BASIC_H
+#define OPENAFS_WINNT_CLIENT_OSI_BASIC_H 1
extern int main_BasicTest(HANDLE);
-#endif /* __BASIC_H_ENV_ */
+#endif /* OPENAFS_WINNT_CLIENT_OSI_BASIC_H */
/* Copyright (C) 1994 Cazamar Systems, Inc. */
-#ifndef _OSI_H_ENV_
-#define _OSI_H_ENV_ 1
+#ifndef OPENAFS_WINNT_CLIENT_OSI_OSI_H
+#define OPENAFS_WINNT_CLIENT_OSI_OSI_H 1
#include <afs/param.h>
/* log stuff */
#include "osilog.h"
-#endif /*_OSI_H_ENV_ */
+#endif /* OPENAFS_WINNT_CLIENT_OSI_OSI_H */
/* Copyright (C) 1994 Cazamar Systems, Inc. */
-#ifndef _OSIBASEL_H_ENV_
-#define _OSIBASEL_H_ENV_ 1
+#ifndef OPENAFS_WINNT_CLIENT_OSI_OSIBASEL_H
+#define OPENAFS_WINNT_CLIENT_OSI_OSIBASEL_H 1
/* flags for osi_mutex_t and osi_rwlock_t flags fields. Some bits
* are used only in one structure or another.
#define lock_AssertMutex(x) osi_assertx(lock_GetMutexState(x) & OSI_MUTEX_HELD, "!OSI_MUTEX_HELD")
-#endif /*_OSIBASEL_H_ENV_ */
+#endif /* OPENAFS_WINNT_CLIENT_OSI_OSIBASEL_H */
/* Copyright (C) 1994 Cazamar Systems, Inc. */
-#ifndef __OSIDB_H_ENV_
-#define __OSIDB_H_ENV_ 1
+#ifndef OPENAFS_WINNT_CLIENT_OSI_OSIDB_H
+#define OPENAFS_WINNT_CLIENT_OSI_OSIDB_H 1
/* mapped over remote debugging integer array for rwlock and mutexes
* mutexes only have writers
/* use this from outside of the OSI package */
extern long *osi_maxCallsp;
-#endif /* __OSIDB_H_ENV_ */
+#endif /* OPENAFS_WINNT_CLIENT_OSI_OSIDB_H */
/* Copyright (C) 1994 Cazamar Systems, Inc. */
-#ifndef _OSIFD_H_ENV_
-#define _OSIFD_H_ENV_ 1
+#ifndef OPENAFS_WINNT_CLIENT_OSI_OSIFD_H
+#define OPENAFS_WINNT_CLIENT_OSI_OSIFD_H 1
#include "dbrpc.h"
#include "osiqueue.h"
extern long osi_FDTypeClose(osi_fd_t *);
-#endif /* _OSIFD_H_ENV_ */
+#endif /* OPENAFS_WINNT_CLIENT_OSI_OSIFD_H */
/* Copyright (C) 1994 Cazamar Systems, Inc. */
-#ifndef _OSILTYPE_H_ENV_
-#define _OSILTYPE_H_ENV_ 1
+#ifndef OPENAFS_WINNT_CLIENT_OSI_OSILTYPE_H
+#define OPENAFS_WINNT_CLIENT_OSI_OSILTYPE_H 1
/* number of dynamic lock types we permit */
#define OSI_NLOCKTYPES 32 /* should be enough */
#define OSI_RWLOCK_READHELD 1 /* locked for read */
#define OSI_RWLOCK_WRITEHELD 2 /* locked for write */
-#endif /* _OSILTYPE_H_ENV_ */
+#endif /* OPENAFS_WINNT_CLIENT_OSI_OSILTYPE_H */
/* Copyright (C) 1994 Cazamar Systems, Inc. */
-#ifndef _OSI_QUEUE_H_ENV_
-#define _OSI_QUEUE_H_ENV_ 1
+#ifndef OPENAFS_WINNT_CLIENT_OSI_OSI_QUEUE_H
+#define OPENAFS_WINNT_CLIENT_OSI_OSI_QUEUE_H 1
/* this package implements a doubly linked queue of elements.
* Each element starts with an osi_queue_t element.
/* find out if a queue is empty */
#define osi_QIsEmpty(x) ((*x) == ((osi_queue_t *) 0))
-#endif /* _OSI_QUEUE_H_ENV_ */
+#endif /* OPENAFS_WINNT_CLIENT_OSI_OSI_QUEUE_H */
/* Copyright (C) 1994 Cazamar Systems, Inc. */
-#ifndef _OSISLEEP_H_ENV_
-#define _OSISLEEP_H_ENV_ 1
+#ifndef OPENAFS_WINNT_CLIENT_OSI_OSISLEEP_H
+#define OPENAFS_WINNT_CLIENT_OSI_OSISLEEP_H 1
/*#include "osi.h"*/
#include "osifd.h"
#define osi_TEmpty(t) ((t)->firstp == NULL)
-#endif /*_OSISLEEP_H_ENV_ */
+#endif /* OPENAFS_WINNT_CLIENT_OSI_OSISLEEP_H */
/* Copyright (C) 1994 Cazamar Systems, Inc. */
-#ifndef _OSISTATL_H_ENV_
-#define _OSISTATL_H_ENV_ 1
+#ifndef OPENAFS_WINNT_CLIENT_OSI_OSISTATL_H
+#define OPENAFS_WINNT_CLIENT_OSI_OSISTATL_H 1
#include "osibasel.h"
#if !defined(_MSC_VER) || (_MSC_VER < 1300)
extern void osi_SetWatchProc(long ms, osi_watchProc_t *procp, void *rockp);
-#endif /*_OSISTATL_H_ENV_ */
+#endif /* OPENAFS_WINNT_CLIENT_OSI_OSISTATL_H */
/* Copyright (C) 1994 Cazamar Systems, Inc. */
-#ifndef _OSIUTILS_H_ENV_
-#define _OSIUTILS_H_ENV_ 1
+#ifndef OPENAFS_WINNT_CLIENT_OSI_OSIUTILS_H
+#define OPENAFS_WINNT_CLIENT_OSI_OSIUTILS_H 1
extern int osi_UIDCmp(UUID *uid1, UUID *uid2);
extern void osi_LongToUID(long inval, UUID *outuidp);
-#endif /*_OSIUTILS_H_ENV_ */
+#endif /* OPENAFS_WINNT_CLIENT_OSI_OSIUTILS_H */
/* Copyright (C) 1994 Cazamar Systems, Inc. */
-#ifndef __PERF_H_ENV_
-#define __PERF_H_ENV_ 1
+#ifndef OPENAFS_WINNT_CLIENT_OSI_PERF_H
+#define OPENAFS_WINNT_CLIENT_OSI_PERF_H 1
extern int main_PerfTest(HANDLE);
-#endif /* __PERF_H_ENV_ */
+#endif /* OPENAFS_WINNT_CLIENT_OSI_PERF_H */
/* Copyright (C) 1994 Cazamar Systems, Inc. */
-#ifndef __TRYLOCK_H_ENV_
-#define __TRYLOCK_H_ENV_ 1
+#ifndef OPENAFS_WINNT_CLIENT_OSI_TRYLOCK_H
+#define OPENAFS_WINNT_CLIENT_OSI_TRYLOCK_H 1
extern int main_TryLockTest(HANDLE);
-#endif /* __TRYLOCK_H_ENV_ */
+#endif /* OPENAFS_WINNT_CLIENT_OSI_TRYLOCK_H */
#define S_ISVTX 0001000
#endif
-#ifndef S_IFMT
-#define S_IFMT 0170000
-#define S_IFDIR 0040000
-#endif
-
#ifndef S_ISDIR
#define S_ISDIR(m) (((m)&(S_IFMT)) == (S_IFDIR))
#endif