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
3940499c
Kaydet (Commit)
3940499c
authored
Eyl 15, 2016
tarafından
Berker Peksag
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #28156: Export os.getpid() conditionally
Patch by Ed Schouten.
üst
097a49e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
posixmodule.c.h
Modules/clinic/posixmodule.c.h
+9
-1
posixmodule.c
Modules/posixmodule.c
+2
-0
No files found.
Modules/clinic/posixmodule.c.h
Dosyayı görüntüle @
3940499c
...
...
@@ -2349,6 +2349,8 @@ os_getgid(PyObject *module, PyObject *Py_UNUSED(ignored))
#endif
/* defined(HAVE_GETGID) */
#if defined(HAVE_GETPID)
PyDoc_STRVAR
(
os_getpid__doc__
,
"getpid($module, /)
\n
"
"--
\n
"
...
...
@@ -2367,6 +2369,8 @@ os_getpid(PyObject *module, PyObject *Py_UNUSED(ignored))
return
os_getpid_impl
(
module
);
}
#endif
/* defined(HAVE_GETPID) */
#if defined(HAVE_GETGROUPS)
PyDoc_STRVAR
(
os_getgroups__doc__
,
...
...
@@ -5841,6 +5845,10 @@ exit:
#define OS_GETGID_METHODDEF
#endif
/* !defined(OS_GETGID_METHODDEF) */
#ifndef OS_GETPID_METHODDEF
#define OS_GETPID_METHODDEF
#endif
/* !defined(OS_GETPID_METHODDEF) */
#ifndef OS_GETGROUPS_METHODDEF
#define OS_GETGROUPS_METHODDEF
#endif
/* !defined(OS_GETGROUPS_METHODDEF) */
...
...
@@ -6140,4 +6148,4 @@ exit:
#ifndef OS_GETRANDOM_METHODDEF
#define OS_GETRANDOM_METHODDEF
#endif
/* !defined(OS_GETRANDOM_METHODDEF) */
/*[clinic end generated code: output=
dfa6bc9d1f2db750
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
b9ed5703d2feb0d9
input=a9049054013a1b77]*/
Modules/posixmodule.c
Dosyayı görüntüle @
3940499c
...
...
@@ -5895,6 +5895,7 @@ os_getgid_impl(PyObject *module)
#endif
/* HAVE_GETGID */
#ifdef HAVE_GETPID
/*[clinic input]
os.getpid
...
...
@@ -5907,6 +5908,7 @@ os_getpid_impl(PyObject *module)
{
return
PyLong_FromPid
(
getpid
());
}
#endif
/* HAVE_GETPID */
#ifdef HAVE_GETGROUPLIST
...
...
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