3 Star 1 Fork 1

Gitee 极速下载 / lynx

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/kurtchen/Lynx
克隆/下载
fixed512.com 1.69 KB
一键复制 编辑 原始数据 按行查看 历史
Kurt Chen 提交于 2014-07-02 16:51 . merge lynx 2.8.9dev.1
$! v = 'f$verify(0)'
$!
$! FIXED512.COM: Uses the FILE utility or SET FILE/ATTR
$! to convert binary stream_LF file headers
$! to FIXED 512.
$!
$! Author: F.Macrides (macrides@sci.wfeb.edu)
$!
$! Usage: @Lynx_Dir:FIXED512 <stream_LF file that's actually binary>
$!
$! Lynx performs the conversion via internal code if the file is
$! recognized as binary. This command procedure can be used externally
$! if that detection failed, e.g., for binary files downloaded from FTP
$! servers with extensions that hadn't been mapped to a binary MIME
$! type in the Lynx configuration files.
$!
$!===========================================================================
$!
$! Get and build Joe Meadow's FILE utility for VAX and AXP:
$! ftp://ftp.wku.edu/vms/fileserv/file.zip
$! and define it here, or system-wide, as a foreign command.
$!
$! FILE := $device:[directory]FILE.EXE
$!-----------------------------------------------------------
$!
$! Just exit and leave the file stream_LF if we didn't get
$! the filename as P1, or if it's not a valid file spec.
$!
$ IF P1 .EQS. "" THEN EXIT
$ IF F$SEARCH(P1) .EQS. "" THEN EXIT
$!-----------------------------------------------------------
$!
$! If we have FILE installed, use it.
$!
$ If f$type(FILE) .eqs. "STRING"
$ Then
$ FILE 'P1'-
/TYPE=FIXED -
/ATTRIBUTES=NOIMPLIEDCC -
/CHARACTERISTICS=BEST_TRY_CONTIGUOUS -
/RECORD_SIZE=512 -
/MAXIMUM_RECORD_SIZE=512
$ EXIT
$ EndIf
$!-----------------------------------------------------------
$!
$! If we get to here, and we're VMS v6+,
$! we'll use SET FILE/ATTR to do it.
$!
$ If f$extract(1,1,f$getsyi("VERSION")) .ge. 6
$ Then
$ SET FILE/ATTR=(RFM:FIX,LRL:512,MRS:512,RAT:NONE) 'P1'
$ EndIf
$ EXIT
C/C++
1
https://gitee.com/mirrors/lynx.git
git@gitee.com:mirrors/lynx.git
mirrors
lynx
lynx
master

搜索帮助