15425ba83SKa Ho Ng /*-
25425ba83SKa Ho Ng * Copyright (c) 2021 The FreeBSD Foundation
35425ba83SKa Ho Ng *
45425ba83SKa Ho Ng * This software was developed by Ka Ho Ng <khng@FreeBSD.org>
55425ba83SKa Ho Ng * under sponsorship from the FreeBSD Foundation.
65425ba83SKa Ho Ng *
75425ba83SKa Ho Ng * Redistribution and use in source and binary forms, with or without
85425ba83SKa Ho Ng * modification, are permitted provided that the following conditions
95425ba83SKa Ho Ng * are met:
105425ba83SKa Ho Ng * 1. Redistributions of source code must retain the above copyright
115425ba83SKa Ho Ng * notice, this list of conditions and the following disclaimer.
125425ba83SKa Ho Ng * 2. Redistributions in binary form must reproduce the above copyright
135425ba83SKa Ho Ng * notice, this list of conditions and the following disclaimer in the
145425ba83SKa Ho Ng * documentation and/or other materials provided with the distribution.
155425ba83SKa Ho Ng *
165425ba83SKa Ho Ng * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
175425ba83SKa Ho Ng * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
185425ba83SKa Ho Ng * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
195425ba83SKa Ho Ng * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
205425ba83SKa Ho Ng * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
215425ba83SKa Ho Ng * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
225425ba83SKa Ho Ng * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
235425ba83SKa Ho Ng * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
245425ba83SKa Ho Ng * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
255425ba83SKa Ho Ng * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
265425ba83SKa Ho Ng * SUCH DAMAGE.
275425ba83SKa Ho Ng */
285425ba83SKa Ho Ng
295425ba83SKa Ho Ng #include <sys/cdefs.h>
305425ba83SKa Ho Ng #include <errno.h>
315425ba83SKa Ho Ng #include <fcntl.h>
325425ba83SKa Ho Ng
335425ba83SKa Ho Ng /*
345425ba83SKa Ho Ng * This is currently a stub implementation of fspacectl(2).
355425ba83SKa Ho Ng */
365425ba83SKa Ho Ng int
fspacectl(int fd __unused,int cmd __unused,const struct spacectl_range * rqsr __unused,int flags __unused,struct spacectl_range * rmsr __unused)37*4544929cSDimitry Andric fspacectl(int fd __unused, int cmd __unused,
38*4544929cSDimitry Andric const struct spacectl_range *rqsr __unused, int flags __unused,
39*4544929cSDimitry Andric struct spacectl_range *rmsr __unused)
405425ba83SKa Ho Ng {
415425ba83SKa Ho Ng errno = ENOSYS;
425425ba83SKa Ho Ng return (-1);
435425ba83SKa Ho Ng }
44