forked from open-watcom/open-watcom-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[git-p4: depot-paths = "//depot/openwatcom/": change = 17272 - 37426]
Showing
26,993 changed files
with
3,144,832 additions
and
466,082 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sed -f %OWROOT%\bat\xb.sed <%1 >%2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@echo on | ||
if [%1] == [] goto bldlog | ||
if not exist %1 goto done | ||
call doeb %1 yy. | ||
vi yy | ||
goto done | ||
:bldlog | ||
if not exist build.log goto done | ||
call doeb build.log xx. | ||
vi xx | ||
goto done | ||
:done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <dos.h> | ||
|
||
main( int argc, char *argv[] ) | ||
{ | ||
struct find_t fileinfo; | ||
unsigned rc; | ||
unsigned sectors; | ||
unsigned total_sectors; | ||
|
||
if( argc < 2 ) { | ||
printf( "Usage: filesize path\n" ); | ||
exit( 1 ); | ||
} | ||
total_sectors = 0; | ||
rc = _dos_findfirst( argv[1], _A_NORMAL, &fileinfo ); | ||
while( rc == 0 ) { | ||
sectors = (fileinfo.size + 511) / 512u; | ||
printf( "%-14s %10lu %4u\n", fileinfo.name, fileinfo.size, sectors ); | ||
total_sectors += sectors; | ||
rc = _dos_findnext( &fileinfo ); | ||
} | ||
printf( "Total number of sectors: %u\n", total_sectors ); | ||
printf( "Total amount of space : %lu\n", total_sectors * 512ul ); | ||
if( total_sectors < 2847 ) { | ||
printf( "%u sectors available on 1.44MB diskette\n", | ||
2847 - total_sectors ); | ||
} else if( total_sectors > 2847 ) { | ||
printf( "%u too many sectors to fit onto 1.44MB diskette\n", | ||
total_sectors - 2847 ); | ||
} | ||
} |
Oops, something went wrong.