Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
36bc6802
Kaydet (Commit)
36bc6802
authored
Haz 14, 1995
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sys/wait.h; NeXT changes (no unistd, utime; getcwd?)
üst
4a269864
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
posixmodule.c
Modules/posixmodule.c
+20
-0
No files found.
Modules/posixmodule.c
Dosyayı görüntüle @
36bc6802
...
@@ -41,6 +41,9 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
...
@@ -41,6 +41,9 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <errno.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/stat.h>
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
/* For WNOHANG */
#endif
#include "mytime.h"
/* For clock_t on some systems */
#include "mytime.h"
/* For clock_t on some systems */
...
@@ -64,11 +67,23 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
...
@@ -64,11 +67,23 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define HAVE_WAIT 1
#define HAVE_WAIT 1
#define HAVE_OPENDIR 1
#define HAVE_OPENDIR 1
#define HAVE_PIPE 1
#define HAVE_PIPE 1
#define HAVE_GETCWD 1
#endif
#endif
#ifndef NT
#ifndef NT
#ifdef HAVE_UNISTD_H
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#include <unistd.h>
#endif
#ifdef NeXT
/* NeXT's <unistd.h> and <utime.h> aren't worth much */
#undef HAVE_UNISTD_H
#undef HAVE_UTIME_H
/* #undef HAVE_GETCWD */
#endif
#ifdef HAVE_UNISTD_H
/* XXX These are for SunOS4.1.3 but shouldn't hurt elsewhere */
/* XXX These are for SunOS4.1.3 but shouldn't hurt elsewhere */
extern
int
rename
();
extern
int
rename
();
extern
int
pclose
();
extern
int
pclose
();
...
@@ -94,6 +109,7 @@ extern int symlink PROTO((const char *, const char *));
...
@@ -94,6 +109,7 @@ extern int symlink PROTO((const char *, const char *));
extern
int
lstat
PROTO
((
const
char
*
,
struct
stat
*
));
extern
int
lstat
PROTO
((
const
char
*
,
struct
stat
*
));
#endif
/* HAVE_LSTAT */
#endif
/* HAVE_LSTAT */
#endif
/* !HAVE_UNISTD_H */
#endif
/* !HAVE_UNISTD_H */
#endif
/* !NT */
#endif
/* !NT */
#ifdef HAVE_UTIME_H
#ifdef HAVE_UTIME_H
...
@@ -329,6 +345,7 @@ posix_chown(self, args)
...
@@ -329,6 +345,7 @@ posix_chown(self, args)
}
}
#endif
/* HAVE_CHOWN */
#endif
/* HAVE_CHOWN */
#ifdef HAVE_GETCWD
static
object
*
static
object
*
posix_getcwd
(
self
,
args
)
posix_getcwd
(
self
,
args
)
object
*
self
;
object
*
self
;
...
@@ -345,6 +362,7 @@ posix_getcwd(self, args)
...
@@ -345,6 +362,7 @@ posix_getcwd(self, args)
return
posix_error
();
return
posix_error
();
return
newstringobject
(
buf
);
return
newstringobject
(
buf
);
}
}
#endif
#ifdef HAVE_LINK
#ifdef HAVE_LINK
static
object
*
static
object
*
...
@@ -1370,7 +1388,9 @@ static struct methodlist posix_methods[] = {
...
@@ -1370,7 +1388,9 @@ static struct methodlist posix_methods[] = {
#ifdef HAVE_CHOWN
#ifdef HAVE_CHOWN
{
"chown"
,
posix_chown
},
{
"chown"
,
posix_chown
},
#endif
/* HAVE_CHOWN */
#endif
/* HAVE_CHOWN */
#ifdef HAVE_GETCWD
{
"getcwd"
,
posix_getcwd
},
{
"getcwd"
,
posix_getcwd
},
#endif
#ifdef HAVE_LINK
#ifdef HAVE_LINK
{
"link"
,
posix_link
},
{
"link"
,
posix_link
},
#endif
/* HAVE_LINK */
#endif
/* HAVE_LINK */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment