llong.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MT_OFF_T   off_t
#define min(a, b)   ((a) < (b) ? (a) : (b))
#define MAX_OFF_T_B(bits)   (((mt_off_t) 1 << min(bits, sizeof(mt_off_t)*8 - 1)) - 1)
#define SEEK_BITS   (sizeof(off_t) * 8 - 1)

Typedefs

typedef MT_OFF_T mt_off_t
typedef mt_off_t mt_size_t

Functions

off_t truncBytes32 (mt_off_t off)
mt_off_t sectorsToBytes (Stream_t *This, off_t off)
mt_size_t getfree (Stream_t *Stream)
int getfreeMinBytes (Stream_t *Stream, mt_size_t ref)
Stream_tfind_device (char *drive, int mode, struct device *out_dev, struct bootsector *boot, char *name, int *media, mt_size_t *maxSize)
int mt_lseek (int fd, mt_off_t where, int whence)
int log_2 (int)

Variables

const mt_off_t max_off_t_31
const mt_off_t max_off_t_41
const mt_off_t max_off_t_seek


Define Documentation

#define MAX_OFF_T_B bits   )     (((mt_off_t) 1 << min(bits, sizeof(mt_off_t)*8 - 1)) - 1)
 

Definition at line 53 of file llong.h.

Referenced by SimpleFileOpen().

#define min a,
b   )     ((a) < (b) ? (a) : (b))
 

Definition at line 52 of file llong.h.

Referenced by add_sample(), another_hunk(), dfhand(), dosub(), eat_dir(), getblock(), inflate_table(), inflate_table9(), inform_user_time(), main(), overlay(), overwrite(), regmatch(), token_actions(), and writedata().

#define MT_OFF_T   off_t
 

Definition at line 33 of file llong.h.

#define SEEK_BITS   (sizeof(off_t) * 8 - 1)
 

Definition at line 59 of file llong.h.


Typedef Documentation

typedef MT_OFF_T mt_off_t
 

Definition at line 37 of file llong.h.

typedef mt_off_t mt_size_t
 

Definition at line 50 of file llong.h.


Function Documentation

Stream_t* find_device char *  drive,
int  mode,
struct device out_dev,
struct bootsector boot,
char *  name,
int *  media,
mt_size_t maxSize
 

Definition at line 87 of file init.c.

References device::blocksize, dev, devices, devname, device::drive, errmsg, errno, expand, FREE, free, get_media_type(), isupper, bootsector::jump, max_off_t_31, memset(), device::name, NULL, r, read_boot(), safe_malloc(), SET_GEOM, SimpleFileOpen(), snprintf(), sprintf(), stat, strchr, strcmp, strcpy(), strerror(), strlen(), device::use_2m, and XdfOpen().

Referenced by fs_init(), and minfo().

mt_size_t getfree Stream_t Stream  ) 
 

Definition at line 820 of file fat.c.

References DeclareThis, fatDecode(), GetFs(), i, L, MAX32, sectorsToBytes(), and total.

int getfreeMinBytes Stream_t Stream,
mt_size_t  ref
 

Definition at line 891 of file fat.c.

References DeclareThis, getfreeMinClusters(), and GetFs().

int log_2 int   ) 
 

Definition at line 75 of file llong.c.

References i.

Referenced by fs_init(), and SimpleFileOpen().

int mt_lseek int  fd,
mt_off_t  where,
int  whence
 

Definition at line 55 of file llong.c.

References lseek.

Referenced by file_io().

mt_off_t sectorsToBytes Stream_t This,
off_t  off
 

Definition at line 36 of file llong.c.

References DeclareThis.

Referenced by forceReadSector(), forceWriteSector(), format_root(), getfree(), mbadblocks(), normal_map(), readSector(), root_map(), and writeSector().

off_t truncBytes32 mt_off_t  off  ) 
 

Definition at line 27 of file llong.c.

References exit(), fprintf(), max_off_t_31, and stderr.

Referenced by copyfile(), pre_allocate_file(), read_file(), read_filter(), scsi_io(), write_file(), and write_filter().


Variable Documentation

const mt_off_t max_off_t_31
 

Definition at line 18 of file llong.c.

Referenced by copyfile(), find_device(), mformat(), and truncBytes32().

const mt_off_t max_off_t_41
 

Definition at line 19 of file llong.c.

const mt_off_t max_off_t_seek
 

Definition at line 20 of file llong.c.

Referenced by SimpleFileOpen().


Generated on Fri Apr 14 23:04:04 2006 for minix by  doxygen 1.4.6