summaryrefslogtreecommitdiffstats
path: root/src/arlib.h
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2012-01-20 11:40:59 -0800
committerRoland McGrath <[email protected]>2012-01-20 11:40:59 -0800
commit8592478d3bd1a021c0b51ace768b8ef944b13cf1 (patch)
treedd51295226734916ae5e3fd295130442b29d62c3 /src/arlib.h
parentb8ff18e0e8b8631fcc449cbd5a1ceba3f4a73e0d (diff)
Support -D in ranlib as in ar.
Diffstat (limited to 'src/arlib.h')
-rw-r--r--src/arlib.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/arlib.h b/src/arlib.h
index fd26d248..ea77b23e 100644
--- a/src/arlib.h
+++ b/src/arlib.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007 Red Hat, Inc.
+/* Copyright (C) 2007-2012 Red Hat, Inc.
Written by Ulrich Drepper <[email protected]>, 2007.
Red Hat elfutils is free software; you can redistribute it and/or modify
@@ -26,15 +26,24 @@
#define _ARLIB_H 1
#include <ar.h>
+#include <argp.h>
#include <byteswap.h>
#include <endian.h>
#include <libelf.h>
#include <obstack.h>
+#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>
+/* State of -D/-U flags. */
+extern bool arlib_deterministic_output;
+
+/* For options common to ar and ranlib. */
+extern const struct argp_child arlib_argp_children[];
+
+
/* Maximum length of a file name that fits directly into the ar header.
We cannot use the final byte since a / goes there. */
#define MAX_AR_NAME_LEN (sizeof (((struct ar_hdr *) NULL)->ar_name) - 1)