~ubuntu-branches/ubuntu/lucid/loop-aes-utils/lucid-security

« back to all changes in this revision

Viewing changes to fdisk/fdisk.h

  • Committer: Bazaar Package Importer
  • Author(s): Max Vozeler
  • Date: 2008-08-22 11:57:17 UTC
  • mfrom: (8.1.3 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080822115717-v8wfa8pxwlfvyje0
Tags: 2.13.1-4
* patches/losetup_add_option_f.dpatch: 
  - Added to support "find next free loop" in losetup.
    (closes: #495682)

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#define cround(n)       (display_in_cyl_units ? ((n)/units_per_sector)+1 : (n))
27
27
#define scround(x)      (((x)+units_per_sector-1)/units_per_sector)
28
28
 
29
 
extern long long ext2_llseek(unsigned int fd, long long offset,
30
 
                             unsigned int origin);
31
 
 
32
29
#if defined(__GNUC__) && (defined(__arm__) || defined(__alpha__))
33
30
# define PACKED __attribute__ ((packed))
34
31
#else
79
76
extern unsigned int read_int(unsigned int low, unsigned int dflt,
80
77
                             unsigned int high, unsigned int base, char *mesg);
81
78
 
 
79
extern unsigned char MBRbuffer[MAX_SECTOR_SIZE];
 
80
extern unsigned int heads, cylinders, sector_size;
 
81
extern unsigned long long sectors;
 
82
extern char *partition_type(unsigned char type);
 
83
extern void update_units(void);
 
84
extern char read_chars(char *mesg);
 
85
extern void set_changed(int);
 
86
extern void set_all_unchanged(void);
82
87
 
83
88
#define PLURAL  0
84
89
#define SINGULAR 1
85
 
extern char *const str_units(int);
 
90
extern const char * str_units(int);
86
91
 
87
 
extern unsigned int get_start_sect(struct partition *p);
88
 
extern unsigned int get_nr_sects(struct partition *p);
 
92
extern unsigned long long get_start_sect(struct partition *p);
 
93
extern unsigned long long get_nr_sects(struct partition *p);
89
94
 
90
95
extern int osf_label;
 
96
extern int sun_label;
 
97
extern int sgi_label;
 
98
extern int aix_label;
 
99
extern int mac_label;
91
100
 
92
101
/* prototypes for fdiskbsdlabel.c */
93
102
extern void bselect(void);