Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / butc / error_macros.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 #define ERROR_EXIT(evalue) do { \
11 code = evalue; \
12 goto error_exit; \
13 } while (0)
14
15 #define ERROR_EXIT2(evalue) do { \
16 code = evalue; \
17 goto error_exit2; \
18 } while (0)
19
20 #define ABORT_EXIT(evalue) do { \
21 code = evalue; \
22 goto abort_exit; \
23 } while (0)
24
25 extern void ErrorLog(int debug, afs_int32 task, afs_int32 error1,
26 afs_int32 error2, char *fmt, ...)
27 AFS_ATTRIBUTE_FORMAT(__printf__, 5, 6);
28
29 extern void TapeLog(int debug, afs_int32 task, afs_int32 error1,
30 afs_int32 error2, char *fmt, ...)
31 AFS_ATTRIBUTE_FORMAT(__printf__, 5, 6);
32
33 extern void TLog(afs_int32 task, char *fmt, ...)
34 AFS_ATTRIBUTE_FORMAT(__printf__, 2, 3);
35
36 extern void FreeNode(afs_int32 taskID);
37 extern void CreateNode(struct dumpNode **newNode);
38 extern void LeaveDeviceQueue(struct deviceSyncNode *devLatch);
39 extern void EnterDeviceQueue(struct deviceSyncNode *devLatch);
40 extern Date ExpirationDate(afs_int32 dumpid);
41 extern void InitNodeList(afs_int32 portOffset);
42
43 /* bucoord/status.c */
44 extern void clearStatus(afs_uint32 taskId, afs_uint32 flags);
45 extern void setStatus(afs_uint32 taskId, afs_uint32 flags);