Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Unified Diff: third_party/twisted_8_1/twisted/runner/portmap.c

Issue 12261012: Remove third_party/twisted_8_1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/twisted_8_1/twisted/runner/portmap.c
diff --git a/third_party/twisted_8_1/twisted/runner/portmap.c b/third_party/twisted_8_1/twisted/runner/portmap.c
deleted file mode 100644
index ca0c1c93b044d4686de80695111ea08b7357878a..0000000000000000000000000000000000000000
--- a/third_party/twisted_8_1/twisted/runner/portmap.c
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright (c) 2001-2004 Twisted Matrix Laboratories.
- * See LICENSE for details.
-
- *
- */
-
-/* portmap.c: A simple Python wrapper for pmap_set(3) and pmap_unset(3) */
-
-#include <Python.h>
-#include <rpc/rpc.h>
-#include <rpc/pmap_clnt.h>
-
-static PyObject * portmap_set(PyObject *self, PyObject *args)
-{
- unsigned long program, version;
- int protocol;
- unsigned short port;
-
- if (!PyArg_ParseTuple(args, "llih:set",
- &program, &version, &protocol, &port))
- return NULL;
-
- pmap_unset(program, version);
- pmap_set(program, version, protocol, port);
-
- Py_INCREF(Py_None);
- return Py_None;
-}
-
-static PyObject * portmap_unset(PyObject *self, PyObject *args)
-{
- unsigned long program, version;
-
- if (!PyArg_ParseTuple(args, "ll:unset",
- &program, &version))
- return NULL;
-
- pmap_unset(program, version);
-
- Py_INCREF(Py_None);
- return Py_None;
-}
-
-static PyMethodDef PortmapMethods[] = {
- {"set", portmap_set, METH_VARARGS,
- "Set an entry in the portmapper."},
- {"unset", portmap_unset, METH_VARARGS,
- "Unset an entry in the portmapper."},
- {NULL, NULL, 0, NULL}
-};
-
-void initportmap(void)
-{
- (void) Py_InitModule("portmap", PortmapMethods);
-}
-
« no previous file with comments | « third_party/twisted_8_1/twisted/runner/inetdtap.py ('k') | third_party/twisted_8_1/twisted/runner/procmon.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698