2ef81c969979b075979a9bac64467ce07e07a51e
[reactos.git] / lib / sdk / crt / oldnames-msvcrt.S
1
2 #include <asm.inc>
3
4 #ifdef _M_IX86
5 #define SYM(name) _##name
6 #define IMPSYM(name) __imp__##name
7 #else
8 #define SYM(name) name
9 #define IMPSYM(name) __imp_##name
10 #endif
11
12 MACRO(CREATE_ALIAS1, alias, target)
13 #ifdef _USE_ML
14 EXTERN SYM(&target):PROC
15 ALIAS <SYM(&alias)> = <SYM(&target)>
16 #else
17 .weakref SYM(&alias), SYM(&target)
18 #endif
19 ENDM
20
21 MACRO(CREATE_ALIAS2, alias, target)
22 #ifdef _USE_ML
23 EXTERN IMPSYM(&target):PROC
24 ALIAS <IMPSYM(&alias)> = <IMPSYM(&target)>
25 #else
26 .weakref IMPSYM(&alias), IMPSYM(&target)
27 #endif
28 ENDM
29
30 MACRO(CREATE_ALIAS, alias, target)
31 CREATE_ALIAS1 &alias, &target
32 CREATE_ALIAS2 &alias, &target
33 ENDM
34
35 CREATE_ALIAS access, _access
36 CREATE_ALIAS chdir, _chdir
37 CREATE_ALIAS chmod, _chmod
38 CREATE_ALIAS chsize, _chsize
39 CREATE_ALIAS close, _close
40 CREATE_ALIAS creat, _creat
41 CREATE_ALIAS cwait, _cwait
42 CREATE_ALIAS2 daylight, _daylight
43 CREATE_ALIAS dup, _dup
44 CREATE_ALIAS dup2, _dup2
45 CREATE_ALIAS ecvt, _ecvt
46 CREATE_ALIAS eof, _eof
47 CREATE_ALIAS execl, _execl
48 CREATE_ALIAS execle, _execle
49 CREATE_ALIAS execlp, _execlp
50 CREATE_ALIAS execlpe, _execlpe
51 CREATE_ALIAS execv, _execv
52 CREATE_ALIAS execve, _execve
53 CREATE_ALIAS execvp, _execvp
54 CREATE_ALIAS execvpe, _execvpe
55 CREATE_ALIAS fcvt, _fcvt
56 CREATE_ALIAS fdopen, _fdopen
57 CREATE_ALIAS fgetchar, _fgetchar
58 CREATE_ALIAS fgetwchar, _fgetwchar
59 CREATE_ALIAS filelength, _filelength
60 CREATE_ALIAS fileno, _fileno
61 CREATE_ALIAS fpreset, _fpreset
62 CREATE_ALIAS fputchar, _fputchar
63 CREATE_ALIAS fputwchar, _fputwchar
64 CREATE_ALIAS fstat, _fstat
65 CREATE_ALIAS ftime, _ftime
66 CREATE_ALIAS gcvt, _gcvt
67 CREATE_ALIAS getch, _getch
68 CREATE_ALIAS getche, _getche
69 CREATE_ALIAS getcwd, _getcwd
70 CREATE_ALIAS getpid, _getpid
71 CREATE_ALIAS getw, _getw
72 CREATE_ALIAS heapwalk, _heapwalk
73 CREATE_ALIAS isatty, _isatty
74 CREATE_ALIAS itoa, _itoa
75 CREATE_ALIAS kbhit, _kbhit
76 CREATE_ALIAS lfind, _lfind
77 CREATE_ALIAS lsearch, _lsearch
78 CREATE_ALIAS lseek, _lseek
79 CREATE_ALIAS ltoa, _ltoa
80 CREATE_ALIAS memccpy, _memccpy
81 CREATE_ALIAS memicmp, _memicmp
82 CREATE_ALIAS mkdir, _mkdir
83 CREATE_ALIAS mktemp, _mktemp
84 CREATE_ALIAS open, _open
85 CREATE_ALIAS pclose, _pclose
86 CREATE_ALIAS popen, _popen
87 CREATE_ALIAS putch, _putch
88 CREATE_ALIAS putenv, _putenv
89 CREATE_ALIAS putw, _putw
90 CREATE_ALIAS read, _read
91 CREATE_ALIAS rmdir, _rmdir
92 CREATE_ALIAS rmtmp, _rmtmp
93 CREATE_ALIAS searchenv, _searchenv
94 CREATE_ALIAS setmode, _setmode
95 CREATE_ALIAS snprintf, _snprintf
96 CREATE_ALIAS sopen, _sopen
97 CREATE_ALIAS spawnl, _spawnl
98 CREATE_ALIAS spawnle, _spawnle
99 CREATE_ALIAS spawnlp, _spawnlp
100 CREATE_ALIAS spawnlpe, _spawnlpe
101 CREATE_ALIAS spawnv, _spawnv
102 CREATE_ALIAS spawnve, _spawnve
103 CREATE_ALIAS spawnvp, _spawnvp
104 CREATE_ALIAS spawnvpe, _spawnvpe
105 CREATE_ALIAS stat, _stat
106 CREATE_ALIAS strcmpi, _strcmpi
107 CREATE_ALIAS strdup, _strdup
108 CREATE_ALIAS stricmp, _stricmp
109 CREATE_ALIAS stricoll, _stricoll
110 CREATE_ALIAS strlwr, _strlwr
111 CREATE_ALIAS strnicmp, _strnicmp
112 CREATE_ALIAS strnset, _strnset
113 CREATE_ALIAS strrev, _strrev
114 CREATE_ALIAS strset, _strset
115 CREATE_ALIAS strupr, _strupr
116 CREATE_ALIAS swab, _swab
117 CREATE_ALIAS tell, _tell
118 CREATE_ALIAS tempnam, _tempnam
119 CREATE_ALIAS2 timezone, _timezone
120 CREATE_ALIAS2 tzname, _tzname
121 CREATE_ALIAS tzset, _tzset
122 CREATE_ALIAS umask, _umask
123 CREATE_ALIAS ungetch, _ungetch
124 CREATE_ALIAS unlink, _unlink
125 CREATE_ALIAS utime, _utime
126 CREATE_ALIAS wcsdup, _wcsdup
127 CREATE_ALIAS wcsicmp, _wcsicmp
128 CREATE_ALIAS wcsicoll, _wcsicoll
129 CREATE_ALIAS wcslwr, _wcslwr
130 CREATE_ALIAS wcsnicmp, _wcsnicmp
131 CREATE_ALIAS wcsnset, _wcsnset
132 CREATE_ALIAS wcsrev, _wcsrev
133 CREATE_ALIAS wcsset, _wcsset
134 CREATE_ALIAS wcsupr, _wcsupr
135 CREATE_ALIAS wpopen, _wpopen
136 CREATE_ALIAS write, _write
137 // non-ANSI functions declared in math.h
138 CREATE_ALIAS j0, _j0
139 CREATE_ALIAS j1, _j1
140 CREATE_ALIAS jn, _jn
141 CREATE_ALIAS y0, _y0
142 CREATE_ALIAS y1, _y1
143 CREATE_ALIAS yn, _yn
144 CREATE_ALIAS chgsign, _chgsign
145 CREATE_ALIAS scalb, _scalb
146 CREATE_ALIAS finite, _finite
147 CREATE_ALIAS fpclass, _fpclass
148 // C99 functions
149 CREATE_ALIAS cabs, _cabs
150 CREATE_ALIAS hypot, _hypot
151 CREATE_ALIAS logb, _logb
152 CREATE_ALIAS nextafter, _nextafter
153
154 END
155