Rename new error codes to _ET_ in them for consistency.
ChangeLog, et_c.awk, et_h.awk:
Remove support for non STDC compilers, since the workarounds caused
problems with the header file.
Makefile.pq:
Checkpoint of powerquest work.
+Fri Oct 31 01:12:43 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * pass1.c, pass3.c: Rename new error codes to _ET_ in them for
+ consistency.
+
Sat Oct 25 00:10:58 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
* pass3.c (get_lost_and_found): Check error return of
TOPSRC=..
-
-!include $(TOPSRC)\powerquest\MCONFIG
+LIBNAME=E2FSCK.LIB
+OBJFILE=E2FSCK.LST
OBJS= super.obj pass1.obj pass1b.obj pass2.obj pass3.obj pass4.obj \
pass5.obj
-ALL: $(OBJS)
+!include $(TOPSRC)\powerquest\MCONFIG
+
+ALL:: $(OBJS)
+
+!include $(TOPSRC)\powerquest\MAKEFILE.STD
return EXT2_ET_CALLBACK_NOTHANDLED;
if (!LINUX_S_ISDIR(ctx->stashed_inode->i_mode))
- return EXT2_NO_DIRECTORY;
+ return EXT2_ET_NO_DIRECTORY;
return 0;
}
sizeof(name)-1, 0, &ino);
if (!retval)
return ino;
- if (retval != EXT2_FILE_NOT_FOUND) {
+ if (retval != EXT2_ET_FILE_NOT_FOUND) {
pctx.errcode = retval;
fix_problem(ctx, PR_3_ERR_FIND_LPF, &pctx);
}
+Fri Oct 31 01:14:41 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * et_c.awk, et_h.awk: Remove support for non STDC compilers, since
+ the workarounds caused problems with the header file.
+
Sun Aug 10 09:40:54 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
* error_table.h:
print " * This file is automatically generated; please do not edit it." > outfile
print " */" > outfile
- print "#ifdef __STDC__" > outfile
- print "#define NOARGS void" > outfile
- print "#else" > outfile
- print "#define NOARGS" > outfile
- print "#define const" > outfile
- print "#endif" > outfile
print "" > outfile
print "static const char * const text[] = {" > outfile
table_item_count = 0
print "" > outfile
print "static struct et_list link = { 0, 0 };" > outfile
print "" > outfile
- print "void initialize_" table_name "_error_table (NOARGS);" > outfile
+ print "void initialize_" table_name "_error_table(void);" > outfile
print "" > outfile
- print "void initialize_" table_name "_error_table (NOARGS) {" > outfile
+ print "void initialize_" table_name "_error_table(void) {" > outfile
print " if (!link.table) {" > outfile
print " link.next = _et_list;" > outfile
print " link.table = &et;" > outfile
print " * " outfile ":" > outfile
print " * This file is automatically generated; please do not edit it." > outfile
print " */" > outfile
- print "#ifdef __STDC__" > outfile
- print "#define NOARGS void" > outfile
- print "#else" > outfile
- print "#define NOARGS" > outfile
- print "#define const" > outfile
- print "#endif" > outfile
print "" > outfile
}
}
END {
- print "extern void initialize_" table_name "_error_table (NOARGS);" > outfile
+ print "extern void initialize_" table_name "_error_table(void);" > outfile
if (tab_base_high == 0) {
print "#define ERROR_TABLE_BASE_" table_name " (" \
sprintf("%d", tab_base_sign*tab_base_low) \
TOPSRC=..\..
-
-!include $(TOPSRC)\powerquest\MCONFIG
+LIBNAME=EXT2.LIB
+OBJFILE=EXT2.LST
OBJS= alloc.obj \
alloc_tables.obj \
valid_blk.obj \
version.obj
-ALL: $(OBJS)
+!include $(TOPSRC)\powerquest\MCONFIG
+
+ALL:: $(OBJS)
+
+!include $(TOPSRC)\powerquest\MAKEFILE.STD
ec EXT2_ET_REV_TOO_HIGH,
"Filesystem revision too high"
-ec EXT2_ET_SB_LSEEK,
- "Can't seek to superblock"
-
-ec EXT2_ET_SB_READ,
- "Can't read superblock"
-
-ec EXT2_ET_SB_WRITE,
- "Can't write superblock"
-
ec EXT2_ET_RO_FILSYS,
"Attempt to write to filesystem opened read-only"
ec EXT2_ET_RO_UNSUPP_FEATURE,
"Filesystem has unsupported read-only feature(s)"
-ec EXT2_IO_LLSEEK_FAILED,
+ec EXT2_ET_LLSEEK_FAILED,
"IO Channel failed to seek on read or write"
-ec EXT2_NO_MEMORY,
+ec EXT2_ET_NO_MEMORY,
"Memory allocation failed"
-ec EXT2_INVALID_ARGUMENT,
+ec EXT2_ET_INVALID_ARGUMENT,
"Invalid argument passed to ext2 library"
-ec EXT2_BLOCK_ALLOC_FAIL,
+ec EXT2_ET_BLOCK_ALLOC_FAIL,
"Could not allocate block in ext2 filesystem"
-ec EXT2_INODE_ALLOC_FAIL,
+ec EXT2_ET_INODE_ALLOC_FAIL,
"Could not allocate inode in ext2 filesystem"
-ec EXT2_NO_DIRECTORY,
+ec EXT2_ET_NO_DIRECTORY,
"Ext2 inode is not a directory"
-ec EXT2_TOO_MANY_REFS,
+ec EXT2_ET_TOO_MANY_REFS,
"Too many references in table"
-ec EXT2_FILE_NOT_FOUND,
+ec EXT2_ET_FILE_NOT_FOUND,
"File not found by ext2_lookup"
-ec EXT2_FILE_RO,
+ec EXT2_ET_FILE_RO,
"File open read-only"
-ec EXT2_DB_NOT_FOUND,
+ec EXT2_ET_DB_NOT_FOUND,
"Ext2 directory block not found"
-ec EXT2_DIR_EXISTS,
+ec EXT2_ET_DIR_EXISTS,
"Ext2 directory already exists"
end
+
{
*ptr = malloc(size);
if (!*ptr)
- return EXT2_NO_MEMORY;
+ return EXT2_ET_NO_MEMORY;
return 0;
}
p = realloc(*ptr, size);
if (!p)
- return EXT2_NO_MEMORY;
+ return EXT2_ET_NO_MEMORY;
*ptr = p;
return 0;
}
TOPSRC=..
-
-!include $(TOPSRC)\powerquest\MCONFIG
+LIBNAME=RESIZE.LIB
+OBJFILE=RESIZE.LST
OBJS= extent.obj \
ext2_block_move.obj \
resize2fs.obj \
sim_progress.obj
-ALL: $(OBJS)
+ALL:: $(OBJS)
+
+!include $(TOPSRC)\powerquest\MCONFIG
+
+
+!include $(TOPSRC)\powerquest\MAKEFILE.STD