diff options
author | jhb <jhb@FreeBSD.org> | 2005-03-01 17:57:45 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-03-01 17:57:45 +0000 |
commit | 407a285a6fdf784521a2aa699c90ab60c3fd60fe (patch) | |
tree | b4ea853d99fc03f7a1b42456fcbf81f5e38e543d /sys/compat/linux/linux_util.c | |
parent | 75659347a5c28dc820ac281458504dd1565537ba (diff) | |
download | FreeBSD-src-407a285a6fdf784521a2aa699c90ab60c3fd60fe.zip FreeBSD-src-407a285a6fdf784521a2aa699c90ab60c3fd60fe.tar.gz |
Remove linux_emul_find() and the CHECKALT*() macros as they are no longer
used.
Diffstat (limited to 'sys/compat/linux/linux_util.c')
-rw-r--r-- | sys/compat/linux/linux_util.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/sys/compat/linux/linux_util.c b/sys/compat/linux/linux_util.c index 9b18bce..b0a6391 100644 --- a/sys/compat/linux/linux_util.c +++ b/sys/compat/linux/linux_util.c @@ -57,39 +57,6 @@ const char linux_emul_path[] = "/compat/linux"; * be in exists. */ int -linux_emul_find(td, sgp, path, pbuf, cflag) - struct thread *td; - caddr_t *sgp; /* Pointer to stackgap memory */ - char *path; - char **pbuf; - int cflag; -{ - char *newpath; - size_t sz; - int error; - - error = linux_emul_convpath(td, path, (sgp == NULL) ? UIO_SYSSPACE : - UIO_USERSPACE, &newpath, cflag); - if (newpath == NULL) - return (error); - - if (sgp == NULL) { - *pbuf = newpath; - return (error); - } - - sz = strlen(newpath); - *pbuf = stackgap_alloc(sgp, sz + 1); - if (*pbuf != NULL) - error = copyout(newpath, *pbuf, sz + 1); - else - error = ENAMETOOLONG; - free(newpath, M_TEMP); - - return (error); -} - -int linux_emul_convpath(td, path, pathseg, pbuf, cflag) struct thread *td; char *path; |