From: Ben Gras Date: Tue, 5 Jul 2011 14:17:29 +0000 (+0200) Subject: compat.S: succincter and without mktemp X-Git-Tag: v3.2.0~491 X-Git-Url: http://zhaoyanbai.com/repos/doc/mandoc_char.7.html?a=commitdiff_plain;h=afc8f3defa1fbd4460d5e820ba8660144b2d6914;p=minix.git compat.S: succincter and without mktemp --- diff --git a/lib/nbsd_libc/sys-minix/compat.S b/lib/nbsd_libc/sys-minix/compat.S index c6c59d016..acee1e24a 100644 --- a/lib/nbsd_libc/sys-minix/compat.S +++ b/lib/nbsd_libc/sys-minix/compat.S @@ -1,257 +1,90 @@ -.global mktemp -.global mknod -.global ctime -.global difftime -.global gmtime -.global localtime -.global time -.global mktime -.global tzset -.global getitimer -.global setitimer -.global settimeofday -.global nanosleep -.global ctime_r -.global gmtime_r -.global localtime_r -.global time2posix -.global posix2time -.global timegm -.global timeoff -.global timelocal -.global offtime -.global tzsetwall -.global offtime_r -.global localtime_rz -.global ctime_rz -.global mktime_z -.global timelocal_z -.global time2posix_z -.global posix2time_z -.global tzalloc -.global tzfree -.global tzgetname -.global select -.global opendir -.global readdir -.global readdir_r -.global __opendir2 -.global scandir -.global getdents -.global alphasort -.global fts_children -.global fts_close -.global fts_open -.global fts_read -.global fts_set -.global glob -.global globfree -.global dbm_delete -.global dbm_fetch -.global dbm_firstkey -.global dbm_nextkey -.global dbm_store -.global getpwuid -.global getpwnam -.global getpwnam_r -.global getpwuid_r -.global getpwent -.global getpwent_r -.global setjmp -.global longjmp -.global sigsetjmp -.global siglongjmp -.global sigaction -.global sigaddset -.global sigdelset -.global sigemptyset -.global sigfillset -.global sigismember -.global sigpending -.global sigprocmask -.global sigsuspend -.global unsetenv -.global getutent -.global getutxent -.global getutxid -.global getutxline -.global pututxline -.global updwtmpx -.global getlastlogx -.global updlastlogx -.global getutmp -.global getutmpx -.global utime -.global unvis -.global _mktemp -.global __mknod50 -.global __ctime50 -.global __difftime50 -.global __gmtime50 -.global __locatime50 -.global __time50 -.global __mktime50 -.global __tzset50 -.global __getitimer50 -.global __setitimer50 -.global __settimeofday50 -.global __nanosleep50 -.global __ctime_r50 -.global __gmtime_r50 -.global __localtime_r50 -.global __time2posix50 -.global __posix2time50 -.global __timegm50 -.global __timeoff50 -.global __timelocal50 -.global __offtime50 -.global __tzsetwall50 -.global __offtime_r50 -.global __localtime_rz50 -.global __ctime_rz50 -.global __mktime_z50 -.global __timelocal_z50 -.global __time2posix_z50 -.global __posix2time_z50 -.global __tzalloc50 -.global __tzfree50 -.global __tzgetname50 -.global __select50 -.global __opendir30 -.global __readdir30 -.global __readdir_r30 -.global __opendir230 -.global __scandir30 -.global __getdents30 -.global __alphasort30 -.global __fts_children60 -.global __fts_close60 -.global __fts_open60 -.global __fts_read60 -.global __fts_set60 -.global __glob30 -.global __globfree30 -.global __dbm_delete13 -.global __dbm_fetch13 -.global __dbm_firstkey13 -.global __dbm_nextkey13 -.global __dbm_store13 -.global __getpwuid50 -.global __getpwnam50 -.global __getpwnam_r50 -.global __getpwuid_r50 -.global __getpwent50 -.global __getpwent_r50 -.global __setjmp14 -.global __longjmp14 -.global __sigsetjmp14 -.global __siglongjmp14 -.global __sigaction14 -.global __sigaddset14 -.global __sigdelset14 -.global __sigemptyset14 -.global __sigfillset14 -.global __sigismember14 -.global __sigpending14 -.global __sigprocmask14 -.global __sigsuspend14 -.global __unsetenv13 -.global __getutent50 -.global __getutxent50 -.global __getutxid50 -.global __getutxline50 -.global __pututxline50 -.global __updwtmpx50 -.global __getlastlogx50 -.global __updlastlogx50 -.global __getutmp50 -.global __getutmpx50 -.global __utime50 -.global __unvis13 +#define MY_ALIAS(alias, orig) \ + .global alias; \ + .global orig; \ + alias: jmp orig -mknod: jmp __mknod50 -ctime: jmp __ctime50 -difftime: jmp __difftime50 -gmtime: jmp __gmtime50 -localtime: jmp __locatime50 -time: jmp __time50 -mktime: jmp __mktime50 -tzset: jmp __tzset50 -getitimer: jmp __getitimer50 -setitimer: jmp __setitimer50 -settimeofday: jmp __settimeofday50 -nanosleep: jmp __nanosleep50 -ctime_r: jmp __ctime_r50 -gmtime_r: jmp __gmtime_r50 -localtime_r: jmp __localtime_r50 -time2posix: jmp __time2posix50 -posix2time: jmp __posix2time50 -timegm: jmp __timegm50 -timeoff: jmp __timeoff50 -timelocal: jmp __timelocal50 -offtime: jmp __offtime50 -tzsetwall: jmp __tzsetwall50 -offtime_r: jmp __offtime_r50 -localtime_rz: jmp __localtime_rz50 -ctime_rz: jmp __ctime_rz50 -mktime_z: jmp __mktime_z50 -timelocal_z: jmp __timelocal_z50 -time2posix_z: jmp __time2posix_z50 -posix2time_z: jmp __posix2time_z50 -tzalloc: jmp __tzalloc50 -tzfree: jmp __tzfree50 -tzgetname: jmp __tzgetname50 -select: jmp __select50 -opendir: jmp __opendir30 -readdir: jmp __readdir30 -readdir_r: jmp __readdir_r30 -__opendir2: jmp __opendir230 -scandir: jmp __scandir30 -getdents: jmp __getdents30 -alphasort: jmp __alphasort30 -fts_children: jmp __fts_children60 -fts_close: jmp __fts_close60 -fts_open: jmp __fts_open60 -fts_read: jmp __fts_read60 -fts_set: jmp __fts_set60 -glob: jmp __glob30 -globfree: jmp __globfree30 -dbm_delete: jmp __dbm_delete13 -dbm_fetch: jmp __dbm_fetch13 -dbm_firstkey: jmp __dbm_firstkey13 -dbm_nextkey: jmp __dbm_nextkey13 -dbm_store: jmp __dbm_store13 -getpwuid: jmp __getpwuid50 -getpwnam: jmp __getpwnam50 -getpwnam_r: jmp __getpwnam_r50 -getpwuid_r: jmp __getpwuid_r50 -getpwent: jmp __getpwent50 -getpwent_r: jmp __getpwent_r50 -setjmp: jmp __setjmp14 -longjmp: jmp __longjmp14 -sigsetjmp: jmp __sigsetjmp14 -siglongjmp: jmp __siglongjmp14 -sigaction: jmp __sigaction14 -sigaddset: jmp __sigaddset14 -sigdelset: jmp __sigdelset14 -sigemptyset: jmp __sigemptyset14 -sigfillset: jmp __sigfillset14 -sigismember: jmp __sigismember14 -sigpending: jmp __sigpending14 -sigprocmask: jmp __sigprocmask14 -sigsuspend: jmp __sigsuspend14 -unsetenv: jmp __unsetenv13 -getutent: jmp __getutent50 -getutxent: jmp __getutxent50 -getutxid: jmp __getutxid50 -getutxline: jmp __getutxline50 -pututxline: jmp __pututxline50 -updwtmpx: jmp __updwtmpx50 -getlastlogx: jmp __getlastlogx50 -updlastlogx: jmp __updlastlogx50 -getutmp: jmp __getutmp50 -getutmpx: jmp __getutmpx50 -utime: jmp __utime50 -unvis: jmp __unvis13 -mktemp: jmp _mktemp +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(getpwuid, __getpwuid50) +MY_ALIAS(getpwnam, __getpwnam50) +MY_ALIAS(getpwnam_r, __getpwnam_r50) +MY_ALIAS(getpwuid_r, __getpwuid_r50) +MY_ALIAS(getpwent, __getpwent50) +MY_ALIAS(getpwent_r, __getpwent_r50) +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)