diff options
author | 2016-01-11 23:33:52 +0000 | |
---|---|---|
committer | 2016-01-11 23:33:52 +0000 | |
commit | 90d72e5b0e8fee1455eaee657bf70f44fe489f29 (patch) | |
tree | c3b4f9104c09acebf25fe99f8f99e096d8967b95 | |
parent | open_pathname_as_media() simply called open_file_as_media() which (diff) | |
download | wireguard-openbsd-90d72e5b0e8fee1455eaee657bf70f44fe489f29.tar.xz wireguard-openbsd-90d72e5b0e8fee1455eaee657bf70f44fe489f29.zip |
Nuke now unused files.
ok deraadt@
-rw-r--r-- | sbin/pdisk/pathname.c | 125 | ||||
-rw-r--r-- | sbin/pdisk/pathname.h | 63 |
2 files changed, 0 insertions, 188 deletions
diff --git a/sbin/pdisk/pathname.c b/sbin/pdisk/pathname.c deleted file mode 100644 index afbf9bdc955..00000000000 --- a/sbin/pdisk/pathname.c +++ /dev/null @@ -1,125 +0,0 @@ -/* $OpenBSD: pathname.c,v 1.8 2016/01/11 07:54:07 jasper Exp $ */ - -/* - * pathname.c - - * - * Written by Eryk Vershen - */ - -/* - * Copyright 1997,1998 by Apple Computer, Inc. - * All Rights Reserved - * - * Permission to use, copy, modify, and distribute this software and - * its documentation for any purpose and without fee is hereby granted, - * provided that the above copyright notice appears in all copies and - * that both the copyright notice and this permission notice appear in - * supporting documentation. - * - * APPLE COMPUTER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE - * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE. - * - * IN NO EVENT SHALL APPLE COMPUTER BE LIABLE FOR ANY SPECIAL, INDIRECT, OR - * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT, - * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION - * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - - -// for strncmp() -#include <string.h> - -#include "pathname.h" -#include "file_media.h" - -/* - * Defines - */ - - -/* - * Types - */ - - -/* - * Global Constants - */ - - -/* - * Global Variables - */ - - -/* - * Forward declarations - */ - - -/* - * Routines - */ - -MEDIA -open_pathname_as_media(char *path, int oflag) -{ - MEDIA m = 0; - - m = open_file_as_media(path, oflag); - return m; -} - - -MEDIA_ITERATOR -first_media_kind(long *state) -{ - *state = 0; - return next_media_kind(state); -} - - -MEDIA_ITERATOR -next_media_kind(long *state) -{ - MEDIA_ITERATOR result; - long ix; - - result = 0; - ix = *state; - - switch (ix) { - case 0: - result = create_file_iterator(); - ix = 1; - if (result != 0) { - break; - } - /* fall through to next interface */ - - case 1: - ix = 2; - if (result != 0) { - break; - } - /* fall through to next interface */ - - case 2: - ix = 3; - if (result != 0) { - break; - } - /* fall through to next interface */ - - case 3: - default: - break; - } - - *state = ix; - return result; -} - - diff --git a/sbin/pdisk/pathname.h b/sbin/pdisk/pathname.h deleted file mode 100644 index 81aaa1c36e3..00000000000 --- a/sbin/pdisk/pathname.h +++ /dev/null @@ -1,63 +0,0 @@ -/* $OpenBSD: pathname.h,v 1.5 2016/01/11 07:54:07 jasper Exp $ */ - -/* - * pathname.h - - * - * Written by Eryk Vershen - */ - -/* - * Copyright 1997,1998 by Apple Computer, Inc. - * All Rights Reserved - * - * Permission to use, copy, modify, and distribute this software and - * its documentation for any purpose and without fee is hereby granted, - * provided that the above copyright notice appears in all copies and - * that both the copyright notice and this permission notice appear in - * supporting documentation. - * - * APPLE COMPUTER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE - * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE. - * - * IN NO EVENT SHALL APPLE COMPUTER BE LIABLE FOR ANY SPECIAL, INDIRECT, OR - * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT, - * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION - * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef __pathname__ -#define __pathname__ - -#include "media.h" - - -/* - * Defines - */ - - -/* - * Types - */ - - -/* - * Global Constants - */ - - -/* - * Global Variables - */ - - -/* - * Forward declarations - */ -MEDIA open_pathname_as_media(char *path, int oflag); -MEDIA_ITERATOR first_media_kind(long *state); -MEDIA_ITERATOR next_media_kind(long *state); - -#endif /* __pathname__ */ |