summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2006-03-24 16:02:27 +0000
committerDavid Cantrell <dcantrell@redhat.com>2006-03-24 16:02:27 +0000
commit45744e5958b008cf6f8375fd7c10e3506eb4afab (patch)
tree1c30bee5b1259b144e9e147885498ccadda3f26e /isys
parent72eb48a7e39830dd47ce5b4a83ce840d24a26854 (diff)
downloadanaconda-45744e5958b008cf6f8375fd7c10e3506eb4afab.tar.gz
anaconda-45744e5958b008cf6f8375fd7c10e3506eb4afab.tar.xz
anaconda-45744e5958b008cf6f8375fd7c10e3506eb4afab.zip
Build it up, tear it down. Since we're destroying isys from the inside,
figured I'd remove isys.getpagesize() since the Python resource module has that.
Diffstat (limited to 'isys')
-rw-r--r--isys/isys.c6
-rw-r--r--isys/isys.py6
2 files changed, 2 insertions, 10 deletions
diff --git a/isys/isys.c b/isys/isys.c
index 95baf70a1..50a892719 100644
--- a/isys/isys.c
+++ b/isys/isys.c
@@ -104,7 +104,6 @@ static PyObject * doSync(PyObject * s, PyObject * args);
static PyObject * doisIsoImage(PyObject * s, PyObject * args);
static PyObject * getFramebufferInfo(PyObject * s, PyObject * args);
static PyObject * printObject(PyObject * s, PyObject * args);
-static PyObject * doGetPageSize(PyObject * s, PyObject * args);
static PyObject * py_bind_textdomain_codeset(PyObject * o, PyObject * args);
static PyObject * getLinkStatus(PyObject * s, PyObject * args);
static PyObject * py_getDasdPorts(PyObject * s, PyObject * args);
@@ -160,7 +159,6 @@ static PyMethodDef isysModuleMethods[] = {
{ "sync", (PyCFunction) doSync, METH_VARARGS, NULL},
{ "isisoimage", (PyCFunction) doisIsoImage, METH_VARARGS, NULL},
{ "fbinfo", (PyCFunction) getFramebufferInfo, METH_VARARGS, NULL},
- { "getpagesize", (PyCFunction) doGetPageSize, METH_VARARGS, NULL},
{ "printObject", (PyCFunction) printObject, METH_VARARGS, NULL},
{ "bind_textdomain_codeset", (PyCFunction) py_bind_textdomain_codeset, METH_VARARGS, NULL},
{ "getLinkStatus", (PyCFunction) getLinkStatus, METH_VARARGS, NULL },
@@ -1246,10 +1244,6 @@ static PyObject * getFramebufferInfo(PyObject * s, PyObject * args) {
return Py_BuildValue("(iii)", fb.xres, fb.yres, fb.bits_per_pixel);
}
-static PyObject * doGetPageSize(PyObject * s, PyObject * args) {
- return Py_BuildValue("i", getpagesize());
-}
-
static PyObject * getLinkStatus(PyObject * s, PyObject * args) {
char *dev;
int ret;
diff --git a/isys/isys.py b/isys/isys.py
index 32512b863..eea59db21 100644
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -25,6 +25,7 @@ import sys
import kudzu
import iutil
import warnings
+import resource
import logging
log = logging.getLogger("anaconda")
@@ -608,7 +609,7 @@ def readSwapLabel_int(device):
except:
return label
- pagesize = getpagesize()
+ pagesize = resource.getpagesize()
try:
buf = os.read(fd, pagesize)
os.close(fd)
@@ -833,9 +834,6 @@ def ideCdRwList():
return newList
-def getpagesize():
- return _isys.getpagesize()
-
def getLinkStatus(dev):
return _isys.getLinkStatus(dev)