2 * Copyright 2000, International Business Machines Corporation and others.
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
10 #include <afsconfig.h>
11 #include <afs/param.h>
16 #include <afs/afs_Admin.h>
17 #include <afs/afs_utilAdmin.h>
18 #include <afs/afs_clientAdmin.h>
21 main(int argc
, char **argv
)
27 fprintf(stderr
, "Usage is: %s [<code>]+\n", argv
[0]);
31 if (!afsclient_Init(&status
)) {
32 fprintf(stderr
, "Unable to initialize error tables\n");
36 for (i
= 1; i
< argc
; i
++) {
38 afs_status_t errStatus
;
40 status
= (afs_status_t
) atoi(argv
[i
]);
41 util_AdminErrorCodeTranslate(status
, 0, &errText
, &errStatus
);
42 printf("%d = %s\n", status
, errText
);