57 </ul> |
57 </ul> |
58 |
58 |
59 @param originalName original name of the function to be patched |
59 @param originalName original name of the function to be patched |
60 @type str |
60 @type str |
61 @return function replacing the original one |
61 @return function replacing the original one |
62 @type function |
62 @rtype function |
63 """ |
63 """ |
64 def newExecl(path, *args): |
64 def newExecl(path, *args): |
65 """ |
65 """ |
66 Function replacing the 'execl' functions of the os module. |
66 Function replacing the 'execl' functions of the os module. |
67 """ |
67 """ |
84 </ul> |
84 </ul> |
85 |
85 |
86 @param originalName original name of the function to be patched |
86 @param originalName original name of the function to be patched |
87 @type str |
87 @type str |
88 @return function replacing the original one |
88 @return function replacing the original one |
89 @type function |
89 @rtype function |
90 """ |
90 """ |
91 def newExecv(path, args): |
91 def newExecv(path, args): |
92 """ |
92 """ |
93 Function replacing the 'execv' functions of the os module. |
93 Function replacing the 'execv' functions of the os module. |
94 """ |
94 """ |
111 </ul> |
111 </ul> |
112 |
112 |
113 @param originalName original name of the function to be patched |
113 @param originalName original name of the function to be patched |
114 @type str |
114 @type str |
115 @return function replacing the original one |
115 @return function replacing the original one |
116 @type function |
116 @rtype function |
117 """ |
117 """ |
118 def newExecve(path, args, env): |
118 def newExecve(path, args, env): |
119 """ |
119 """ |
120 Function replacing the 'execve' functions of the os module. |
120 Function replacing the 'execve' functions of the os module. |
121 """ |
121 """ |
138 </ul> |
138 </ul> |
139 |
139 |
140 @param originalName original name of the function to be patched |
140 @param originalName original name of the function to be patched |
141 @type str |
141 @type str |
142 @return function replacing the original one |
142 @return function replacing the original one |
143 @type function |
143 @rtype function |
144 """ |
144 """ |
145 def newSpawnl(mode, path, *args): |
145 def newSpawnl(mode, path, *args): |
146 """ |
146 """ |
147 Function replacing the 'spawnl' functions of the os module. |
147 Function replacing the 'spawnl' functions of the os module. |
148 """ |
148 """ |
162 </ul> |
162 </ul> |
163 |
163 |
164 @param originalName original name of the function to be patched |
164 @param originalName original name of the function to be patched |
165 @type str |
165 @type str |
166 @return function replacing the original one |
166 @return function replacing the original one |
167 @type function |
167 @rtype function |
168 """ |
168 """ |
169 def newSpawnv(mode, path, args): |
169 def newSpawnv(mode, path, args): |
170 """ |
170 """ |
171 Function replacing the 'spawnv' functions of the os module. |
171 Function replacing the 'spawnv' functions of the os module. |
172 """ |
172 """ |
186 </ul> |
186 </ul> |
187 |
187 |
188 @param originalName original name of the function to be patched |
188 @param originalName original name of the function to be patched |
189 @type str |
189 @type str |
190 @return function replacing the original one |
190 @return function replacing the original one |
191 @type function |
191 @rtype function |
192 """ |
192 """ |
193 def newSpawnve(mode, path, args, env): |
193 def newSpawnve(mode, path, args, env): |
194 """ |
194 """ |
195 Function replacing the 'spawnve' functions of the os module. |
195 Function replacing the 'spawnve' functions of the os module. |
196 """ |
196 """ |
212 </ul> |
212 </ul> |
213 |
213 |
214 @param originalName original name of the function to be patched |
214 @param originalName original name of the function to be patched |
215 @type str |
215 @type str |
216 @return function replacing the original one |
216 @return function replacing the original one |
217 @type function |
217 @rtype function |
218 """ |
218 """ |
219 def newPosixSpawn(path, argv, env, **kwargs): |
219 def newPosixSpawn(path, argv, env, **kwargs): |
220 """ |
220 """ |
221 Function replacing the 'posix_spawn' functions of the os module. |
221 Function replacing the 'posix_spawn' functions of the os module. |
222 """ |
222 """ |
236 </ul> |
236 </ul> |
237 |
237 |
238 @param originalName original name of the function to be patched |
238 @param originalName original name of the function to be patched |
239 @type str |
239 @type str |
240 @return function replacing the original one |
240 @return function replacing the original one |
241 @type function |
241 @rtype function |
242 """ |
242 """ |
243 def newForkExec(args, *other_args): |
243 def newForkExec(args, *other_args): |
244 """ |
244 """ |
245 Function replacing the 'fork_exec' functions of the _posixsubprocess |
245 Function replacing the 'fork_exec' functions of the _posixsubprocess |
246 module. |
246 module. |
331 Windows. |
331 Windows. |
332 |
332 |
333 @param originalName original name of the function to be patched |
333 @param originalName original name of the function to be patched |
334 @type str |
334 @type str |
335 @return function replacing the original one |
335 @return function replacing the original one |
336 @type function |
336 @rtype function |
337 """ |
337 """ |
338 def newCreateProcess(appName, cmdline, *args): |
338 def newCreateProcess(appName, cmdline, *args): |
339 """ |
339 """ |
340 Function replacing the 'CreateProcess' function of the _subprocess |
340 Function replacing the 'CreateProcess' function of the _subprocess |
341 or _winapi module. |
341 or _winapi module. |