File: disk.h

package info (click to toggle)
atari-fdisk 0.7.1-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 236 kB
  • ctags: 225
  • sloc: ansic: 2,946; makefile: 136; sh: 23
file content (47 lines) | stat: -rw-r--r-- 1,531 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* disk.h: low-level access functions to the disk
 *
 * Copyright (C) 1995-97 Roman Hodek <Roman.Hodek@informatik.uni-erlangen.de>
 *               1996-97 Michael Schlueter <schlue00@marvin.informatik.uni-dortmund.de>
 *
 * This program is free software.  You can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation: either version 2 or
 * (at your option) any later version.
 *
 */

#ifndef _disk_h
#define _disk_h

/* $Id: disk.h,v 1.3 1997/06/22 10:37:15 rnhodek Exp $
 *
 * $Log: disk.h,v $
 * Revision 1.3  1997/06/22 10:37:15  rnhodek
 * Added msread, mswrite for moving partitions
 *
 * Revision 1.2  1997/06/21 20:47:42  rnhodek
 * Added RCS keywords
 *
 * Revision 1.1  1997/06/11 14:36:35  rnhodek
 * branches:  1.1.1;
 * Initial revision
 * 
 * Revision 1.1.1.1  1997/06/11 14:36:35  rnhodek
 * Started using CVS for atafdisk
 *
 */

/***************************** Prototypes *****************************/

int sseek( unsigned int fd, unsigned long s );
int sseek( unsigned int fd, unsigned long s );
void sread( char *buffer, unsigned long secno );
int msread( char *buffer, unsigned long secno, unsigned n );
void dump_sector( unsigned long sec, unsigned char *buf );
void swrite( char *buf, unsigned long secno );
int dangerous_write( int fd, char *buf, unsigned long secno );
int mswrite( char *buf, unsigned long secno, unsigned n );

/************************* End of Prototypes **************************/

#endif  /* _disk_h */