-
Notifications
You must be signed in to change notification settings - Fork 59
/
redefine.lst
40 lines (40 loc) · 1.02 KB
/
redefine.lst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# vim: set ft=conf:
#
# Note: blank lines are not permitted.
#
# These symbols should be renamed because they clash with other symbols, or we
# want to install wrappers.
#
# Magic symbols that we want to provide.
main __unix_main
errno __unix_errno
# Incompatible libc calls.
stat __unix_stat
fstat __unix_fstat
open __unix_open
uname __unix_uname
times __unix_times
sysi86 __unix_sysi86
ioctl __unix_ioctl
fcntl __unix_fcntl
read __unix_read
access __unix_access
readdir __unix_readdir
signal __unix_signal
# 1-2-3 often uses memcpy with overlapping ranges. This was a bug even on UNIX,
# but worked due to implementation quirks. This will cause a minor performance
# penalty, but avoid these hard to track down bugs, see issue #45.
memcpy memmove
# Difficult symbol names.
banner_printed.0 banner_printed
inprint.0 inprint
# 1-2-3 provides its own math functions. However, modern libm outperforms them.
# Let's map them to libm counterparts.
ksin sin
kcos cos
ktan tan
katan2 atan2
kasin asin
kacos acos
# drem is obsolete.
drem remainder