+2011-12-03 Mike Frysinger <vapier@gentoo.org>
+
+ * callback.h (cb_get_string): New prototype.
+
2011-04-14 Mike Frysinger <vapier@gentoo.org>
* remote-sim.h (sim_complete_command): New prototype.
int cb_is_stdout (host_callback *, int);
int cb_is_stderr (host_callback *, int);
+/* Read a string out of the target. */
+int cb_get_string (host_callback *, CB_SYSCALL *, char *, int, unsigned long);
+
/* Perform a system call. */
CB_RC cb_syscall (host_callback *, CB_SYSCALL *);
2011-12-03 Mike Frysinger <vapier@gentoo.org>
+ * syscall.c (cb_get_string): Rename from "get_string".
+ (get_path): Rename get_string call to cb_get_string.
+
+2011-12-03 Mike Frysinger <vapier@gentoo.org>
+
* Make-common.in (VPATH): Add $(srccom).
(DEP): Delete.
(DEPMODE, DEPDIR, depcomp, COMPILE.pre, COMPILE.post, COMPILE,
/* Utility of cb_syscall to fetch a path name or other string from the target.
The result is 0 for success or a host errno value. */
-static int
-get_string (cb, sc, buf, buflen, addr)
+int
+cb_get_string (cb, sc, buf, buflen, addr)
host_callback *cb;
CB_SYSCALL *sc;
char *buf;
int result;
int sysroot_len = strlen (simulator_sysroot);
- result = get_string (cb, sc, buf, MAX_PATH_LEN - sysroot_len, addr);
+ result = cb_get_string (cb, sc, buf, MAX_PATH_LEN - sysroot_len, addr);
if (result == 0)
{
/* Prepend absolute paths with simulator_sysroot. Relative paths