Take care to avoid having "strong" and "weak" symbols of the same name in

libc_r.
This commit is contained in:
Jason Evans 2000-03-16 02:14:41 +00:00
parent 06e88916ef
commit b479399f73
10 changed files with 14 additions and 12 deletions

View File

@ -104,14 +104,10 @@ END(___CONCAT(_thread_sys_,name))
#define PSYSCALL(name) \
PLEAF(name,0); /* XXX # of args? */ \
WEAK_ALIAS(__CONCAT(_,name), __CONCAT(_thread_sys_,name)); \
WEAK_ALIAS(name, __CONCAT(_,name)); \
CALLSYS_ERROR(name)
#define PRSYSCALL(name) \
PLEAF(name,0); /* XXX # of args? */ \
WEAK_ALIAS(__CONCAT(_,name), __CONCAT(_thread_sys_,name)); \
WEAK_ALIAS(name, __CONCAT(_,name)); \
CALLSYS_ERROR(name) \
RET; \
PEND(name)

View File

@ -73,10 +73,6 @@
*/
#define PSYSCALL(x) 2: PIC_PROLOGUE; jmp PIC_PLT(HIDENAME(cerror)); \
ENTRY(__CONCAT(_thread_sys_,x)); \
.weak CNAME(__CONCAT(_,x)); \
.set CNAME(__CONCAT(_,x)),CNAME(__CONCAT(_thread_sys_,x));\
.weak CNAME(x); \
.set CNAME(x),CNAME(__CONCAT(_,x)); \
lea __CONCAT(SYS_,x),%eax; KERNCALL; jb 2b
#define PRSYSCALL(x) PSYSCALL(x); ret
#define PPSEUDO(x,y) ENTRY(__CONCAT(_thread_sys_,x)); \

View File

@ -51,4 +51,6 @@ __creat(path, mode)
return(_open(path, O_WRONLY|O_CREAT|O_TRUNC, mode));
}
#ifndef _THREAD_SAFE
__weak_reference(__creat, creat);
#endif

View File

@ -49,4 +49,6 @@ __pause()
return sigpause(sigblock(0L));
}
#ifndef _THREAD_SAFE
__weak_reference(__pause, pause);
#endif

View File

@ -68,4 +68,6 @@ __sleep(seconds)
(time_remaining.tv_nsec != 0)); /* round up */
}
#ifndef _THREAD_SAFE
__weak_reference(__sleep, sleep);
#endif

View File

@ -195,7 +195,9 @@ __tcdrain(fd)
return (ioctl(fd, TIOCDRAIN, 0));
}
#ifndef _THREAD_SAFE
__weak_reference(__tcdrain, tcdrain);
#endif
int
tcflush(fd, which)

View File

@ -49,4 +49,6 @@ __wait(istat)
return (wait4(WAIT_ANY, istat, 0, (struct rusage *)0));
}
#ifndef _THREAD_SAFE
__weak_reference(__wait, wait);
#endif

View File

@ -55,4 +55,6 @@ __waitpid(pid, istat, options)
return (wait4(pid, istat, options, (struct rusage *)0));
}
#ifndef _THREAD_SAFE
__weak_reference(__waitpid, waitpid);
#endif

View File

@ -73,10 +73,6 @@
*/
#define PSYSCALL(x) 2: PIC_PROLOGUE; jmp PIC_PLT(HIDENAME(cerror)); \
ENTRY(__CONCAT(_thread_sys_,x)); \
.weak CNAME(__CONCAT(_,x)); \
.set CNAME(__CONCAT(_,x)),CNAME(__CONCAT(_thread_sys_,x));\
.weak CNAME(x); \
.set CNAME(x),CNAME(__CONCAT(_,x)); \
lea __CONCAT(SYS_,x),%eax; KERNCALL; jb 2b
#define PRSYSCALL(x) PSYSCALL(x); ret
#define PPSEUDO(x,y) ENTRY(__CONCAT(_thread_sys_,x)); \

View File

@ -94,4 +94,6 @@ __system(command)
return(pid == -1 ? -1 : pstat);
}
#ifndef _THREAD_SAFE
__weak_reference(__system, system);
#endif