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
43021932
Kaydet (Commit)
43021932
authored
Eyl 12, 1994
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added _getpty interface.
üst
ae311bd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
sgimodule.c
Modules/sgimodule.c
+30
-0
No files found.
Modules/sgimodule.c
Dosyayı görüntüle @
43021932
...
@@ -28,6 +28,12 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
...
@@ -28,6 +28,12 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "modsupport.h"
#include "modsupport.h"
#include "ceval.h"
#include "ceval.h"
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
extern
int
sginap
(
long
);
extern
int
sginap
(
long
);
static
object
*
static
object
*
...
@@ -45,8 +51,32 @@ sgi_nap(self, args)
...
@@ -45,8 +51,32 @@ sgi_nap(self, args)
return
None
;
return
None
;
}
}
extern
char
*
_getpty
(
int
*
,
int
,
mode_t
,
int
);
static
object
*
sgi__getpty
(
self
,
args
)
object
*
self
;
object
*
args
;
{
int
oflag
;
int
mode
;
int
nofork
;
char
*
name
;
int
fildes
;
if
(
!
getargs
(
args
,
"(iii)"
,
&
oflag
,
&
mode
,
&
nofork
))
return
NULL
;
errno
=
0
;
name
=
_getpty
(
&
fildes
,
oflag
,
(
mode_t
)
mode
,
nofork
);
if
(
name
==
NULL
)
{
err_errno
(
IOError
);
return
NULL
;
}
return
mkvalue
(
"(si)"
,
name
,
fildes
);
}
static
struct
methodlist
sgi_methods
[]
=
{
static
struct
methodlist
sgi_methods
[]
=
{
{
"nap"
,
sgi_nap
},
{
"nap"
,
sgi_nap
},
{
"_getpty"
,
sgi__getpty
},
{
NULL
,
NULL
}
/* sentinel */
{
NULL
,
NULL
}
/* sentinel */
};
};
...
...
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