Deleted Added
full compact
eject.c (1.4) eject.c (1.5)
1/* $NetBSD: eject.c,v 1.4 1997/10/18 13:38:15 lukem Exp $ */
1/* $NetBSD: eject.c,v 1.5 1997/11/07 09:01:29 mikel Exp $ */
2/*
3 * Copyright (c) 1995
4 * Matthieu Herrb. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright

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

28 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34#include <sys/cdefs.h>
35#ifndef lint
2/*
3 * Copyright (c) 1995
4 * Matthieu Herrb. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright

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

28 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34#include <sys/cdefs.h>
35#ifndef lint
36__RCSID("$NetBSD: eject.c,v 1.4 1997/10/18 13:38:15 lukem Exp $");
36__RCSID("$NetBSD: eject.c,v 1.5 1997/11/07 09:01:29 mikel Exp $");
37#endif
38
39/*
40 * Eject command
41 *
42 * It knows to eject floppies, CD-ROMS and tapes
43 * and tries to unmount file systems first
44 */

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

133
134/*
135 * remind the syntax of the command to the user
136 */
137static void
138usage()
139{
140 fprintf(stderr,
37#endif
38
39/*
40 * Eject command
41 *
42 * It knows to eject floppies, CD-ROMS and tapes
43 * and tries to unmount file systems first
44 */

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

133
134/*
135 * remind the syntax of the command to the user
136 */
137static void
138usage()
139{
140 fprintf(stderr,
141 "usage: eject [-n][-f][-t devtype][[-d] raw device | nickname ]");
141 "usage: eject [-n][-f][-t devtype][[-d] raw device | nickname ]\n");
142 exit(1);
143 /*NOTREACHED*/
144}
145
146
147/*
148 * given a device nick name, find its associated raw device and type
149 */

--- 233 unchanged lines hidden ---
142 exit(1);
143 /*NOTREACHED*/
144}
145
146
147/*
148 * given a device nick name, find its associated raw device and type
149 */

--- 233 unchanged lines hidden ---