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
37d21e11
Kaydet (Commit)
37d21e11
authored
Nis 07, 2000
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Started on GUSI2 and threading support.
üst
d6296606
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
8 deletions
+18
-8
macmodule.c
Mac/Modules/macmodule.c
+18
-8
No files found.
Mac/Modules/macmodule.c
Dosyayı görüntüle @
37d21e11
...
@@ -40,7 +40,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
...
@@ -40,7 +40,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#undef S_IFREG
#undef S_IFREG
#undef S_ISDIR
#undef S_ISDIR
#undef S_ISREG
#undef S_ISREG
#endif
#endif
/* THINK_C */
#include "macstat.h"
#include "macstat.h"
#ifdef USE_GUSI
#ifdef USE_GUSI
...
@@ -52,18 +52,28 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
...
@@ -52,18 +52,28 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#undef S_IWRITE
#undef S_IWRITE
#undef S_IEXEC
#undef S_IEXEC
#ifdef USE_GUSI1
#include <GUSI.h>
#include <GUSI.h>
#endif
/* USE_GUSI1 */
#include <sys/types.h>
#include <sys/types.h>
#include <stat.h>
#include <s
ys/s
tat.h>
#else
#else
/* USE_GUSI */
#define stat macstat
#define stat macstat
#endif
#endif
/* USE_GUSI */
#ifdef __MWERKS__
#ifdef USE_GUSI2
#define sync bad_sync
#include <unistd.h>
#include <fcntl.h>
#undef sync
int
sync
(
void
);
#else
#ifdef x__MWERKS__
#include <unix.h>
#include <unix.h>
#else
#else
#include <fcntl.h>
#include <fcntl.h>
#endif
#endif
#endif
/* Optional routines, for some compiler/runtime combinations */
/* Optional routines, for some compiler/runtime combinations */
#if defined(USE_GUSI) || !defined(__MWERKS__)
#if defined(USE_GUSI) || !defined(__MWERKS__)
...
@@ -183,7 +193,7 @@ mac_chdir(self, args)
...
@@ -183,7 +193,7 @@ mac_chdir(self, args)
PyObject
*
self
;
PyObject
*
self
;
PyObject
*
args
;
PyObject
*
args
;
{
{
#ifdef USE_GUSI
#ifdef USE_GUSI
1
PyObject
*
rv
;
PyObject
*
rv
;
/* Change MacOS's idea of wd too */
/* Change MacOS's idea of wd too */
...
@@ -207,7 +217,7 @@ mac_close(self, args)
...
@@ -207,7 +217,7 @@ mac_close(self, args)
Py_BEGIN_ALLOW_THREADS
Py_BEGIN_ALLOW_THREADS
res
=
close
(
fd
);
res
=
close
(
fd
);
Py_END_ALLOW_THREADS
Py_END_ALLOW_THREADS
#ifndef USE_GUSI
#ifndef USE_GUSI
1
/* GUSI gives surious errors here? */
/* GUSI gives surious errors here? */
if
(
res
<
0
)
if
(
res
<
0
)
return
mac_error
();
return
mac_error
();
...
@@ -368,7 +378,7 @@ mac_mkdir(self, args)
...
@@ -368,7 +378,7 @@ mac_mkdir(self, args)
if
(
!
PyArg_ParseTuple
(
args
,
"s|i"
,
&
path
,
&
mode
))
if
(
!
PyArg_ParseTuple
(
args
,
"s|i"
,
&
path
,
&
mode
))
return
NULL
;
return
NULL
;
Py_BEGIN_ALLOW_THREADS
Py_BEGIN_ALLOW_THREADS
#ifdef USE_GUSI
#ifdef USE_GUSI
1
res
=
mkdir
(
path
);
res
=
mkdir
(
path
);
#else
#else
res
=
mkdir
(
path
,
mode
);
res
=
mkdir
(
path
,
mode
);
...
...
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