This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RFA: clean up comments in pex-common.h
- From: Jim Blandy <jimb at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 12 Mar 2006 01:08:36 -0800
- Subject: RFA: clean up comments in pex-common.h
src/libiberty/ChangeLog:
2006-03-12 Jim Blandy <jimb@red-bean.com>
* pex-common.h (struct pex_obj): Doc fixes.
Index: src/libiberty/pex-common.h
===================================================================
--- src.orig/libiberty/pex-common.h
+++ src/libiberty/pex-common.h
@@ -61,7 +61,7 @@ struct pex_obj
int next_input_name_allocated;
/* Number of child processes. */
int count;
- /* PIDs of child processes; array allocated using maloc. */
+ /* PIDs of child processes; array allocated using malloc. */
long *children;
/* Exit statuses of child processes; array allocated using malloc. */
int *status;
@@ -108,11 +108,11 @@ struct pex_funcs
and time in *TIME (if it is not null). CHILD is from fork. DONE
is 1 if this is called via pex_free. ERRMSG and ERR are as in
fork. Return 0 on success, -1 on error. */
- int (*wait) (struct pex_obj *, long, int *status, struct pex_time *time,
- int done, const char **errmsg, int *err);
+ int (*wait) (struct pex_obj *, long child, int *status,
+ struct pex_time *time, int done, const char **errmsg, int *err);
/* Create a pipe (only called if PEX_USE_PIPES is set) storing two
- descriptin in *P. If BINARY is non-zero, open in binary mode.
- Return 0 on success, -1 on error. */
+ descriptors in P[0] and P[1]. If BINARY is non-zero, open in
+ binary mode. Return 0 on success, -1 on error. */
int (*pipe) (struct pex_obj *, int *p, int binary);
/* Get a FILE pointer to read from a file descriptor (only called if
PEX_USE_PIPES is set). If BINARY is non-zero, open in binary