summaryrefslogtreecommitdiff
path: root/sysdeps/posix
diff options
context:
space:
mode:
authorThomas Bushnell, BSG <thomas@gnu.org>1996-10-08 18:38:08 +0000
committerThomas Bushnell, BSG <thomas@gnu.org>1996-10-08 18:38:08 +0000
commitce7f605ba7d119d7aae336117a306167ede44916 (patch)
tree58b06149239c7abd2286d05f33155a7c36c1f2b3 /sysdeps/posix
parentb853ee82a2701bc91a8e5215191901ea37227647 (diff)
*** empty log message ***
Tue Oct 8 13:58:31 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * hurd/ports-get.c (_hurd_ports_get): If the requested port is null, don't attempt mach_port_mod_refs.
Diffstat (limited to 'sysdeps/posix')
-rw-r--r--sysdeps/posix/pipestream.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sysdeps/posix/pipestream.c b/sysdeps/posix/pipestream.c
index 539bf43302..d954f1412c 100644
--- a/sysdeps/posix/pipestream.c
+++ b/sysdeps/posix/pipestream.c
@@ -42,7 +42,7 @@ struct child
original function with the original cookie. */
#define FUNC(type, name, args) \
- static type __CONCAT(child_,name) args __CONCAT(name,decl)) \
+ static type __CONCAT(child_,name) args __CONCAT(name,decl) \
{ \
struct child *c = (struct child *) cookie; \
{ \
@@ -51,15 +51,15 @@ struct child
} \
}
-#define readdecl void *cookie AND register char *buf AND register size_t n
+#define readdecl void *cookie; register char *buf; register size_t n;
FUNC (int, read, (cookie, buf, n))
-#define writedecl void *cookie AND register const char *buf AND register size_t n
+#define writedecl void *cookie; register const char *buf; register size_t n;
FUNC (int, write, (cookie, buf, n))
-#define seekdecl void *cookie AND fpos_t *pos AND int whence
+#define seekdecl void *cookie; fpos_t *pos; int whence;
FUNC (int, seek, (cookie, pos, whence))
-#define closedecl void *cookie
+#define closedecl void *cookie;
FUNC (int, close, (cookie))
-#define filenodecl void *cookie
+#define filenodecl void *cookie;
FUNC (int, fileno, (cookie))
static const __io_functions child_funcs
@@ -116,7 +116,7 @@ popen (command, mode)
new_argv[1] = "-c";
new_argv[2] = command;
new_argv[3] = NULL;
- (void) execve (SH_PATH, (char *CONST *) new_argv, environ);
+ (void) execve (SH_PATH, (char *const *) new_argv, environ);
/* Die if it failed. */
_exit (127);
}
@@ -156,7 +156,7 @@ popen (command, mode)
child->pid = pid;
child->cookie = stream->__cookie;
child->funcs = stream->__io_funcs;
- stream->__cookie = (PTR) child;
+ stream->__cookie = (void *) child;
stream->__io_funcs = child_funcs;
stream->__ispipe = 1;
return stream;