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
55db515a
Kaydet (Commit)
55db515a
authored
Ara 10, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Great renaming.
Also got rid of the dummy variable, which was last needed in IRIX 4.x.
üst
09f99dfd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
23 deletions
+17
-23
sgimodule.c
Modules/sgimodule.c
+17
-23
No files found.
Modules/sgimodule.c
Dosyayı görüntüle @
55db515a
...
@@ -31,55 +31,52 @@ PERFORMANCE OF THIS SOFTWARE.
...
@@ -31,55 +31,52 @@ PERFORMANCE OF THIS SOFTWARE.
/* SGI module -- random SGI-specific things */
/* SGI module -- random SGI-specific things */
#include "allobjects.h"
#include "Python.h"
#include "modsupport.h"
#include "ceval.h"
#include <errno.h>
#include <sys/types.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <unistd.h>
#include <unistd.h>
#include <fcntl.h>
#include <fcntl.h>
static
o
bject
*
static
PyO
bject
*
sgi_nap
(
self
,
args
)
sgi_nap
(
self
,
args
)
o
bject
*
self
;
PyO
bject
*
self
;
o
bject
*
args
;
PyO
bject
*
args
;
{
{
long
ticks
;
long
ticks
;
if
(
!
getargs
(
args
,
"l"
,
&
ticks
))
if
(
!
PyArg_Parse
(
args
,
"l"
,
&
ticks
))
return
NULL
;
return
NULL
;
BGN_SAVE
Py_BEGIN_ALLOW_THREADS
sginap
(
ticks
);
sginap
(
ticks
);
END_SAVE
Py_END_ALLOW_THREADS
INCREF
(
None
);
Py_INCREF
(
Py_
None
);
return
None
;
return
Py_
None
;
}
}
extern
char
*
_getpty
(
int
*
,
int
,
mode_t
,
int
);
extern
char
*
_getpty
(
int
*
,
int
,
mode_t
,
int
);
static
o
bject
*
static
PyO
bject
*
sgi__getpty
(
self
,
args
)
sgi__getpty
(
self
,
args
)
o
bject
*
self
;
PyO
bject
*
self
;
o
bject
*
args
;
PyO
bject
*
args
;
{
{
int
oflag
;
int
oflag
;
int
mode
;
int
mode
;
int
nofork
;
int
nofork
;
char
*
name
;
char
*
name
;
int
fildes
;
int
fildes
;
if
(
!
getargs
(
args
,
"(iii)"
,
&
oflag
,
&
mode
,
&
nofork
))
if
(
!
PyArg_Parse
(
args
,
"(iii)"
,
&
oflag
,
&
mode
,
&
nofork
))
return
NULL
;
return
NULL
;
errno
=
0
;
errno
=
0
;
name
=
_getpty
(
&
fildes
,
oflag
,
(
mode_t
)
mode
,
nofork
);
name
=
_getpty
(
&
fildes
,
oflag
,
(
mode_t
)
mode
,
nofork
);
if
(
name
==
NULL
)
{
if
(
name
==
NULL
)
{
err_errno
(
IOError
);
PyErr_SetFromErrno
(
PyExc_
IOError
);
return
NULL
;
return
NULL
;
}
}
return
mkv
alue
(
"(si)"
,
name
,
fildes
);
return
Py_BuildV
alue
(
"(si)"
,
name
,
fildes
);
}
}
static
struct
methodlist
sgi_methods
[]
=
{
static
PyMethodDef
sgi_methods
[]
=
{
{
"nap"
,
sgi_nap
},
{
"nap"
,
sgi_nap
},
{
"_getpty"
,
sgi__getpty
},
{
"_getpty"
,
sgi__getpty
},
{
NULL
,
NULL
}
/* sentinel */
{
NULL
,
NULL
}
/* sentinel */
...
@@ -89,8 +86,5 @@ static struct methodlist sgi_methods[] = {
...
@@ -89,8 +86,5 @@ static struct methodlist sgi_methods[] = {
void
void
initsgi
()
initsgi
()
{
{
initm
odule
(
"sgi"
,
sgi_methods
);
Py_InitM
odule
(
"sgi"
,
sgi_methods
);
}
}
int
_Py_sgi_dummy
;
/* $%#@!& dl wants at least a byte of bss */
/* And gcc -Wall doesn't like unused static variables :-( */
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