[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnumach] 37/56: device: remove unused file dk_label.c
From: |
Samuel Thibault |
Subject: |
[gnumach] 37/56: device: remove unused file dk_label.c |
Date: |
Sat, 28 Sep 2013 12:43:17 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch master
in repository gnumach.
commit a6304541efd15e04646eff9a173ea7a292f13887
Author: Marin Ramesa <address@hidden>
Date: Tue Sep 17 05:59:55 2013 +0200
device: remove unused file dk_label.c
* device/dk_label.c: Remove file.
---
device/dk_label.c | 99 -----------------------------------------------------
1 file changed, 99 deletions(-)
diff --git a/device/dk_label.c b/device/dk_label.c
deleted file mode 100644
index c7d459b..0000000
--- a/device/dk_label.c
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * Mach Operating System
- * Copyright (c) 1993,1991,1990 Carnegie Mellon University
- * All Rights Reserved.
- *
- * Permission to use, copy, modify and distribute this software and its
- * documentation is hereby granted, provided that both the copyright
- * notice and this permission notice appear in all copies of the
- * software, derivative works or modified versions, and any portions
- * thereof, and that both notices appear in supporting documentation.
- *
- * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
- * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
- * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
- *
- * Carnegie Mellon requests users of this software to return to
- *
- * Software Distribution Coordinator or address@hidden
- * School of Computer Science
- * Carnegie Mellon University
- * Pittsburgh PA 15213-3890
- *
- * any improvements or extensions that they make and grant Carnegie Mellon
- * the rights to redistribute these changes.
- */
-/*
- * File: rz_disk.c
- * Author: Alessandro Forin, Carnegie Mellon University
- * Date: 10/90
- *
- */
-
-#include <sys/types.h>
-#include <kern/printf.h>
-#include <sys/ioctl.h>
-#include <device/device_types.h>
-#include <device/disk_status.h>
-
-/* Checksum a disk label */
-unsigned
-dkcksum(lp)
- struct disklabel *lp;
-{
- register unsigned short *start, *end, sum = 0;
-
- start = (unsigned short *)lp;
- end = (unsigned short*)&lp->d_partitions[lp->d_npartitions];
- while (start < end) sum ^= *start++;
- return sum;
-}
-
-/* Perform some checks and then copy a disk label */
-setdisklabel(lp, nlp)
- struct disklabel *lp, *nlp;
-{
- if (nlp->d_magic != DISKMAGIC || nlp->d_magic2 != DISKMAGIC ||
- (dkcksum(nlp) != 0))
- return D_INVALID_OPERATION;
- *lp = *nlp;
- return D_SUCCESS;
-}
-
-dkgetlabel(lp, flavor, data, count)
- struct disklabel *lp;
- int flavor;
- int * data; /* pointer to OUT array */
- unsigned int *count; /* OUT */
-{
-
- switch (flavor) {
- /* get */
- case DIOCGDINFO:
- *(struct disklabel *)data = *lp;
- *count = sizeof(struct disklabel)/sizeof(int);
- break;
- case DIOCGDINFO - (0x10<<16):
- *(struct disklabel *)data = *lp;
- *count = sizeof(struct disklabel)/sizeof(int) - 4;
- break;
- }
-}
-
-print_bsd_label(lp, str)
-struct disklabel *lp;
-char *str;
-{
-int i;
- printf("%s sectors %d, tracks %d, cylinders %d\n",
- str, lp->d_nsectors, lp->d_ntracks, lp->d_ncylinders);
- printf("%s secpercyl %d, secperunit %d, npartitions %d\n",
- str, lp->d_secpercyl, lp->d_secperunit, lp->d_npartitions);
-
- for (i = 0; i < lp->d_npartitions; i++) {
- printf("%s %c: size = %d, offset = %d\n",
- str, 'a'+i,
- lp->d_partitions[i].p_size,
- lp->d_partitions[i].p_offset);
- }
-}
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/gnumach.git
- [gnumach] 29/56: use boolean_t instead of an int, (continued)
- [gnumach] 29/56: use boolean_t instead of an int, Samuel Thibault, 2013/09/28
- [gnumach] 11/56: vm: organize vm print function prototypes, Samuel Thibault, 2013/09/28
- [gnumach] 10/56: ddb: cleanup db_command.c, Samuel Thibault, 2013/09/28
- [gnumach] 24/56: remove definition of NDEVICES, Samuel Thibault, 2013/09/28
- [gnumach] 16/56: Drop useless forward declaration, Samuel Thibault, 2013/09/28
- [gnumach] 18/56: Remove register qualifiers, Samuel Thibault, 2013/09/28
- [gnumach] 13/56: kern: add missing prototype, Samuel Thibault, 2013/09/28
- [gnumach] 15/56: Drop luna88k bits, Samuel Thibault, 2013/09/28
- [gnumach] 35/56: remove lint code, Samuel Thibault, 2013/09/28
- [gnumach] 12/56: ipc: organize ipc print function prototypes, Samuel Thibault, 2013/09/28
- [gnumach] 37/56: device: remove unused file dk_label.c,
Samuel Thibault <=
- [gnumach] 32/56: Coding style trivial fixes, Samuel Thibault, 2013/09/28
- [gnumach] 17/56: Add const qualifiers., Samuel Thibault, 2013/09/28
- [gnumach] 36/56: add comments after endifs, Samuel Thibault, 2013/09/28
- [gnumach] 34/56: remove register qualifiers, Samuel Thibault, 2013/09/28
- [gnumach] 33/56: remove lint code, Samuel Thibault, 2013/09/28
- [gnumach] 30/56: another small change in style for consistency, Samuel Thibault, 2013/09/28
- [gnumach] 27/56: another small change in style for consistency, Samuel Thibault, 2013/09/28
- [gnumach] 25/56: remove register qualifiers, Samuel Thibault, 2013/09/28
- [gnumach] 22/56: remove register qualifiers., Samuel Thibault, 2013/09/28
- [gnumach] 28/56: remove preprocessor comments, Samuel Thibault, 2013/09/28