summaryrefslogtreecommitdiffstats
path: root/private/crt32/stdio/i386
diff options
context:
space:
mode:
authorAdam <you@example.com>2020-05-17 05:51:50 +0200
committerAdam <you@example.com>2020-05-17 05:51:50 +0200
commite611b132f9b8abe35b362e5870b74bce94a1e58e (patch)
treea5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/crt32/stdio/i386
downloadNT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip
Diffstat (limited to 'private/crt32/stdio/i386')
-rw-r--r--private/crt32/stdio/i386/_initstd.asm17
-rw-r--r--private/crt32/stdio/i386/_inittmp.asm17
-rw-r--r--private/crt32/stdio/i386/cinitstd.asm88
-rw-r--r--private/crt32/stdio/i386/cinittmp.asm92
4 files changed, 214 insertions, 0 deletions
diff --git a/private/crt32/stdio/i386/_initstd.asm b/private/crt32/stdio/i386/_initstd.asm
new file mode 100644
index 000000000..4f20ca63e
--- /dev/null
+++ b/private/crt32/stdio/i386/_initstd.asm
@@ -0,0 +1,17 @@
+ page ,132
+
+;*******
+;
+; Alternate form of CINITSTD.ASM
+;
+; The MIPS C Compiler does not prepend underscores to C
+; variables and functions like the I386 C Compiler does.
+;
+; The EQUate below will yield an object file
+; which will be appropriate for MIPS COFF format.
+;
+;*******
+
+NO_UNDERSCORE equ 1
+
+include i386\cinitstd.asm
diff --git a/private/crt32/stdio/i386/_inittmp.asm b/private/crt32/stdio/i386/_inittmp.asm
new file mode 100644
index 000000000..2839c59f8
--- /dev/null
+++ b/private/crt32/stdio/i386/_inittmp.asm
@@ -0,0 +1,17 @@
+ page ,132
+
+;*******
+;
+; Alternate form of CINITTMP.ASM
+;
+; The MIPS C Compiler does not prepend underscores to C
+; variables and functions like the I386 C Compiler does.
+;
+; The EQUate below will yield an object file
+; which will be appropriate for MIPS COFF format.
+;
+;*******
+
+NO_UNDERSCORE equ 1
+
+include i386\cinittmp.asm
diff --git a/private/crt32/stdio/i386/cinitstd.asm b/private/crt32/stdio/i386/cinitstd.asm
new file mode 100644
index 000000000..b59dfaadf
--- /dev/null
+++ b/private/crt32/stdio/i386/cinitstd.asm
@@ -0,0 +1,88 @@
+ page ,132
+ title cinittmp - C Run-Time Termination for STDIO Buffer Flushing
+;***
+;cinittmp.asm - WIN32 C Run-Time Initialization for the temporary file function
+;
+; Copyright (c) 1992, Microsoft Corporation. All rights reserved.
+;
+;Purpose:
+; This module defines the symbol _cflush which is referenced by those
+; modules that require the _endstdio() terminator. This module places
+; the address of the _endstdio() terminator in the pre-terminator table.
+;
+;Notes:
+;
+;Revision History:
+; 03-19-92 SKS Module created.
+; 03-24-92 SKS Added MIPS support (NO_UNDERSCORE)
+; 04-29-92 SKS Changed erroneous XP$C to XP$X
+; 04-30-92 SKS Add "offset FLAT:" to get correct fixups for OMF objs
+; 08-06-92 SKS Revised to use new section names and macros
+;
+;*******************************************************************************
+
+.xlist
+include cruntime.inc
+include defsects.inc
+.list
+
+ifndef _WIN32_
+.err
+%out _WIN32_ MUST be defined!
+endif
+
+
+ifndef NO_UNDERSCORE ; I386 VERSION *************************
+
+
+ extrn _endstdio:NEAR
+
+
+beginSection XPX
+
+ dd offset FLAT: _endstdio
+
+endSection XPX
+
+
+ .DATA
+
+;*
+;* _cflush is a dummy variable used to pull in _endstdio() when
+;* any STDIO routine is included in the user program.
+;*
+
+ public _cflush
+
+_cflush dd ?
+
+
+else ; NO_UNDERSCORE ; MIPS VERSION *************************
+
+
+ extrn endstdio:NEAR
+
+
+beginSection XPX
+
+ dd offset FLAT: endstdio
+
+endSection XPX
+
+
+ .DATA
+
+;*
+;* _cflush is a dummy variable used to pull in _endstdio() when
+;* any STDIO routine is included in the user program.
+;*
+
+ public cflush
+
+cflush dd ?
+
+
+endif ; NO_UNDERSCORE ; **** VERSION *************************
+
+
+ end
diff --git a/private/crt32/stdio/i386/cinittmp.asm b/private/crt32/stdio/i386/cinittmp.asm
new file mode 100644
index 000000000..de1c4854a
--- /dev/null
+++ b/private/crt32/stdio/i386/cinittmp.asm
@@ -0,0 +1,92 @@
+ page ,132
+ title cinittmp - C Run-Time Terminator for temp file functions
+;***
+;cinittmp.asm - WIN32 C Run-Time Terminator for the temporary file function
+;
+; Copyright (c) 1992, Microsoft Corporation. All rights reserved.
+;
+;Purpose:
+; Termination entry for the tmpnam() and _tempnam() functions
+;
+;Notes:
+; The three global variables included here are referenced by tmpnam()
+; and _tempnam() and will force the inclusion this module and _rmtmp()
+; if either of tmpnam() or _tempnam() is used. This module places the
+; address of _rmtmp() in the terminator table.
+;
+;Revision History:
+; 03-19-92 SKS Module created.
+; 03-24-92 SKS Added MIPS support (NO_UNDERSCORE)
+; 04-29-92 SKS Changed erroneous XP$C to XP$X
+; 04-30-92 SKS Add "offset FLAT:" to get correct fixups for OMF objs
+; 08-06-92 SKS Revised to use new section names and macros
+;
+;*******************************************************************************
+
+.xlist
+include cruntime.inc
+include defsects.inc
+.list
+
+ifndef _WIN32_
+.err
+%out _WIN32_ MUST be defined!
+endif
+
+
+ifndef NO_UNDERSCORE ; I386 VERSION *************************
+
+
+ extrn _rmtmp:NEAR
+
+
+beginSection XPX
+
+ dd offset FLAT: _rmtmp
+
+endSection XPX
+
+
+ .DATA
+;*
+;* Definitions for _tmpoff, _tempoff and _old_pfxlen. These will cause this
+;* module to be linked in whenever the termination code needs it.
+;*
+
+ public _tmpoff, _tempoff, _old_pfxlen
+
+_tmpoff dd 1
+_tempoff dd 1
+_old_pfxlen dd 0
+
+
+else ; NO_UNDERSCORE ; MIPS VERSION *************************
+
+
+ extrn rmtmp:NEAR
+
+
+beginSection XPX
+
+ dd offset FLAT: rmtmp
+
+endSection XPX
+
+
+ .DATA
+;*
+;* Definitions for _tmpoff, _tempoff and _old_pfxlen. These will cause this
+;* module to be linked in whenever the termination code needs it.
+;*
+
+ public tmpoff, tempoff, old_pfxlen
+
+tmpoff dd 1
+tempoff dd 1
+old_pfxlen dd 0
+
+
+endif ; NO_UNDERSCORE ; **** VERSION *************************
+
+
+ end