~ubuntu-branches/ubuntu/saucy/dosfstools/saucy-proposed

« back to all changes in this revision

Viewing changes to src/io.h

  • Committer: Package Import Robot
  • Author(s): Steve Langasek
  • Date: 2011-12-19 15:25:47 UTC
  • mfrom: (4.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20111219152547-ynwswo9ubk6l6szm
Tags: 3.0.12-1ubuntu1
* Merge from Debian testing, remaining changes:
  - debian/patches/02_fat32_label.patch: resolve an error thrown by
    dosfslabel when trying to label.
* Dropped changes, superseded in Debian:
  - build-depend on quilt: Debian is source format 3.0 (quilt).
  - debian/patches/01_fix_sector_count.patch: included upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
/* FAT32, VFAT, Atari format support, and various fixes additions May 1998
24
24
 * by Roman Hodek <Roman.Hodek@informatik.uni-erlangen.de> */
25
25
 
26
 
 
27
26
#ifndef _IO_H
28
27
#define _IO_H
29
28
 
30
 
#include <sys/types.h> /* for loff_t */
 
29
#include <sys/types.h>          /* for loff_t */
31
30
 
32
31
loff_t llseek(int fd, loff_t offset, int whence);
33
32
 
34
33
/* lseek() analogue for large offsets. */
35
34
 
36
 
void fs_open(char *path,int rw);
 
35
void fs_open(char *path, int rw);
37
36
 
38
37
/* Opens the file system PATH. If RW is zero, the file system is opened
39
38
   read-only, otherwise, it is opened read-write. */
40
39
 
41
 
void fs_read(loff_t pos,int size,void *data);
 
40
void fs_read(loff_t pos, int size, void *data);
42
41
 
43
42
/* Reads SIZE bytes starting at POS into DATA. Performs all applicable
44
43
   changes. */
45
44
 
46
 
int fs_test(loff_t pos,int size);
 
45
int fs_test(loff_t pos, int size);
47
46
 
48
47
/* Returns a non-zero integer if SIZE bytes starting at POS can be read without
49
48
   errors. Otherwise, it returns zero. */
50
49
 
51
 
void fs_write(loff_t pos,int size,void *data);
 
50
void fs_write(loff_t pos, int size, void *data);
52
51
 
53
52
/* If write_immed is non-zero, SIZE bytes are written from DATA to the disk,
54
53
   starting at POS. If write_immed is zero, the change is added to a list in