Deleted Added
full compact
subr.h (166215) subr.h (179628)
1/*-
2 * Copyright (c) 2004 Pawel Jakub Dawidek <pjd@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2004 Pawel Jakub Dawidek <pjd@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sbin/geom/misc/subr.h 166215 2007-01-25 11:35:27Z pjd $
26 * $FreeBSD: head/sbin/geom/misc/subr.h 179628 2008-06-06 22:44:03Z marcel $
27 */
28
29#ifndef _SUBR_H_
30#define _SUBR_H_
31#include <stdint.h>
32
33unsigned g_lcm(unsigned a, unsigned b);
34uint32_t bitcount32(uint32_t x);

--- 7 unchanged lines hidden (view full) ---

42int g_metadata_clear(const char *name, const char *magic);
43
44void gctl_error(struct gctl_req *req, const char *error, ...) __printflike(2, 3);
45int gctl_get_int(struct gctl_req *req, const char *pfmt, ...) __printflike(2, 3);
46intmax_t gctl_get_intmax(struct gctl_req *req, const char *pfmt, ...) __printflike(2, 3);
47const char *gctl_get_ascii(struct gctl_req *req, const char *pfmt, ...) __printflike(2, 3);
48int gctl_change_param(struct gctl_req *req, const char *name, int len,
49 const void *value);
27 */
28
29#ifndef _SUBR_H_
30#define _SUBR_H_
31#include <stdint.h>
32
33unsigned g_lcm(unsigned a, unsigned b);
34uint32_t bitcount32(uint32_t x);

--- 7 unchanged lines hidden (view full) ---

42int g_metadata_clear(const char *name, const char *magic);
43
44void gctl_error(struct gctl_req *req, const char *error, ...) __printflike(2, 3);
45int gctl_get_int(struct gctl_req *req, const char *pfmt, ...) __printflike(2, 3);
46intmax_t gctl_get_intmax(struct gctl_req *req, const char *pfmt, ...) __printflike(2, 3);
47const char *gctl_get_ascii(struct gctl_req *req, const char *pfmt, ...) __printflike(2, 3);
48int gctl_change_param(struct gctl_req *req, const char *name, int len,
49 const void *value);
50int gctl_delete_param(struct gctl_req *req, const char *name);
51int gctl_has_param(struct gctl_req *req, const char *name);
52
50#endif /* !_SUBR_H_ */
53#endif /* !_SUBR_H_ */