libgeom.h (3874c0abb0afaea6adc24ac96dc9dc5043f2b69e) libgeom.h (2117cdd4b4ebda7db0270c56f5a3cbdd37ec8cfc)
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause-FreeBSD
3 *
4 * Copyright (c) 2003 Poul-Henning Kamp
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

144struct gctl_req;
145
146#ifdef _STDIO_H_ /* limit #include pollution */
147void gctl_dump(struct gctl_req *, FILE *);
148#endif
149void gctl_free(struct gctl_req *);
150struct gctl_req *gctl_get_handle(void);
151const char *gctl_issue(struct gctl_req *);
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause-FreeBSD
3 *
4 * Copyright (c) 2003 Poul-Henning Kamp
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

144struct gctl_req;
145
146#ifdef _STDIO_H_ /* limit #include pollution */
147void gctl_dump(struct gctl_req *, FILE *);
148#endif
149void gctl_free(struct gctl_req *);
150struct gctl_req *gctl_get_handle(void);
151const char *gctl_issue(struct gctl_req *);
152void gctl_add_param(struct gctl_req *req, const char *name, int len,
153 void *value, int flag);
152void gctl_ro_param(struct gctl_req *, const char *, int, const void *);
153void gctl_rw_param(struct gctl_req *, const char *, int, void *);
154
155/* geom_util.c */
156int g_open(const char *, int);
157int g_close(int);
158off_t g_mediasize(int);
159ssize_t g_sectorsize(int);

--- 13 unchanged lines hidden ---
154void gctl_ro_param(struct gctl_req *, const char *, int, const void *);
155void gctl_rw_param(struct gctl_req *, const char *, int, void *);
156
157/* geom_util.c */
158int g_open(const char *, int);
159int g_close(int);
160off_t g_mediasize(int);
161ssize_t g_sectorsize(int);

--- 13 unchanged lines hidden ---