Deleted Added
full compact
host.c (313355) host.c (328889)
1/*-
2 * Copyright (c) 2011 Google, Inc.
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

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

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
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2011 Google, Inc.
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

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

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
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: stable/11/sys/boot/userboot/userboot/host.c 313355 2017-02-06 22:03:07Z tsoome $");
28__FBSDID("$FreeBSD: stable/11/sys/boot/userboot/userboot/host.c 328889 2018-02-05 17:01:18Z kevans $");
29
30/*
31 * Read from the host filesystem
32 */
33
34#include <sys/param.h>
35#include <sys/time.h>
36#include <stddef.h>

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

129
130static int
131host_dev_init(void)
132{
133
134 return (0);
135}
136
29
30/*
31 * Read from the host filesystem
32 */
33
34#include <sys/param.h>
35#include <sys/time.h>
36#include <stddef.h>

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

129
130static int
131host_dev_init(void)
132{
133
134 return (0);
135}
136
137static void
137static int
138host_dev_print(int verbose)
139{
140 char line[80];
141
138host_dev_print(int verbose)
139{
140 char line[80];
141
142 sprintf(line, " host%d: Host filesystem\n", 0);
143 pager_output(line);
142 printf("%s devices:", host_dev.dv_name);
143 if (pager_output("\n") != 0)
144 return (1);
145
146 snprintf(line, sizeof(line), " host%d: Host filesystem\n", 0);
147 return (pager_output(line));
144}
145
146/*
147 * 'Open' the host device.
148 */
149static int
150host_dev_open(struct open_file *f, ...)
151{

--- 47 unchanged lines hidden ---
148}
149
150/*
151 * 'Open' the host device.
152 */
153static int
154host_dev_open(struct open_file *f, ...)
155{

--- 47 unchanged lines hidden ---