[testsuite] Unbuffer the output in gdb.base/multi-forks.c
[deliverable/binutils-gdb.git] / gdb / inf-child.c
index 92134de65cbb00452198644098da32069d904808..7909b0c2a42d344263f9c61abad691a10db248fa 100644 (file)
@@ -1,6 +1,6 @@
 /* Base/prototype target for default child (native) targets.
 
-   Copyright (C) 1988-2015 Free Software Foundation, Inc.
+   Copyright (C) 1988-2016 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -208,7 +208,8 @@ inf_child_pid_to_exec_file (struct target_ops *self, int pid)
 
 static int
 inf_child_fileio_open (struct target_ops *self,
-                      const char *filename, int flags, int mode,
+                      struct inferior *inf, const char *filename,
+                      int flags, int mode, int warn_if_slow,
                       int *target_errno)
 {
   int nat_flags;
@@ -318,7 +319,8 @@ inf_child_fileio_close (struct target_ops *self, int fd, int *target_errno)
 
 static int
 inf_child_fileio_unlink (struct target_ops *self,
-                        const char *filename, int *target_errno)
+                        struct inferior *inf, const char *filename,
+                        int *target_errno)
 {
   int ret;
 
@@ -333,7 +335,8 @@ inf_child_fileio_unlink (struct target_ops *self,
 
 static char *
 inf_child_fileio_readlink (struct target_ops *self,
-                          const char *filename, int *target_errno)
+                          struct inferior *inf, const char *filename,
+                          int *target_errno)
 {
   /* We support readlink only on systems that also provide a compile-time
      maximum path length (PATH_MAX), at least for now.  */
@@ -349,7 +352,7 @@ inf_child_fileio_readlink (struct target_ops *self,
       return NULL;
     }
 
-  ret = xmalloc (len + 1);
+  ret = (char *) xmalloc (len + 1);
   memcpy (ret, buf, len);
   ret[len] = '\0';
   return ret;
This page took 0.025083 seconds and 4 git commands to generate.