diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-04-18 22:23:22 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-04-18 22:23:22 +0000 |
commit | 025fb87593d1c0f0a5bf449793b276cbd49ea4ec (patch) | |
tree | 76c8039bddc628c944e1b33bd04f3ad7ca644977 /libbb | |
parent | 2416b9df6640a2faea54b2eaf1448a222210317c (diff) | |
download | busybox-w32-025fb87593d1c0f0a5bf449793b276cbd49ea4ec.tar.gz busybox-w32-025fb87593d1c0f0a5bf449793b276cbd49ea4ec.tar.bz2 busybox-w32-025fb87593d1c0f0a5bf449793b276cbd49ea4ec.zip |
Move real_loop.h to libbb, where it belongs.
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@2374 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/real_loop.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/libbb/real_loop.h b/libbb/real_loop.h new file mode 100644 index 000000000..1bd7fa87a --- /dev/null +++ b/libbb/real_loop.h | |||
@@ -0,0 +1,37 @@ | |||
1 | /* | ||
2 | * include/linux/loop.h | ||
3 | * | ||
4 | * Written by Theodore Ts'o, 3/29/93. | ||
5 | * | ||
6 | * Copyright 1993 by Theodore Ts'o. Redistribution of this file is | ||
7 | * permitted under the GNU Public License. | ||
8 | */ | ||
9 | |||
10 | #define LO_NAME_SIZE 64 | ||
11 | #define LO_KEY_SIZE 32 | ||
12 | |||
13 | struct loop_info { | ||
14 | int lo_number; /* ioctl r/o */ | ||
15 | dev_t lo_device; /* ioctl r/o */ | ||
16 | unsigned long lo_inode; /* ioctl r/o */ | ||
17 | dev_t lo_rdevice; /* ioctl r/o */ | ||
18 | int lo_offset; | ||
19 | int lo_encrypt_type; | ||
20 | int lo_encrypt_key_size; /* ioctl w/o */ | ||
21 | int lo_flags; /* ioctl r/o */ | ||
22 | char lo_name[LO_NAME_SIZE]; | ||
23 | unsigned char lo_encrypt_key[LO_KEY_SIZE]; /* ioctl w/o */ | ||
24 | unsigned long lo_init[2]; | ||
25 | char reserved[4]; | ||
26 | }; | ||
27 | |||
28 | #define LO_CRYPT_NONE 0 | ||
29 | #define LO_CRYPT_XOR 1 | ||
30 | #define LO_CRYPT_DES 2 | ||
31 | #define LO_CRYPT_IDEA 3 | ||
32 | #define MAX_LO_CRYPT 4 | ||
33 | |||
34 | #define LOOP_SET_FD 0x4C00 | ||
35 | #define LOOP_CLR_FD 0x4C01 | ||
36 | #define LOOP_SET_STATUS 0x4C02 | ||
37 | #define LOOP_GET_STATUS 0x4C03 | ||