Made dirent filename len a macro; corrected comment bug in bios.h reported

by Andrew Schilt <aschilt@cox.net>.
This commit is contained in:
Ben Gras 2005-07-18 09:11:48 +00:00
parent c69ed2c4b1
commit dfc51728b7
2 changed files with 5 additions and 3 deletions

View file

@ -67,10 +67,12 @@ typedef struct {
struct _fl_direct _v7f[FLEX_PER_V7]; /* V7 entry transformed to flex */ struct _fl_direct _v7f[FLEX_PER_V7]; /* V7 entry transformed to flex */
} DIR; } DIR;
#define _DIRENT_NAME_LEN 61
struct dirent { /* Largest entry (8 slots) */ struct dirent { /* Largest entry (8 slots) */
ino_t d_ino; /* I-node number */ ino_t d_ino; /* I-node number */
unsigned char d_extent; /* Extended with this many slots */ unsigned char d_extent; /* Extended with this many slots */
char d_name[61]; /* Null terminated name */ char d_name[_DIRENT_NAME_LEN]; /* Null terminated name */
}; };
/* Function Prototypes. */ /* Function Prototypes. */

View file

@ -38,7 +38,7 @@
* used. Other addresses may be defined below when new features are added. * used. Other addresses may be defined below when new features are added.
*/ */
/* Parallel ports (LPT1-LPT4). */ /* Serial ports (COM1-COM4). */
#define COM1_IO_PORT_ADDR 0x400 /* COM1 port address */ #define COM1_IO_PORT_ADDR 0x400 /* COM1 port address */
#define COM1_IO_PORT_SIZE 2L #define COM1_IO_PORT_SIZE 2L
#define COM2_IO_PORT_ADDR 0x402 /* COM2 port address */ #define COM2_IO_PORT_ADDR 0x402 /* COM2 port address */
@ -48,7 +48,7 @@
#define COM4_IO_PORT_ADDR 0x406 /* COM4 port address */ #define COM4_IO_PORT_ADDR 0x406 /* COM4 port address */
#define COM4_IO_PORT_SIZE 2L #define COM4_IO_PORT_SIZE 2L
/* Serial ports (COM1-COM4). */ /* Parallel ports (LPT1-LPT4). */
#define LPT1_IO_PORT_ADDR 0x408 /* LPT1 port address */ #define LPT1_IO_PORT_ADDR 0x408 /* LPT1 port address */
#define LPT1_IO_PORT_SIZE 2L #define LPT1_IO_PORT_SIZE 2L
#define LPT2_IO_PORT_ADDR 0x40A /* LPT2 port address */ #define LPT2_IO_PORT_ADDR 0x40A /* LPT2 port address */