equal
deleted
inserted
replaced
1104 return NULL; |
1104 return NULL; |
1105 |
1105 |
1106 memset(&buf, 0, sizeof(buf)); |
1106 memset(&buf, 0, sizeof(buf)); |
1107 r = statfs(path, &buf); |
1107 r = statfs(path, &buf); |
1108 if (r != 0) |
1108 if (r != 0) |
1109 Py_RETURN_NONE; |
1109 return PyErr_SetFromErrno(PyExc_OSError); |
1110 return Py_BuildValue("s", describefstype(&buf)); |
1110 return Py_BuildValue("s", describefstype(&buf)); |
1111 } |
1111 } |
1112 #endif /* defined(HAVE_LINUX_STATFS) || defined(HAVE_BSD_STATFS) */ |
1112 #endif /* defined(HAVE_LINUX_STATFS) || defined(HAVE_BSD_STATFS) */ |
1113 |
1113 |
1114 #endif /* ndef _WIN32 */ |
1114 #endif /* ndef _WIN32 */ |