e2fsprogs/include/nonunix/unistd.h

50 lines
784 B
C
Raw Permalink Normal View History

Many files: pass4.c (e2fsck_pass4): If an inode is set in the inode_imagic_map bitmap, don't check to see if it is disconnected from the inode tree (because it almost certainly will be). Free inode_imagic_map at the end of pass 4. pass2.c (check_dir_block, check_filetype): If the FILETYPE feature is set, check the directory entry's filetype information field, and fix/set it if necessary. (e2fsck_pass2): Free the inode_reg_map bitmap at the end of pass 2. pass1.c (e2fsck_pass1, alloc_imagic_map): Allocate and fill in information for inode_reg_map and inode_imagic_map, which indicates which inodes are regular files and AFS inodes, respectively. Since only the master superblock is written during a restart, force that superblock to be used after a restart; otherwise changes to the block group descriptors end up getting ignored. problem.c, problemP.h: If e2fsck is run -n, make def_yn variable be 0 for "no". Add support for a new flag, PR_NO_NOMSG, which supresses the problem message if e2fsck is run with the -n option. problem.c, problem.h (PR_2_SET_FILETYPE, PR_2_BAD_FILETYPE): Add new problem codes. message.c (expand_dirent_expression): Add support for %dt which prints the dirent type information. e2fsck.c (e2fsck_reset_context): Free new bitmaps (inode_reg_map and inode_imagic_map). e2fsck.h (e2fsck_t): Add new inode_reg_map and inode_magic_map to the context structure. ChangeLog, nt_io.c: nt_io.c: New file which supports I/O under Windows NT. ChangeLog, gen_uuid_nt.c: gen_uuid_nt.c: New file which creates a UUID under Windows NT. Many files: Add support for non-Unix compiles
1999-10-22 03:33:18 +08:00
#pragma once
#include <stdlib.h>
#include <process.h>
#include <io.h>
#define EOPNOTSUPP 95
#define O_NONBLOCK 0
#define O_RDONLY _O_RDONLY
#define O_RDWR _O_RDWR
#define popen _popen
#define pclose _pclose
#define sleep _sleep
#define stat _stat
#define open _open
#define close _close
#define fstat _fstat
#define read _read
#define write _write
#define off_t _off_t
#define lseek _lseek
#define putenv _putenv
#define getpid _getpid
#define utimbuf _utimbuf
#define sys_nerr _sys_nerr
#define sys_errlist _sys_errlist
#define isatty _isatty
#define getch _getch
#include <grp.h>
#include <pwd.h>
// no-oped sync
__inline void sync(void){};
#define gettimeofday(p, v) ((p)->tv_sec = (p)->tv_usec = 0)
#define strcasecmp _stricmp