www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/01/29/10:05:35

From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
Message-Id: <200001291447.PAA26003@father.ludd.luth.se>
Subject: FAT32 include patch
To: djgpp-workers AT delorie DOT com (DJGPP-WORKERS)
Date: Sat, 29 Jan 2000 15:47:48 +0100 (MET)
X-Mailer: ELM [version 2.4ME+ PL54 (25)]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

Here's the patch for the include directory.


Bay Laurel, Lost in Black Love,

							MartinS


diff -ruN include.org/dos.h include/dos.h
--- include.org/dos.h	Thu Jun  3 13:22:28 1999
+++ include/dos.h	Sun Jan  9 21:08:00 2000
@@ -135,6 +135,12 @@
 
 unsigned short _get_dos_version(int);
 
+int _get_fat_size(const int drive);
+int _get_fs_type(const int drive, char *const result_str);
+int _is_cdrom_drive(const int drive);
+int _is_fat32(const int drive);
+int _is_ram_drive(const int drive);
+int _media_type(const int drive);
 
 int int86(int ivec, union REGS *in, union REGS *out);
 int int86x(int ivec, union REGS *in, union REGS *out, struct SREGS *seg);
diff -ruN include.org/sys/djtypes.h include/sys/djtypes.h
--- include.org/sys/djtypes.h	Tue Dec 14 06:56:16 1999
+++ include/sys/djtypes.h	Mon Jan 10 18:47:18 2000
@@ -7,6 +7,7 @@
 #define __DJ_clock_t	typedef int clock_t;
 #define __DJ_gid_t	typedef int gid_t;
 #define __DJ_off_t	typedef int off_t;
+#define __DJ_offset_t	typedef long long offset_t;
 #define __DJ_pid_t	typedef int pid_t;
 #define __DJ_size_t	typedef long unsigned int size_t;
 #define __DJ_ssize_t	typedef int ssize_t;
diff -ruN include.org/sys/types.h include/sys/types.h
--- include.org/sys/types.h	Thu Jun  3 13:22:30 1999
+++ include/sys/types.h	Sun Jan  9 21:09:46 2000
@@ -25,6 +25,9 @@
 __DJ_off_t
 #undef __DJ_off_t
 #define __DJ_off_t
+__DJ_offset_t
+#undef __DJ_offset_t
+#define __DJ_offset_t
 __DJ_pid_t
 #undef __DJ_pid_t
 #define __DJ_pid_t
diff -ruN include.org/unistd.h include/unistd.h
--- include.org/unistd.h	Fri Dec 24 16:32:52 1999
+++ include/unistd.h	Sun Jan  9 21:11:22 2000
@@ -73,6 +73,7 @@
 
 void		__exit(int _status) __attribute__((noreturn));
 void		_exit(int _status) __attribute__((noreturn));
+offset_t	_llseek(int _fildes, offset_t _offset, int _whence);
 int		access(const char *_path, int _amode);
 unsigned int	alarm(unsigned int _seconds);
 int		chdir(const char *_path);

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019