aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2005-03-01 17:57:45 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2005-03-01 17:57:45 +0000
commit501ce3056105e2d2b8063e96010fcdf993043a81 (patch)
treeb4ea853d99fc03f7a1b42456fcbf81f5e38e543d /sys
parent16ac9febfe1671d9a684b542cd2e99b01d1e3f25 (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')
-rw-r--r--sys/compat/linux/linux_util.c33
-rw-r--r--sys/compat/linux/linux_util.h13
2 files changed, 0 insertions, 46 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;
diff --git a/sys/compat/linux/linux_util.h b/sys/compat/linux/linux_util.h
index a9742744393c..6aad44dd89ee 100644
--- a/sys/compat/linux/linux_util.h
+++ b/sys/compat/linux/linux_util.h
@@ -78,19 +78,6 @@ stackgap_alloc(sgp, sz)
extern const char linux_emul_path[];
int linux_emul_convpath(struct thread *, char *, enum uio_seg, char **, int);
-int linux_emul_find(struct thread *, caddr_t *, char *, char **, int);
-
-#define CHECKALT(td, sgp, path, i) \
- do { \
- int _error; \
- \
- _error = linux_emul_find(td, sgp, path, &path, i); \
- if (_error == EFAULT) \
- return (_error); \
- } while (0)
-
-#define CHECKALTEXIST(td, sgp, path) CHECKALT(td, sgp, path, 0)
-#define CHECKALTCREAT(td, sgp, path) CHECKALT(td, sgp, path, 1)
#define LCONVPATH(td, upath, pathp, i) \
do { \