if we're gonna clean up...
Change-Id: I5ab03f29468577b62dacab41a67eadfd8c43f812
Reviewed-on: http://gerrit.openafs.org/2463
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
#define JAFSADMMETHODNOTFOUND 1052 // Trouble finding a Java method
#define JAFSADMFIELDNOTFOUND 1053 // Trouble finding a Java field
-// make an identity out of a full name (possibly including an instance )
+// make an identity out of a full name (possibly including an instance )
void internal_makeKasIdentity( const char *fullName, kas_identity_p who );
void internal_getUserClass( JNIEnv *env, jobject user );
// throw an exception with an error code
void throwException( JNIEnv *env, jclass *excCls, char *excClsName, jmethodID *initID, int code );
-// reclaim global memory used by exceptions
+// reclaim global memory used by exceptions
void reclaimExceptionMemory( JNIEnv *env, jclass cls );
int setError(JNIEnv *env, jobject *obj, int code);
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
#define IDC_STATIC -1
#define IDS_INSTALLATION_FAILURE 0
-#define IDS_SCM_OPEN_FAILED 1
-#define IDS_SERVICE_CREATE_FAILED 2
-#define IDS_SERVICE_OPEN_FAILED 3
-#define IDS_SERVICE_QUERY_FAILED 4
-#define IDS_SERVICE_STOP_FAILED 5
-#define IDS_SERVICE_DELETE_FAILED 6
-#define IDS_REG_DELETE_VALUE_ERROR 7
-#define IDS_SERVICE_ENABLE_FAILED 8
-#define IDS_OLE_DLL_INSTALL_FAILED 9
+#define IDS_SCM_OPEN_FAILED 1
+#define IDS_SERVICE_CREATE_FAILED 2
+#define IDS_SERVICE_OPEN_FAILED 3
+#define IDS_SERVICE_QUERY_FAILED 4
+#define IDS_SERVICE_STOP_FAILED 5
+#define IDS_SERVICE_DELETE_FAILED 6
+#define IDS_REG_DELETE_VALUE_ERROR 7
+#define IDS_SERVICE_ENABLE_FAILED 8
+#define IDS_OLE_DLL_INSTALL_FAILED 9
#define IDS_OLE_DLL_UNINSTALL_FAILED 10
#define IDS_EXTENSION_DLL_UNINSTALL_FAILED 11
#define IDS_EXTENSION_DLL_INSTALL_FAILED 12
#define IDS_PRESERVE_LIGHT_CLIENT_CONFIG_INFO 32
#define IDS_PRESERVE_CC_CONFIG_INFO 33
-
+
#define IDD_LICENSE 36
#define IDC_LOGO 1000
#define IDC_MSG 1001
#define IDI_SPINSTOP 20009
// Next default values for new objects
-//
+//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 37
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
#define IDI_MAIN 102
// Next default values for new objects
-//
+//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NO_MFC 1
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
// take a few moments and examine their headers individually to
// see what they can do for your application.
//
- // Each header is associated with one source file, and each pair
- // can easily (well, hopefully easily) be copied off to other
+ // Each header is associated with one source file, and each pair
+ // can easily (well, hopefully easily) be copied off to other
// applications.
//
#include <WINNT/hashlist.h> // general-purpose list management code
* TranslateMessage (&msg);
* DispatchMessage (&msg);
* }
- *
+ *
* An equivalent technique is:
*
* AfsAppLib_MainPump();
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* PROGRESS DIALOGS ___________________________________________________________
*
- * The PROGRESSDISPLAY object is probably one of the most esoteric
+ * The PROGRESSDISPLAY object is probably one of the most esoteric
* utilities in this library. It provides a convenient way to package
* up a background thread, and associate it with a dialog telling the user
* what's going on. It sounds a little hokey, and honestly isn't that
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
#define IDC_STATIC -1
// Next default values for new objects
-//
+//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NO_MFC 1
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
#define WC_CHECKLIST TEXT("OpenAFS_CheckList")
-#define LB_GETCHECK (WM_USER+300) // int iItem=wp
+#define LB_GETCHECK (WM_USER+300) // int iItem=wp
#define LB_SETCHECK (WM_USER+301) // int iItem=wp, BOOL fChecked=lp
#define LBN_CLICKED BN_CLICKED
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
- *** COMMDLG
+ *** COMMDLG
*
*/
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
* struct {
* NMHDR hdr;
* // window- and message-specific elements ...
- * }
+ * }
* Thus, by casing the LPARAM value to LPNMHDR, information about the
* notification can be obtained from any notification structure.
* If a notification message is handled, the handler must return TRUE.
// HLISTITEM FastList_FindPrevious (HWND hList, HLISTITEM hItem)
//
#define FastList_FindFirst(_hList) \
- FastList_FindList(_hList,0,FLM_FINDLIST_FIRST)
+ FastList_FindList(_hList,0,FLM_FINDLIST_FIRST)
#define FastList_FindNext(_hList,_hItem) \
- FastList_FindList(_hList,_hItem,FLM_FINDLIST_NEXT)
+ FastList_FindList(_hList,_hItem,FLM_FINDLIST_NEXT)
#define FastList_FindPrevious(_hList,_hItem) \
- FastList_FindList(_hList,_hItem,FLM_FINDLIST_PREVIOUS)
+ FastList_FindList(_hList,_hItem,FLM_FINDLIST_PREVIOUS)
#define FastList_FindList(_hList,_hItem,_dwCode) \
(HLISTITEM)SendMessage (_hList, FLM_FINDLIST, (WPARAM)(_hItem), (LPARAM)(_dwCode))
#define FLM_FINDLIST (FLM_FIRST + 0x001D)
// HLISTITEM FastList_FindNextSibling (HWND hList, HLISTITEM hItem)
//
#define FastList_FindFirstInRoot(_hList) \
- FastList_FindTree(_hList,0,FLM_FINDTREE_CHILD)
+ FastList_FindTree(_hList,0,FLM_FINDTREE_CHILD)
#define FastList_FindParent(_hList,_hItem) \
- FastList_FindTree(_hList,_hItem,FLM_FINDTREE_PARENT)
+ FastList_FindTree(_hList,_hItem,FLM_FINDTREE_PARENT)
#define FastList_FindFirstChild(_hList,_hItem) \
- FastList_FindTree(_hList,_hItem,FLM_FINDTREE_CHILD)
+ FastList_FindTree(_hList,_hItem,FLM_FINDTREE_CHILD)
#define FastList_FindPreviousSibling(_hList,_hItem) \
- FastList_FindTree(_hList,_hItem,FLM_FINDTREE_PREVIOUS)
+ FastList_FindTree(_hList,_hItem,FLM_FINDTREE_PREVIOUS)
#define FastList_FindNextSibling(_hList,_hItem) \
- FastList_FindTree(_hList,_hItem,FLM_FINDTREE_NEXT)
+ FastList_FindTree(_hList,_hItem,FLM_FINDTREE_NEXT)
#define FastList_FindTree(_hList,_hItem,_dwCode) \
(HLISTITEM)SendMessage (_hList, FLM_FINDTREE, (WPARAM)(_hItem), (LPARAM)(_dwCode))
#define FLM_FINDTREE (FLM_FIRST + 0x001E)
// HLISTITEM FastList_FindNextSelected (HWND hList, HLISTITEM hItemPrevious)
//
#define FastList_FindFirstSelected(_hList) \
- FastList_FindNextSelected(_hList,0)
+ FastList_FindNextSelected(_hList,0)
#define FastList_FindNextSelected(_hList,_hItem) \
(HLISTITEM)SendMessage (_hList, FLM_FINDSELECTED, (WPARAM)(_hItem), 0)
#define FLM_FINDSELECTED (FLM_FIRST + 0x001F)
#define FastList_FindNextItem(_hList,_ppEnum) \
(HLISTITEM)SendMessage (_hList, FLM_FINDNEXTITEM, (WPARAM)(_ppEnum), 0)
#define FastList_FindClose(_hList,_ppEnum) \
- (void)SendMessage (_hList, FLM_FINDCLOSE, (WPARAM)(_ppEnum), 0)
+ (void)SendMessage (_hList, FLM_FINDCLOSE, (WPARAM)(_ppEnum), 0)
#define FLM_FINDITEM (FLM_FIRST + 0x0020)
#define FLM_FINDNEXTITEM (FLM_FIRST + 0x0021)
#define FLM_FINDCLOSE (FLM_FIRST + 0x0022)
// HLISTITEM FastList_FindNextVisible (HWND hList, HLISTITEM hItem)
//
#define FastList_FindFirstVisible(_hList) \
- FastList_FindVisible(_hList,0,FLM_FINDVISIBLE_FIRST)
+ FastList_FindVisible(_hList,0,FLM_FINDVISIBLE_FIRST)
#define FastList_FindNextVisible(_hList,_hItem) \
- FastList_FindVisible(_hList,_hItem,FLM_FINDVISIBLE_NEXT)
+ FastList_FindVisible(_hList,_hItem,FLM_FINDVISIBLE_NEXT)
#define FastList_FindVisible(_hList,_hItem,_dwCode) \
(HLISTITEM)SendMessage (_hList, FLM_FINDVISIBLE, (WPARAM)(_hItem), (LPARAM)(_dwCode))
#define FLM_FINDVISIBLE (FLM_FIRST + 0x0024)
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
* // Find all objects with 473 as a dwKey element. Since we're walking the
* // whole list, the ENUMERATION object will be deleted automatically.
*
- * for (LPENUM pEnum = pKey->FindFirst (&dwKeyFind); pEnum; pEnum = pEnum->FindNext())
+ * for (LPENUM pEnum = pKey->FindFirst (&dwKeyFind); pEnum; pEnum = pEnum->FindNext())
* {
* OBJECT *pObj = (OBJECT*)(pEnum->GetObject());
* printf ("%s", pObj->szText);
* // to free the ENUMERATION object explicitly.
*
* LPENUM pEnum;
- * if ((pEnum = pKey->FindFirst (&dwKeyFind)) != NULL)
+ * if ((pEnum = pKey->FindFirst (&dwKeyFind)) != NULL)
* {
* hl.Remove (pEnum->GetObject());
* delete pEnum;
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
//
// AFSD_FLUSHVOL.H
-//
+//
// Include file for routines that handle flushing AFS volumes
// in response to System Power event notification such as
// Hibernate request.
#include <Winnetwk.h>
#include "fs_utils.h"
-// handles
+// handles
typedef struct _tagFLUSHVOLTHREADINFO {
HANDLE hEventPowerEvent;
HANDLE hEventResumeMain;
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
* Copyright (c) 2004, 2005, 2006, 2007 Secure Endpoints Inc.
* Copyright (c) 2003 SkyRope, LLC
* All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
+ *
+ * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
- *
- * - Redistributions of source code must retain the above copyright notice,
+ *
+ * - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
- * - Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
+ * - Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
- * - Neither the name of Skyrope, LLC nor the names of its contributors may be
- * used to endorse or promote products derived from this software without
+ * - Neither the name of Skyrope, LLC nor the names of its contributors may be
+ * used to endorse or promote products derived from this software without
* specific prior written permission from Skyrope, LLC.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
* Copyright (c) 2004, 2005, 2006 Secure Endpoints Inc.
* Copyright (c) 2003 SkyRope, LLC
* All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
+ *
+ * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
- *
- * - Redistributions of source code must retain the above copyright notice,
+ *
+ * - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
- * - Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
+ * - Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
- * - Neither the name of Skyrope, LLC nor the names of its contributors may be
- * used to endorse or promote products derived from this software without
+ * - Neither the name of Skyrope, LLC nor the names of its contributors may be
+ * used to endorse or promote products derived from this software without
* specific prior written permission from Skyrope, LLC.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
int KFW_AFS_destroy_tickets_for_cell(char *);
int KFW_AFS_destroy_tickets_for_principal(char *);
int KFW_AFS_renew_expiring_tokens(void);
-int KFW_AFS_get_cred( char * username,
+int KFW_AFS_get_cred( char * username,
char * cell,
char * password,
int lifetime,
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
#define LOCK_HIERARCHY_SERVER 640
#define LOCK_HIERARCHY_CALLBACK_GLOBAL 645
#define LOCK_HIERARCHY_SERVER_GLOBAL 650
-#define LOCK_HIERARCHY_CONN 660
+#define LOCK_HIERARCHY_CONN 660
#define LOCK_HIERARCHY_VOLUME_GLOBAL 670
#define LOCK_HIERARCHY_DNLC_GLOBAL 690
#define LOCK_HIERARCHY_FREELANCE_GLOBAL 700
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
*/
typedef struct cm_aclent {
osi_queue_t q; /* for quick removal from LRUQ */
- afs_uint32 magic;
+ afs_uint32 magic;
struct cm_aclent *nextp; /* next guy same vnode */
struct cm_scache *backp; /* back ptr to vnode */
struct cm_user *userp; /* user whose access is cached */
-/*
- * Copyright 2007 Secure Endpoints Inc.
- *
+/*
+ * Copyright 2007 Secure Endpoints Inc.
+ *
* All Rights Reserved.
*
* This software has been released under the terms of the IBM Public
cm_direnum_entry_t entry[1];
} cm_direnum_t;
-long cm_BPlusDirEnumerate(cm_scache_t *dscp, cm_user_t *userp, cm_req_t *reqp,
+long cm_BPlusDirEnumerate(cm_scache_t *dscp, cm_user_t *userp, cm_req_t *reqp,
afs_uint32 locked, clientchar_t *maskp, afs_uint32 fetchStatus, cm_direnum_t **enumpp);
long cm_BPlusDirNextEnumEntry(cm_direnum_t *enump, cm_direnum_entry_t **entrypp);
long cm_BPlusDirPeekNextEnumEntry(cm_direnum_t *enump, cm_direnum_entry_t **entrypp);
/************ Accessor Macros *****************************************/
-
+
/* low level definition of Nptr value usage */
#define nAdr(n) (n)->X
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
char *datap; /* data in this buffer */
afs_uint32 error; /* last error code, if CM_BUF_ERROR is set */
cm_user_t *userp; /* user who wrote to the buffer last */
-
+
/* fields added for the CM; locked by scp->mx */
afs_uint64 dataVersion; /* data version of this page */
afs_uint32 cmFlags; /* flags for cm */
extern cm_buf_t *buf_Find(struct cm_scache *, osi_hyper_t *);
extern cm_buf_t *buf_FindAllLocked(struct cm_scache *, osi_hyper_t *, afs_uint32 flags);
-
+
extern cm_buf_t *buf_FindAll(struct cm_scache *, osi_hyper_t *, afs_uint32 flags);
-
+
extern long buf_GetNewLocked(struct cm_scache *, osi_hyper_t *, cm_req_t *, cm_buf_t **);
extern long buf_Get(struct cm_scache *, osi_hyper_t *, cm_req_t *, cm_buf_t **);
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
#define CM_CELL_MAGIC ('C' | 'E' <<8 | 'L'<<16 | 'L'<<24)
/* a cell structure */
-typedef struct cm_cell {
+typedef struct cm_cell {
afs_uint32 magic;
afs_int32 cellID; /* cell ID */
struct cm_cell *allNextp; /* locked by cm_cellLock */
extern void cm_RemoveCellFromIDHashTable(cm_cell_t *cellp);
-extern long cm_AddCellProc(void *rockp, struct sockaddr_in *addrp, char *namep,
+extern long cm_AddCellProc(void *rockp, struct sockaddr_in *addrp, char *namep,
unsigned short ipRank);
extern cm_cell_t *cm_UpdateCell(cm_cell_t * cp, afs_uint32 flags);
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
cm_enumCellProc_t *procp,
void *rockp);
-extern long cm_SearchCellRegistry(afs_uint32 client,
+extern long cm_SearchCellRegistry(afs_uint32 client,
char *cellNamep, char *newCellNamep,
char *linkedNamep,
cm_configProc_t *procp, void *rockp);
-extern long cm_EnumerateCellRegistry(afs_uint32 client,
+extern long cm_EnumerateCellRegistry(afs_uint32 client,
cm_enumCellProc_t *procp,
void *rockp);
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
extern unsigned short ConnDeadtimeout;
extern unsigned short HardDeadtimeout;
-extern DWORD RDRtimeout;
+extern DWORD RDRtimeout;
typedef struct cm_conn {
struct cm_conn *nextp; /* locked by cm_connLock */
#define CM_CONN_FLAG_FORCE_NEW 1
-/*
+/*
* structure used for tracking RPC progress
- * and for passing path info from the smb layer
+ * and for passing path info from the smb layer
* to the cache manager functions.
*/
typedef struct cm_req {
#define VSALVAGE 101 /* Volume needs salvage */
#define VNOVNODE 102 /* Bad vnode number quoted */
-#define VNOVOL 103 /* Volume not attached, doesn't exist,
+#define VNOVOL 103 /* Volume not attached, doesn't exist,
not created or not online */
#define VVOLEXISTS 104 /* Volume already exists */
#define VNOSERVICE 105 /* Volume is not in service (i.e. it's
* vos examine to find out the current
* restrictions. */
-#define VRESTARTING -100 /* server is restarting, otherwise similar to
+#define VRESTARTING -100 /* server is restarting, otherwise similar to
VBUSY above. This is negative so that old
cache managers treat it as "server is down"*/
extern long cm_ConnFromFID(struct cm_fid *, struct cm_user *, struct cm_req *,
cm_conn_t **);
-extern long cm_ConnFromVolume(struct cm_volume *volp, unsigned long volid,
+extern long cm_ConnFromVolume(struct cm_volume *volp, unsigned long volid,
struct cm_user *userp, cm_req_t *reqp,
cm_conn_t **connpp);
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
osi_hyper_t offset; /* offset of buffers */
long length; /* # of bytes to be transferred */
int reserved; /* did we reserve multiple buffers? */
-
+
/* all of these buffers are held */
osi_queueData_t *bufListp; /* list of buffers involved in I/O */
osi_queueData_t *bufListEndp; /* list of buffers involved in I/O */
struct cm_user *userp);
extern void cm_ConsiderPrefetch(cm_scache_t *scp, osi_hyper_t *offsetp,
- afs_uint32 count,
+ afs_uint32 count,
cm_user_t *userp, cm_req_t *reqp);
extern long cm_ValidateDCache(void);
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
#ifndef __CM_DIR_ENV__
#define __CM_DIR_ENV__ 1
-/* These data structures are derived from src/dir/dir.h and should not
+/* These data structures are derived from src/dir/dir.h and should not
* be changed as they describe AFS3 wire protocol.
*
*/
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
unsigned int key;
struct nc *next, *prev;
cm_scache_t *dirp, *vp;
- normchar_t name[CM_AFSNCNAMESIZE];
+ normchar_t name[CM_AFSNCNAMESIZE];
} cm_nc_t;
typedef struct {
int getAFSServerW(const cm_unichar_t *service, const cm_unichar_t *protocol, const cm_unichar_t *cellName,
unsigned short afsdbPort,
int *cellHostAddrs,
- cm_unichar_t cellHostNames[][MAXHOSTCHARS],
+ cm_unichar_t cellHostNames[][MAXHOSTCHARS],
unsigned short ports[],
unsigned short ipRanks[],
int *numServers, int *ttl);
-/* a supplement for the DJGPP gethostbyname ... which
+/* a supplement for the DJGPP gethostbyname ... which
never bothers calling a DNS server ... so this function
takes care of that. This should be called when you
failed with gethostbyname (as that WILL check for
#define DNS_RRCLASS_HS 4 // Hesiod
#define DNS_RRCLASS_WILD 255 // WildCard - all classes
-/*
+/*
* DNS AFSDB Resource Data Field
*/
typedef struct dns_afsdb_rr_hdr
#define DNS_AFSDB_RR_HDR_LEN sizeof(DNS_AFSDB_RR_HDR)
-/*
+/*
* DNS A Resource Data Field
*/
typedef struct dns_a_rr_hdr
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
unsigned short rank;
} cm_SPref_t;
-typedef struct cm_SPrefRequest {
+typedef struct cm_SPrefRequest {
unsigned short offset;
unsigned short num_servers;
unsigned short flags;
char *outDatap; /* output results assembled so far */
char *outAllocp; /* output results assembled so far */
afs_uint32 outCopied; /* # of output bytes copied back so far
-
+
/* flags */
afs_uint32 flags;
} cm_ioctl_t;
#define CM_IOCTLFLAG_DATAOUT 8 /* sending data from server to client */
-/*
+/*
* The cm_IoctlQueryOptions structure is designed to be extendible.
- * None of the fields are required but when specified
- * by the client and understood by the server will be
+ * None of the fields are required but when specified
+ * by the client and understood by the server will be
* used to more precisely specify the desired data.
*
- * size must be set to the size of the structure
+ * size must be set to the size of the structure
* sent by the client including any variable length
* data appended to the end of the static structure.
*
* been filled in and should be used.
*
* variable length data can be specified with fields
- * that include offsets to data appended to the
+ * that include offsets to data appended to the
* structure.
*
* when adding new fields you must:
*
* It is critical that flags be consistent across all
* implementations of the pioctl interface for a given
- * platform. This should be considered a public
+ * platform. This should be considered a public
* interface used by third party application developers.
*/
typedef struct cm_IoctlQueryOptions {
- afs_uint32 size;
+ afs_uint32 size;
afs_uint32 field_flags;
afs_uint32 literal;
cm_fid_t fid;
/*
* Copyright 2004, Secure Endpoints Inc.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
afs_uint32 dirty;
cm_volume_t * volumeBaseAddress;
- cm_cell_t * cellBaseAddress;
+ cm_cell_t * cellBaseAddress;
cm_aclent_t * aclBaseAddress;
cm_scache_t * scacheBaseAddress;
cm_nc_t * dnlcBaseAddress;
cm_nc_t * ncfreelist;
cm_nc_t * nameCache;
- cm_nc_t ** nameHash;
+ cm_nc_t ** nameHash;
cm_buf_t * buf_freeListp;
cm_buf_t * buf_freeListEndp;
extern __out_ecount_full_z(*pcch_dest) __checkReturn __success(return != NULL) cm_utf8char_t *
cm_Utf16ToUtf8Alloc
(__in_ecount(cch_src) const cm_unichar_t * s,
- int cch_src,
+ int cch_src,
__out_ecount_full_opt(1) int *pcch_dest);
extern __out_ecount_full_z(*pcch_dest) __checkReturn __success(return != NULL) cm_unichar_t *
-/*
+/*
* Copyright (c) 2008 - Secure Endpoints Inc.
*/
-/*
- * The performance module when activated collects
- * data necessary to analyze the usage of the cache
+/*
+ * The performance module when activated collects
+ * data necessary to analyze the usage of the cache
* manager and establish recommendations for future
- * cache manager configuration changes.
+ * cache manager configuration changes.
*
- * As a starting point, the package will collect
+ * As a starting point, the package will collect
* a list of all FIDs accessed during the session
* which will be used to periodically analyzed the
* contents of the cm_buf_t, cm_scache_t, cm_volume_t
- * and cm_cell_t pools.
+ * and cm_cell_t pools.
*/
#define CM_FIDSTATS_FLAG_HAVE_SCACHE 0x01 /* set if cm_scache_t present */
#define CM_FIDSTATS_FLAG_HAVE_VOLUME 0x02 /* set on (vnode = 1) if cm_vol_t present */
#define CM_FIDSTATS_FLAG_RO 0x04
-#define CM_FIDSTATS_FLAG_PURERO 0x08
-#define CM_FIDSTATS_FLAG_CALLBACK 0x10
+#define CM_FIDSTATS_FLAG_PURERO 0x08
+#define CM_FIDSTATS_FLAG_CALLBACK 0x10
extern void cm_PerformanceTuningCheck(void);
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
cm_scacheLock] */
osi_queue_t fileq; /* per-file list of locks [protected
by scp->rw]*/
-
+
cm_user_t *userp; /* The user to which this lock belongs
to [immutable; held] */
cm_scache_t *scp; /* The scache to which this lock
* by the file server in the most
* recent fetch status.
*/
-
+
/* bulk stat progress */
osi_hyper_t bulkStatProgress; /* track bulk stats of large dirs */
* in old info.
*/
#define CM_MERGEFLAG_STOREDATA 2 /* Merge due to storedata op */
-#define CM_MERGEFLAG_DIROP 4 /* Merge due to directory op */
+#define CM_MERGEFLAG_DIROP 4 /* Merge due to directory op */
/* hash define. Must not include the cell, since the callback revocation code
* doesn't necessarily know the cell in the case of a multihomed server
extern void cm_SyncOpDone(cm_scache_t *, struct cm_buf *, afs_uint32);
-extern void cm_MergeStatus(cm_scache_t * dscp, cm_scache_t * scp,
- struct AFSFetchStatus * statusp,
+extern void cm_MergeStatus(cm_scache_t * dscp, cm_scache_t * scp,
+ struct AFSFetchStatus * statusp,
struct AFSVolSync * volsyncp,
- struct cm_user *userp,
+ struct cm_user *userp,
cm_req_t *reqp,
afs_uint32 flags);