bpo-34674: Assume unistd.h exists on Unix. (GH-9290) · python/cpython@ea13740 (original) (raw)

Original file line number Diff line number Diff line change
@@ -213,41 +213,6 @@ module os
213 213 extern char *ctermid_r(char *);
214 214 #endif
215 215
216 -#ifndef HAVE_UNISTD_H
217 -#if ( defined(__WATCOMC__) |
218 -extern int mkdir(const char *);
219 -#else
220 -extern int mkdir(const char *, mode_t);
221 -#endif
222 -#if defined(__IBMC__) |
223 -extern int chdir(char *);
224 -extern int rmdir(char *);
225 -#else
226 -extern int chdir(const char *);
227 -extern int rmdir(const char *);
228 -#endif
229 -extern int chmod(const char *, mode_t);
230 -/*#ifdef HAVE_FCHMOD
231 -extern int fchmod(int, mode_t);
232 -#endif*/
233 -/*#ifdef HAVE_LCHMOD
234 -extern int lchmod(const char *, mode_t);
235 -#endif*/
236 -extern int chown(const char *, uid_t, gid_t);
237 -extern char *getcwd(char *, int);
238 -extern char *strerror(int);
239 -extern int link(const char *, const char *);
240 -extern int rename(const char *, const char *);
241 -extern int stat(const char *, struct stat *);
242 -extern int unlink(const char *);
243 -#ifdef HAVE_SYMLINK
244 -extern int symlink(const char *, const char *);
245 -#endif /* HAVE_SYMLINK */
246 -#ifdef HAVE_LSTAT
247 -extern int lstat(const char *, struct stat *);
248 -#endif /* HAVE_LSTAT */
249 -#endif /* !HAVE_UNISTD_H */
250 -
251 216 #endif /* !_MSC_VER */
252 217
253 218 #ifdef HAVE_POSIX_SPAWN