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
9428d53e
Kaydet (Commit)
9428d53e
authored
Eyl 14, 2011
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
only compile xattrs on glibc (closes #12720)
üst
b77fe173
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
posixmodule.c
Modules/posixmodule.c
+9
-5
No files found.
Modules/posixmodule.c
Dosyayı görüntüle @
9428d53e
...
@@ -107,7 +107,11 @@ corresponding Unix manual entries for more information on calls.");
...
@@ -107,7 +107,11 @@ corresponding Unix manual entries for more information on calls.");
#include <sched.h>
#include <sched.h>
#endif
#endif
#ifdef HAVE_SYS_XATTR_H
#if defined(HAVE_SYS_XATTR_H) && defined(__GLIBC__)
#define USE_XATTRS
#endif
#ifdef USE_XATTRS
#include <sys/xattr.h>
#include <sys/xattr.h>
#endif
#endif
...
@@ -10032,7 +10036,7 @@ posix_mkfifoat(PyObject *self, PyObject *args)
...
@@ -10032,7 +10036,7 @@ posix_mkfifoat(PyObject *self, PyObject *args)
}
}
#endif
#endif
#ifdef
HAVE_SYS_XATTR_H
#ifdef
USE_XATTRS
static int
static int
try_getxattr(const char *path, const char *name,
try_getxattr(const char *path, const char *name,
...
@@ -10408,7 +10412,7 @@ posix_flistxattr(PyObject *self, PyObject *args)
...
@@ -10408,7 +10412,7 @@ posix_flistxattr(PyObject *self, PyObject *args)
return listxattr_common((const char *)(Py_uintptr_t)fd, wrap_flistxattr);
return listxattr_common((const char *)(Py_uintptr_t)fd, wrap_flistxattr);
}
}
#endif /*
HAVE_SYS_XATTR_H
*/
#endif /*
USE_XATTRS
*/
static PyMethodDef posix_methods[] = {
static PyMethodDef posix_methods[] = {
{"access", posix_access, METH_VARARGS, posix_access__doc__},
{"access", posix_access, METH_VARARGS, posix_access__doc__},
...
@@ -10861,7 +10865,7 @@ static PyMethodDef posix_methods[] = {
...
@@ -10861,7 +10865,7 @@ static PyMethodDef posix_methods[] = {
#ifdef HAVE_MKFIFOAT
#ifdef HAVE_MKFIFOAT
{"mkfifoat", posix_mkfifoat, METH_VARARGS, posix_mkfifoat__doc__},
{"mkfifoat", posix_mkfifoat, METH_VARARGS, posix_mkfifoat__doc__},
#endif
#endif
#ifdef
HAVE_SYS_XATTR_H
#ifdef
USE_XATTRS
{"setxattr", posix_setxattr, METH_VARARGS, posix_setxattr__doc__},
{"setxattr", posix_setxattr, METH_VARARGS, posix_setxattr__doc__},
{"lsetxattr", posix_lsetxattr, METH_VARARGS, posix_lsetxattr__doc__},
{"lsetxattr", posix_lsetxattr, METH_VARARGS, posix_lsetxattr__doc__},
{"fsetxattr", posix_fsetxattr, METH_VARARGS, posix_fsetxattr__doc__},
{"fsetxattr", posix_fsetxattr, METH_VARARGS, posix_fsetxattr__doc__},
...
@@ -11336,7 +11340,7 @@ all_ins(PyObject *d)
...
@@ -11336,7 +11340,7 @@ all_ins(PyObject *d)
#endif
#endif
#endif
#endif
#ifdef
HAVE_SYS_XATTR_H
#ifdef
USE_XATTRS
if (ins(d, "XATTR_CREATE", (long)XATTR_CREATE)) return -1;
if (ins(d, "XATTR_CREATE", (long)XATTR_CREATE)) return -1;
if (ins(d, "XATTR_REPLACE", (long)XATTR_REPLACE)) return -1;
if (ins(d, "XATTR_REPLACE", (long)XATTR_REPLACE)) return -1;
if (ins(d, "XATTR_SIZE_MAX", (long)XATTR_SIZE_MAX)) return -1;
if (ins(d, "XATTR_SIZE_MAX", (long)XATTR_SIZE_MAX)) return -1;
...
...
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