Lines Matching defs:module
2 /* UNIX shadow password file access module */
16 module spwd
21 "This module provides access to the Unix shadow password database.\n\
29 You have to be root to be able to use this module.");
67 get_spwd_state(PyObject *module)
69 void *state = PyModule_GetState(module);
88 static PyObject *mkspent(PyObject *module, struct spwd *p)
91 PyObject *v = PyStructSequence_New(get_spwd_state(module)->StructSpwdType);
138 spwd_getspnam_impl(PyObject *module, PyObject *arg)
157 retval = mkspent(module, p);
176 spwd_getspall_impl(PyObject *module)
185 PyObject *v = mkspent(module, p);
211 spwdmodule_exec(PyObject *module)
213 spwdmodulestate *state = get_spwd_state(module);
219 if (PyModule_AddType(module, state->StructSpwdType) < 0) {