diff options
author | John Baldwin <jhb@FreeBSD.org> | 2005-03-01 17:57:45 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2005-03-01 17:57:45 +0000 |
commit | 501ce3056105e2d2b8063e96010fcdf993043a81 (patch) | |
tree | b4ea853d99fc03f7a1b42456fcbf81f5e38e543d /sys/compat/linux/linux_util.c | |
parent | 16ac9febfe1671d9a684b542cd2e99b01d1e3f25 (diff) |
Remove linux_emul_find() and the CHECKALT*() macros as they are no longer
used.
Notes
Notes:
svn path=/head/; revision=142939
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 9b18bcefdb33..b0a639167329 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; |