Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F2022046
scratch.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
scratch.c
View Options
/*
* Copyright 2004-2021 the Pacemaker project contributors
*
* The version control history for this file may have further details.
*
* This source code is licensed under the GNU General Public License version 2
* or later (GPLv2+) WITHOUT ANY WARRANTY.
*/
#include <crm_internal.h>
#include <sys/param.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
#include <crm/crm.h>
#include <crm/cib.h>
#define OPTARGS "X:"
int
main(int argc, char **argv)
{
int flag;
xmlNode *top = NULL;
const char *xml_file = NULL;
crm_log_init(NULL, LOG_TRACE, FALSE, TRUE, argc, argv, FALSE);
while (1) {
flag = getopt(argc, argv, OPTARGS);
if (flag == -1)
break;
switch (flag) {
case 'X':
xml_file = optarg;
break;
default:
printf("Unknown option: -%c\n", flag);
break;
}
}
top = filename2xml(xml_file);
free_xml(top);
return 0;
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Mon, Dec 23, 10:22 PM (1 d, 3 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1129246
Default Alt Text
scratch.c (1 KB)
Attached To
Mode
rP Pacemaker
Attached
Detach File
Event Timeline
Log In to Comment