Current File : //usr/local/apps/perl/lib/site_perl/5.30.0/x86_64-linux/fcntl.ph
require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_FCNTL_H)) {
    eval 'sub _FCNTL_H () {1;}' unless defined(&_FCNTL_H);
    require 'features.ph';
    require 'bits/fcntl.ph';
    if(defined (&__USE_XOPEN) || defined (&__USE_XOPEN2K8)) {
	require 'bits/types.ph';
	eval 'sub __need_timespec () {1;}' unless defined(&__need_timespec);
	require 'time.ph';
	require 'bits/stat.ph';
	eval 'sub S_IFMT () { &__S_IFMT;}' unless defined(&S_IFMT);
	eval 'sub S_IFDIR () { &__S_IFDIR;}' unless defined(&S_IFDIR);
	eval 'sub S_IFCHR () { &__S_IFCHR;}' unless defined(&S_IFCHR);
	eval 'sub S_IFBLK () { &__S_IFBLK;}' unless defined(&S_IFBLK);
	eval 'sub S_IFREG () { &__S_IFREG;}' unless defined(&S_IFREG);
	if(defined(&__S_IFIFO)) {
	    eval 'sub S_IFIFO () { &__S_IFIFO;}' unless defined(&S_IFIFO);
	}
	if(defined(&__S_IFLNK)) {
	    eval 'sub S_IFLNK () { &__S_IFLNK;}' unless defined(&S_IFLNK);
	}
	if((defined (&__USE_UNIX98) || defined (&__USE_XOPEN2K8))  && defined (&__S_IFSOCK)) {
	    eval 'sub S_IFSOCK () { &__S_IFSOCK;}' unless defined(&S_IFSOCK);
	}
	eval 'sub S_ISUID () { &__S_ISUID;}' unless defined(&S_ISUID);
	eval 'sub S_ISGID () { &__S_ISGID;}' unless defined(&S_ISGID);
	if(defined (&__USE_BSD) || defined (&__USE_MISC) || defined (&__USE_XOPEN)) {
	    eval 'sub S_ISVTX () { &__S_ISVTX;}' unless defined(&S_ISVTX);
	}
	eval 'sub S_IRUSR () { &__S_IREAD;}' unless defined(&S_IRUSR);
	eval 'sub S_IWUSR () { &__S_IWRITE;}' unless defined(&S_IWUSR);
	eval 'sub S_IXUSR () { &__S_IEXEC;}' unless defined(&S_IXUSR);
	eval 'sub S_IRWXU () {( &__S_IREAD| &__S_IWRITE| &__S_IEXEC);}' unless defined(&S_IRWXU);
	eval 'sub S_IRGRP () {( &S_IRUSR >> 3);}' unless defined(&S_IRGRP);
	eval 'sub S_IWGRP () {( &S_IWUSR >> 3);}' unless defined(&S_IWGRP);
	eval 'sub S_IXGRP () {( &S_IXUSR >> 3);}' unless defined(&S_IXGRP);
	eval 'sub S_IRWXG () {( &S_IRWXU >> 3);}' unless defined(&S_IRWXG);
	eval 'sub S_IROTH () {( &S_IRGRP >> 3);}' unless defined(&S_IROTH);
	eval 'sub S_IWOTH () {( &S_IWGRP >> 3);}' unless defined(&S_IWOTH);
	eval 'sub S_IXOTH () {( &S_IXGRP >> 3);}' unless defined(&S_IXOTH);
	eval 'sub S_IRWXO () {( &S_IRWXG >> 3);}' unless defined(&S_IRWXO);
    }
    if(defined(&__USE_MISC)) {
	unless(defined(&R_OK)) {
	    eval 'sub R_OK () {4;}' unless defined(&R_OK);
	    eval 'sub W_OK () {2;}' unless defined(&W_OK);
	    eval 'sub X_OK () {1;}' unless defined(&X_OK);
	    eval 'sub F_OK () {0;}' unless defined(&F_OK);
	}
    }
    if(defined (&__USE_XOPEN) || defined (&__USE_XOPEN2K8)) {
	eval 'sub SEEK_SET () {0;}' unless defined(&SEEK_SET);
	eval 'sub SEEK_CUR () {1;}' unless defined(&SEEK_CUR);
	eval 'sub SEEK_END () {2;}' unless defined(&SEEK_END);
    }
    if(defined(&__USE_ATFILE)) {
	eval 'sub AT_FDCWD () {-100;}' unless defined(&AT_FDCWD);
	eval 'sub AT_SYMLINK_NOFOLLOW () {0x100;}' unless defined(&AT_SYMLINK_NOFOLLOW);
	eval 'sub AT_REMOVEDIR () {0x200;}' unless defined(&AT_REMOVEDIR);
	eval 'sub AT_SYMLINK_FOLLOW () {0x400;}' unless defined(&AT_SYMLINK_FOLLOW);
	eval 'sub AT_EACCESS () {0x200;}' unless defined(&AT_EACCESS);
    }
    unless(defined(&__USE_FILE_OFFSET64)) {
    } else {
	if(defined(&__REDIRECT)) {
	} else {
	    eval 'sub open () { &open64;}' unless defined(&open);
	}
    }
    if(defined(&__USE_LARGEFILE64)) {
    }
    if(defined(&__USE_ATFILE)) {
	unless(defined(&__USE_FILE_OFFSET64)) {
	} else {
	    if(defined(&__REDIRECT)) {
	    } else {
		eval 'sub openat () { &openat64;}' unless defined(&openat);
	    }
	}
	if(defined(&__USE_LARGEFILE64)) {
	}
    }
    unless(defined(&__USE_FILE_OFFSET64)) {
    } else {
	if(defined(&__REDIRECT)) {
	} else {
	    eval 'sub creat () { &creat64;}' unless defined(&creat);
	}
    }
    if(defined(&__USE_LARGEFILE64)) {
    }
    if(!defined (&F_LOCK)  && (defined (&__USE_MISC) || (defined (&__USE_XOPEN_EXTENDED)  && !defined (&__USE_POSIX)))) {
	eval 'sub F_ULOCK () {0;}' unless defined(&F_ULOCK);
	eval 'sub F_LOCK () {1;}' unless defined(&F_LOCK);
	eval 'sub F_TLOCK () {2;}' unless defined(&F_TLOCK);
	eval 'sub F_TEST () {3;}' unless defined(&F_TEST);
	unless(defined(&__USE_FILE_OFFSET64)) {
	} else {
	    if(defined(&__REDIRECT)) {
	    } else {
		eval 'sub lockf () { &lockf64;}' unless defined(&lockf);
	    }
	}
	if(defined(&__USE_LARGEFILE64)) {
	}
    }
    if(defined(&__USE_XOPEN2K)) {
	unless(defined(&__USE_FILE_OFFSET64)) {
	} else {
	    if(defined(&__REDIRECT_NTH)) {
	    } else {
		eval 'sub posix_fadvise () { &posix_fadvise64;}' unless defined(&posix_fadvise);
	    }
	}
	if(defined(&__USE_LARGEFILE64)) {
	}
	unless(defined(&__USE_FILE_OFFSET64)) {
	} else {
	    if(defined(&__REDIRECT)) {
	    } else {
		eval 'sub posix_fallocate () { &posix_fallocate64;}' unless defined(&posix_fallocate);
	    }
	}
	if(defined(&__USE_LARGEFILE64)) {
	}
    }
    if((defined(&__USE_FORTIFY_LEVEL) ? &__USE_FORTIFY_LEVEL : undef) > 0 && defined (&__extern_always_inline)  && defined (&__va_arg_pack_len)) {
	require 'bits/fcntl2.ph';
    }
}
1;