Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / butc / error_macros.h
CommitLineData
805e021f
CE
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
25extern void ErrorLog(int debug, afs_int32 task, afs_int32 error1,
26 afs_int32 error2, char *fmt, ...)
27 AFS_ATTRIBUTE_FORMAT(__printf__, 5, 6);
28
29extern void TapeLog(int debug, afs_int32 task, afs_int32 error1,
30 afs_int32 error2, char *fmt, ...)
31 AFS_ATTRIBUTE_FORMAT(__printf__, 5, 6);
32
33extern void TLog(afs_int32 task, char *fmt, ...)
34 AFS_ATTRIBUTE_FORMAT(__printf__, 2, 3);
35
36extern void FreeNode(afs_int32 taskID);
37extern void CreateNode(struct dumpNode **newNode);
38extern void LeaveDeviceQueue(struct deviceSyncNode *devLatch);
39extern void EnterDeviceQueue(struct deviceSyncNode *devLatch);
40extern Date ExpirationDate(afs_int32 dumpid);
41extern void InitNodeList(afs_int32 portOffset);
42
43/* bucoord/status.c */
44extern void clearStatus(afs_uint32 taskId, afs_uint32 flags);
45extern void setStatus(afs_uint32 taskId, afs_uint32 flags);