minix/lib/nbsd_libc/sys-minix/compat.S

85 lines
2.7 KiB
ArmAsm

#define MY_ALIAS(alias, orig) \
.global alias; \
.global orig; \
alias: jmp orig
MY_ALIAS(mknod, __mknod50)
MY_ALIAS(ctime, __ctime50)
MY_ALIAS(difftime, __difftime50)
MY_ALIAS(gmtime, __gmtime50)
MY_ALIAS(localtime, __locatime50)
MY_ALIAS(time, __time50)
MY_ALIAS(mktime, __mktime50)
MY_ALIAS(tzset, __tzset50)
MY_ALIAS(getitimer, __getitimer50)
MY_ALIAS(setitimer, __setitimer50)
MY_ALIAS(settimeofday, __settimeofday50)
MY_ALIAS(nanosleep, __nanosleep50)
MY_ALIAS(ctime_r, __ctime_r50)
MY_ALIAS(gmtime_r, __gmtime_r50)
MY_ALIAS(localtime_r, __localtime_r50)
MY_ALIAS(time2posix, __time2posix50)
MY_ALIAS(posix2time, __posix2time50)
MY_ALIAS(timegm, __timegm50)
MY_ALIAS(timeoff, __timeoff50)
MY_ALIAS(timelocal, __timelocal50)
MY_ALIAS(offtime, __offtime50)
MY_ALIAS(tzsetwall, __tzsetwall50)
MY_ALIAS(offtime_r, __offtime_r50)
MY_ALIAS(localtime_rz, __localtime_rz50)
MY_ALIAS(ctime_rz, __ctime_rz50)
MY_ALIAS(mktime_z, __mktime_z50)
MY_ALIAS(timelocal_z, __timelocal_z50)
MY_ALIAS(time2posix_z, __time2posix_z50)
MY_ALIAS(posix2time_z, __posix2time_z50)
MY_ALIAS(tzalloc, __tzalloc50)
MY_ALIAS(tzfree, __tzfree50)
MY_ALIAS(tzgetname, __tzgetname50)
MY_ALIAS(select, __select50)
MY_ALIAS(opendir, __opendir30)
MY_ALIAS(readdir, __readdir30)
MY_ALIAS(readdir_r, __readdir_r30)
MY_ALIAS(__opendir2, __opendir230)
MY_ALIAS(scandir, __scandir30)
MY_ALIAS(getdents, __getdents30)
MY_ALIAS(alphasort, __alphasort30)
MY_ALIAS(fts_children, __fts_children60)
MY_ALIAS(fts_close, __fts_close60)
MY_ALIAS(fts_open, __fts_open60)
MY_ALIAS(fts_read, __fts_read60)
MY_ALIAS(fts_set, __fts_set60)
MY_ALIAS(glob, __glob30)
MY_ALIAS(globfree, __globfree30)
MY_ALIAS(dbm_delete, __dbm_delete13)
MY_ALIAS(dbm_fetch, __dbm_fetch13)
MY_ALIAS(dbm_firstkey, __dbm_firstkey13)
MY_ALIAS(dbm_nextkey, __dbm_nextkey13)
MY_ALIAS(dbm_store, __dbm_store13)
MY_ALIAS(setjmp, __setjmp14)
MY_ALIAS(longjmp, __longjmp14)
MY_ALIAS(sigsetjmp, __sigsetjmp14)
MY_ALIAS(siglongjmp, __siglongjmp14)
MY_ALIAS(sigaction, __sigaction14)
MY_ALIAS(sigaddset, __sigaddset14)
MY_ALIAS(sigdelset, __sigdelset14)
MY_ALIAS(sigemptyset, __sigemptyset14)
MY_ALIAS(sigfillset, __sigfillset14)
MY_ALIAS(sigismember, __sigismember14)
MY_ALIAS(sigpending, __sigpending14)
MY_ALIAS(sigprocmask, __sigprocmask14)
MY_ALIAS(sigsuspend, __sigsuspend14)
MY_ALIAS(unsetenv, __unsetenv13)
MY_ALIAS(getutent, __getutent50)
MY_ALIAS(getutxent, __getutxent50)
MY_ALIAS(getutxid, __getutxid50)
MY_ALIAS(getutxline, __getutxline50)
MY_ALIAS(pututxline, __pututxline50)
MY_ALIAS(updwtmpx, __updwtmpx50)
MY_ALIAS(getlastlogx, __getlastlogx50)
MY_ALIAS(updlastlogx, __updlastlogx50)
MY_ALIAS(getutmp, __getutmp50)
MY_ALIAS(getutmpx, __getutmpx50)
MY_ALIAS(utime, __utime50)
MY_ALIAS(unvis, __unvis13)