Mercurial > hg > CbC > CbC_gcc
comparison libiberty/pex-common.h @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | 77e2b8dfacca |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Utilities to execute a program in a subprocess (possibly linked by pipes | 1 /* Utilities to execute a program in a subprocess (possibly linked by pipes |
2 with other subprocesses), and wait for it. Shared logic. | 2 with other subprocesses), and wait for it. Shared logic. |
3 Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004 | 3 Copyright (C) 1996-2017 Free Software Foundation, Inc. |
4 Free Software Foundation, Inc. | |
5 | 4 |
6 This file is part of the libiberty library. | 5 This file is part of the libiberty library. |
7 Libiberty is free software; you can redistribute it and/or | 6 Libiberty is free software; you can redistribute it and/or |
8 modify it under the terms of the GNU Library General Public | 7 modify it under the terms of the GNU Library General Public |
9 License as published by the Free Software Foundation; either | 8 License as published by the Free Software Foundation; either |
102 binary mode. Return >= 0 on success, -1 on error. */ | 101 binary mode. Return >= 0 on success, -1 on error. */ |
103 int (*open_read) (struct pex_obj *, const char */* name */, int /* binary */); | 102 int (*open_read) (struct pex_obj *, const char */* name */, int /* binary */); |
104 /* Open file NAME for writing. If BINARY is non-zero, open in | 103 /* Open file NAME for writing. If BINARY is non-zero, open in |
105 binary mode. Return >= 0 on success, -1 on error. */ | 104 binary mode. Return >= 0 on success, -1 on error. */ |
106 int (*open_write) (struct pex_obj *, const char */* name */, | 105 int (*open_write) (struct pex_obj *, const char */* name */, |
107 int /* binary */); | 106 int /* binary */, int /* append */); |
108 /* Execute a child process. FLAGS, EXECUTABLE, ARGV, ERR are from | 107 /* Execute a child process. FLAGS, EXECUTABLE, ARGV, ERR are from |
109 pex_run. IN, OUT, ERRDES, TOCLOSE are all descriptors, from | 108 pex_run. IN, OUT, ERRDES, TOCLOSE are all descriptors, from |
110 open_read, open_write, or pipe, or they are one of STDIN_FILE_NO, | 109 open_read, open_write, or pipe, or they are one of STDIN_FILE_NO, |
111 STDOUT_FILE_NO or STDERR_FILE_NO; if IN, OUT, and ERRDES are not | 110 STDOUT_FILE_NO or STDERR_FILE_NO; if IN, OUT, and ERRDES are not |
112 STD*_FILE_NO, they should be closed. If the descriptor TOCLOSE | 111 STD*_FILE_NO, they should be closed. If the descriptor TOCLOSE |