Use __strong_reference() instead of __weak_reference() to assure that the

weak symbols of the same name are not used.
This commit is contained in:
Jason Evans 2000-01-29 22:53:55 +00:00
parent 7d1c6de8b7
commit d77639f25f
60 changed files with 60 additions and 60 deletions

View File

@ -107,5 +107,5 @@ _accept(int fd, struct sockaddr * name, socklen_t *namelen)
return (ret);
}
__weak_reference(_accept, accept);
__strong_reference(_accept, accept);
#endif

View File

@ -47,5 +47,5 @@ _aio_suspend(const struct aiocb * const iocbs[], int niocb, const struct
return ret;
}
__weak_reference(_aio_suspend, aio_suspend);
__strong_reference(_aio_suspend, aio_suspend);
#endif

View File

@ -49,5 +49,5 @@ _bind(int fd, const struct sockaddr * name, socklen_t namelen)
return (ret);
}
__weak_reference(_bind, bind);
__strong_reference(_bind, bind);
#endif

View File

@ -76,5 +76,5 @@ _connect(int fd, const struct sockaddr * name, socklen_t namelen)
return (ret);
}
__weak_reference(_connect, connect);
__strong_reference(_connect, connect);
#endif

View File

@ -68,5 +68,5 @@ _dup(int fd)
return (ret);
}
__weak_reference(_dup, dup);
__strong_reference(_dup, dup);
#endif

View File

@ -84,5 +84,5 @@ _dup2(int fd, int newfd)
return (ret);
}
__weak_reference(_dup2, dup2);
__strong_reference(_dup2, dup2);
#endif

View File

@ -111,5 +111,5 @@ _execve(const char *name, char *const * argv, char *const * envp)
return (ret);
}
__weak_reference(_execve, execve);
__strong_reference(_execve, execve);
#endif

View File

@ -77,7 +77,7 @@ void __exit(int status)
_thread_sys__exit(status);
}
__weak_reference(__exit, _exit);
__strong_reference(__exit, _exit);
void
_thread_exit(char *fname, int lineno, char *string)

View File

@ -23,5 +23,5 @@ _fchflags(int fd, u_long flags)
return (ret);
}
__weak_reference(_fchflags, fchflags);
__strong_reference(_fchflags, fchflags);
#endif

View File

@ -49,5 +49,5 @@ _fchmod(int fd, mode_t mode)
return (ret);
}
__weak_reference(_fchmod, fchmod);
__strong_reference(_fchmod, fchmod);
#endif

View File

@ -50,5 +50,5 @@ _fchown(int fd, uid_t owner, gid_t group)
return (ret);
}
__weak_reference(_fchown, fchown);
__strong_reference(_fchown, fchown);
#endif

View File

@ -48,5 +48,5 @@ _flock(int fd, int operation)
return (ret);
}
__weak_reference(_flock, flock);
__strong_reference(_flock, flock);
#endif

View File

@ -221,5 +221,5 @@ _fork(void)
return (ret);
}
__weak_reference(_fork, fork);
__strong_reference(_fork, fork);
#endif

View File

@ -56,5 +56,5 @@ _fstat(int fd, struct stat * buf)
return (ret);
}
__weak_reference(_fstat, fstat);
__strong_reference(_fstat, fstat);
#endif

View File

@ -56,5 +56,5 @@ _fstatfs(int fd, struct statfs * buf)
return (ret);
}
__weak_reference(_fstatfs, fstatfs);
__strong_reference(_fstatfs, fstatfs);
#endif

View File

@ -49,5 +49,5 @@ _getdirentries(int fd, char *buf, int nbytes, long *basep)
return (ret);
}
__weak_reference(_getdirentries, getdirentries);
__strong_reference(_getdirentries, getdirentries);
#endif

View File

@ -49,5 +49,5 @@ _getpeername(int fd, struct sockaddr * peer, socklen_t *paddrlen)
return ret;
}
__weak_reference(_getpeername, getpeername);
__strong_reference(_getpeername, getpeername);
#endif

View File

@ -49,5 +49,5 @@ _getsockname(int s, struct sockaddr * name, socklen_t *namelen)
return ret;
}
__weak_reference(_getsockname, getsockname);
__strong_reference(_getsockname, getsockname);
#endif

View File

@ -50,5 +50,5 @@ _getsockopt(int fd, int level, int optname, void *optval, socklen_t
return ret;
}
__weak_reference(_getsockopt, getsockopt);
__strong_reference(_getsockopt, getsockopt);
#endif

View File

@ -77,5 +77,5 @@ _ioctl(int fd, unsigned long request,...)
return (ret);
}
__weak_reference(_ioctl, ioctl);
__strong_reference(_ioctl, ioctl);
#endif

View File

@ -49,5 +49,5 @@ _listen(int fd, int backlog)
return (ret);
}
__weak_reference(_listen, listen);
__strong_reference(_listen, listen);
#endif

View File

@ -52,5 +52,5 @@ _pipe(int fds[2])
return (ret);
}
__weak_reference(_pipe, pipe);
__strong_reference(_pipe, pipe);
#endif

View File

@ -97,5 +97,5 @@ _poll(struct pollfd *fds, unsigned int nfds, int timeout)
return (ret);
}
__weak_reference(_poll, poll);
__strong_reference(_poll, poll);
#endif

View File

@ -91,5 +91,5 @@ _readv(int fd, const struct iovec * iov, int iovcnt)
return (ret);
}
__weak_reference(_readv, readv);
__strong_reference(_readv, readv);
#endif

View File

@ -72,5 +72,5 @@ _recvfrom(int fd, void *buf, size_t len, int flags, struct sockaddr * from,
return (ret);
}
__weak_reference(_recvfrom, recvfrom);
__strong_reference(_recvfrom, recvfrom);
#endif

View File

@ -71,5 +71,5 @@ _recvmsg(int fd, struct msghdr *msg, int flags)
return (ret);
}
__weak_reference(_recvmsg, recvmsg);
__strong_reference(_recvmsg, recvmsg);
#endif

View File

@ -204,5 +204,5 @@ _select(int numfds, fd_set * readfds, fd_set * writefds, fd_set * exceptfds,
return (ret);
}
__weak_reference(_select, select);
__strong_reference(_select, select);
#endif

View File

@ -70,5 +70,5 @@ _sendmsg(int fd, const struct msghdr *msg, int flags)
return (ret);
}
__weak_reference(_sendmsg, sendmsg);
__strong_reference(_sendmsg, sendmsg);
#endif

View File

@ -71,5 +71,5 @@ _sendto(int fd, const void *msg, size_t len, int flags, const struct
return (ret);
}
__weak_reference(_sendto, sendto);
__strong_reference(_sendto, sendto);
#endif

View File

@ -50,5 +50,5 @@ _setsockopt(int fd, int level, int optname, const void *optval, socklen_t
return ret;
}
__weak_reference(_setsockopt, setsockopt);
__strong_reference(_setsockopt, setsockopt);
#endif

View File

@ -70,5 +70,5 @@ _shutdown(int fd, int how)
return (ret);
}
__weak_reference(_shutdown, shutdown);
__strong_reference(_shutdown, shutdown);
#endif

View File

@ -106,5 +106,5 @@ _sigaction(int sig, const struct sigaction * act, struct sigaction * oact)
return (ret);
}
__weak_reference(_sigaction, sigaction);
__strong_reference(_sigaction, sigaction);
#endif

View File

@ -54,5 +54,5 @@ _sigpending(sigset_t * set)
return (ret);
}
__weak_reference(_sigpending, sigpending);
__strong_reference(_sigpending, sigpending);
#endif

View File

@ -90,5 +90,5 @@ _sigprocmask(int how, const sigset_t * set, sigset_t * oset)
return (ret);
}
__weak_reference(_sigprocmask, sigprocmask);
__strong_reference(_sigprocmask, sigprocmask);
#endif

View File

@ -56,5 +56,5 @@ _socket(int af, int type, int protocol)
return (fd);
}
__weak_reference(_socket, socket);
__strong_reference(_socket, socket);
#endif

View File

@ -54,5 +54,5 @@ _socketpair(int af, int type, int protocol, int pair[2])
return (ret);
}
__weak_reference(_socketpair, socketpair);
__strong_reference(_socketpair, socketpair);
#endif

View File

@ -65,5 +65,5 @@ _wait4(pid_t pid, int *istat, int options, struct rusage * rusage)
return (ret);
}
__weak_reference(_wait4, wait4);
__strong_reference(_wait4, wait4);
#endif

View File

@ -201,5 +201,5 @@ _writev(int fd, const struct iovec * iov, int iovcnt)
return (ret);
}
__weak_reference(_writev, writev);
__strong_reference(_writev, writev);
#endif

View File

@ -47,5 +47,5 @@ _aio_suspend(const struct aiocb * const iocbs[], int niocb, const struct
return ret;
}
__weak_reference(_aio_suspend, aio_suspend);
__strong_reference(_aio_suspend, aio_suspend);
#endif

View File

@ -77,7 +77,7 @@ void __exit(int status)
_thread_sys__exit(status);
}
__weak_reference(__exit, _exit);
__strong_reference(__exit, _exit);
void
_thread_exit(char *fname, int lineno, char *string)

View File

@ -221,5 +221,5 @@ _fork(void)
return (ret);
}
__weak_reference(_fork, fork);
__strong_reference(_fork, fork);
#endif

View File

@ -97,5 +97,5 @@ _poll(struct pollfd *fds, unsigned int nfds, int timeout)
return (ret);
}
__weak_reference(_poll, poll);
__strong_reference(_poll, poll);
#endif

View File

@ -91,5 +91,5 @@ _readv(int fd, const struct iovec * iov, int iovcnt)
return (ret);
}
__weak_reference(_readv, readv);
__strong_reference(_readv, readv);
#endif

View File

@ -204,5 +204,5 @@ _select(int numfds, fd_set * readfds, fd_set * writefds, fd_set * exceptfds,
return (ret);
}
__weak_reference(_select, select);
__strong_reference(_select, select);
#endif

View File

@ -106,5 +106,5 @@ _sigaction(int sig, const struct sigaction * act, struct sigaction * oact)
return (ret);
}
__weak_reference(_sigaction, sigaction);
__strong_reference(_sigaction, sigaction);
#endif

View File

@ -54,5 +54,5 @@ _sigpending(sigset_t * set)
return (ret);
}
__weak_reference(_sigpending, sigpending);
__strong_reference(_sigpending, sigpending);
#endif

View File

@ -90,5 +90,5 @@ _sigprocmask(int how, const sigset_t * set, sigset_t * oset)
return (ret);
}
__weak_reference(_sigprocmask, sigprocmask);
__strong_reference(_sigprocmask, sigprocmask);
#endif

View File

@ -65,5 +65,5 @@ _wait4(pid_t pid, int *istat, int options, struct rusage * rusage)
return (ret);
}
__weak_reference(_wait4, wait4);
__strong_reference(_wait4, wait4);
#endif

View File

@ -201,5 +201,5 @@ _writev(int fd, const struct iovec * iov, int iovcnt)
return (ret);
}
__weak_reference(_writev, writev);
__strong_reference(_writev, writev);
#endif

View File

@ -47,5 +47,5 @@ _aio_suspend(const struct aiocb * const iocbs[], int niocb, const struct
return ret;
}
__weak_reference(_aio_suspend, aio_suspend);
__strong_reference(_aio_suspend, aio_suspend);
#endif

View File

@ -77,7 +77,7 @@ void __exit(int status)
_thread_sys__exit(status);
}
__weak_reference(__exit, _exit);
__strong_reference(__exit, _exit);
void
_thread_exit(char *fname, int lineno, char *string)

View File

@ -221,5 +221,5 @@ _fork(void)
return (ret);
}
__weak_reference(_fork, fork);
__strong_reference(_fork, fork);
#endif

View File

@ -97,5 +97,5 @@ _poll(struct pollfd *fds, unsigned int nfds, int timeout)
return (ret);
}
__weak_reference(_poll, poll);
__strong_reference(_poll, poll);
#endif

View File

@ -91,5 +91,5 @@ _readv(int fd, const struct iovec * iov, int iovcnt)
return (ret);
}
__weak_reference(_readv, readv);
__strong_reference(_readv, readv);
#endif

View File

@ -204,5 +204,5 @@ _select(int numfds, fd_set * readfds, fd_set * writefds, fd_set * exceptfds,
return (ret);
}
__weak_reference(_select, select);
__strong_reference(_select, select);
#endif

View File

@ -106,5 +106,5 @@ _sigaction(int sig, const struct sigaction * act, struct sigaction * oact)
return (ret);
}
__weak_reference(_sigaction, sigaction);
__strong_reference(_sigaction, sigaction);
#endif

View File

@ -54,5 +54,5 @@ _sigpending(sigset_t * set)
return (ret);
}
__weak_reference(_sigpending, sigpending);
__strong_reference(_sigpending, sigpending);
#endif

View File

@ -90,5 +90,5 @@ _sigprocmask(int how, const sigset_t * set, sigset_t * oset)
return (ret);
}
__weak_reference(_sigprocmask, sigprocmask);
__strong_reference(_sigprocmask, sigprocmask);
#endif

View File

@ -65,5 +65,5 @@ _wait4(pid_t pid, int *istat, int options, struct rusage * rusage)
return (ret);
}
__weak_reference(_wait4, wait4);
__strong_reference(_wait4, wait4);
#endif

View File

@ -201,5 +201,5 @@ _writev(int fd, const struct iovec * iov, int iovcnt)
return (ret);
}
__weak_reference(_writev, writev);
__strong_reference(_writev, writev);
#endif