summaryrefslogtreecommitdiff
path: root/Modules/nismodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #24300: Minor refactoring.Raymond Hettinger2015-07-241-5/+1
|
* Issue #23685: Fix usage of PyMODINIT_FUNC in _json, _scproxy, nis, pyexpatVictor Stinner2015-03-171-2/+2
| | | | | | | | _codecs_cn, _codecs_hk, _codecs_iso2022, _codecs_jp, _codecs_kr and _codecs_tw modules. pyexpat.c doesn't need to redeclare PyMODINIT_FUNC, it's already declared in Include/pyport.h.
* Remove a redundant assignment.Brett Cannon2011-06-061-1/+1
| | | | Found by LLVM/clang 2.9.
* Decode NIS data to fs encoding, using the surrogate error handler.Martin v. Löwis2010-08-191-8/+18
|
* Restore GIL in nis_cat in case of error.Martin v. Löwis2010-08-181-0/+1
|
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-283/+283
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
* Merged revisions 73873 via svnmerge fromAmaury Forgeot d'Arc2009-07-071-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73873 | amaury.forgeotdarc | 2009-07-07 08:49:41 +0200 (mar., 07 juil. 2009) | 2 lines #6420: Fix a compilation warning in the nis module, for OpenBSD and FreeBSD. ........
* Merged revisions 64685 via svnmerge fromAmaury Forgeot d'Arc2008-07-021-5/+8
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r64685 | amaury.forgeotdarc | 2008-07-03 01:40:28 +0200 (Thu, 03 Jul 2008) | 3 lines Try a blind fix to nismodule which fails on the solaris10 3.0 buildbot: the GIL must be re-acquired in the callback function ........
* Implement PEP 3121: new module initialization and finalization API.Martin v. Löwis2008-06-111-4/+17
|
* Use s# instead of t# for nis_match.Martin v. Löwis2007-08-301-1/+1
|
* Use unicode (hope it's right, I can't test it)Neal Norwitz2007-08-261-5/+5
|
* Revert backwards-incompatible const changes.Martin v. Löwis2006-02-271-3/+3
|
* Patch #1422385: Changes to nis module to support multiple NIS domainsMartin v. Löwis2006-02-041-23/+79
|
* Check return result from Py_InitModule*(). This API can fail.Neal Norwitz2006-01-191-0/+2
| | | | Probably should be backported.
* Add an #ifdef __APPLE__ around typedef of foreachfunc to match Apple'sBrett Cannon2004-07-101-0/+4
| | | | | | | incorrect declaration for ypall_callback in /usr/include/rpcsvc/ypcInt.h . Shouldn't hurt any code since the differences are unsigned long instead of int and void * instead of char *. Removes warning about improper function pointer assignment during compilation.
* SF #633013, Fix NIS causing interpreter core dumpNeal Norwitz2002-11-041-2/+4
| | | | | Prevent the lengths passed to PyString_FromStringAndSize() from being negative in some cases.
* Remove METH_OLDARGS:Neal Norwitz2002-03-311-8/+6
| | | | | | | Convert METH_OLDARGS -> METH_VARARGS: also PyArg_Parse -> PyArg_ParseTuple Convert METH_OLDARGS -> METH_NOARGS: remove args parameter Please review. All tests pass, but some modules don't have tests. I spot checked various functions to try to make sure nothing broke.
* Patch #477750: Use METH_ constants in Modules.Martin v. Löwis2002-01-171-3/+3
|
* Move declaration of 'clnt_create()' NIS function to pyport.h, as it'sThomas Wouters2001-01-211-1/+1
| | | | | | supposed to be declared in system include files (with a proper prototype.) Should be moved to a platform-specific block if anyone finds out which broken platforms need it :-)
* Even more ANSIfication: fix as many function pointers and declarations asThomas Wouters2000-07-221-1/+1
| | | | possible.
* Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',Thomas Wouters2000-07-211-2/+2
| | | | | | | | | | | | | | | | | | and a couple of functions that were missed in the previous batches. Not terribly tested, but very carefully scrutinized, three times. All these were found by the little findkrc.py that I posted to python-dev, which means there might be more lurking. Cases such as this: long func(a, b) long a; long b; /* flagword */ { and other cases where the last ; in the argument list isn't followed by a newline and an opening curly bracket. Regexps to catch all are welcome, of course ;)
* ANSI-ficationPeter Schneider-Kamp2000-07-101-39/+13
|
* Nuke all remaining occurrences of Py_PROTO and Py_FPROTO.Tim Peters2000-07-091-1/+1
|
* Vladimir Marangozov's long-awaited malloc restructuring.Guido van Rossum2000-05-031-2/+2
| | | | | | | | | | For more comments, read the patches@python.org archives. For documentation read the comments in mymalloc.h and objimpl.h. (This is not exactly what Vladimir posted to the patches list; I've made a few changes, and Vladimir sent me a fix in private email for a problem that only occurs in debug mode. I'm also holding back on his change to main.c, which seems unnecessary to me.)
* Patch by Fred Gansevles (the module's original author).Guido van Rossum2000-02-291-27/+57
| | | | | | | | | | | This patch fixes 3 small problems. 1) If a map is used which is generated with 'makedbm -a', the trailing '\0' is now handled correctely. 2) The nis.maps() function skipped the first map in the output list. 3) The library '-lnsl' is added in Setup.in (needed on Linux glibc2 and Solaris systems. Maybe on other systems too?) [I note that this still doesn't work when you are using NIS+ --GvR]
* Use the t# format where appropriate. Greg Stein.Guido van Rossum1998-10-081-1/+1
|
* Make gcc -Wall happy.Guido van Rossum1998-10-071-5/+7
|
* Apply two changes, systematically:Guido van Rossum1997-10-011-4/+3
| | | | | | | | | | | | | | | | | (1) Use PyErr_NewException("module.class", NULL, NULL) to create the exception object. (2) Remove all calls to Py_FatalError(); instead, return or ignore the errors -- the import code now checks PyErr_Occurred() after calling a module's init function, so it's no longer a fatal error for the initialization to fail. Also did some small cleanups, e.g. removed unnecessary test for "already initialized" from initfpectl(), and unified initposix()/initnt(). I haven't checked this very thoroughly, so while the changes are pretty trivial -- beware of untested code!
* Nailed a couple of memory leaks, caught by Purify.Barry Warsaw1997-01-091-7/+16
|
* cat and puste errorsBarry Warsaw1996-12-111-2/+5
|
* nis_maplist(): Use check of yp_get_default_domain() return valueBarry Warsaw1996-12-111-1/+5
| | | | | | that's used in other parts of this module. nis_maps(): use PyArg_NoArgs().
* Renamed, and bug fixed:Barry Warsaw1996-12-111-111/+123
| | | | | | | | | | | | | | | | | | | Two interesting problems in nis_maplist(). First, it is possible that clnt_create() will return NULL. This was being caught, but no Python error was being set. I use clnt_spcreateerror() to generate the value of the exception. But why would clnt_create() fail? It's because no server was being found. And why was this? It was because nis_maplist() tried only to get the NIS master for the first map in the aliases list, which is passwd.byname, and guess what? That's the one NIS map CNRI does *not* export! So the yp_master() call was failing to return a valid server. I now cycle through all the map aliases until I find a valid master. If not, a different exception is set. I'm not sure this is the completely correct way to do all this, but short of rewriting the entire nismodule.c (to expose the proper API to Python), it should do the trick.
* Added ``extern int get_default_domain();'' for SGI, to keep gcc -Wall happy.Guido van Rossum1996-12-091-0/+5
|
* Rearrange include headers (needed on some platforms).Guido van Rossum1996-08-081-1/+1
|
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-011-6/+17
|
* * nismodule.c: database keys and values can contain null bytes. be moreGuido van Rossum1993-11-031-6/+20
| | | | | | | | | | careful about these. * arraymodule.c: added 8 byte swap; added 'i' format character; added reverse() method; rename read/write to fromfile/tofile. * config.c: Set version to 0.9.9++. * rotormodule.c (r_rand): declare k1..k5 as unsigned longs so the shifts will have a well-defined effect independent of word size. * bltinmodule.c: renamed bagof() to filter().
* * Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c.Guido van Rossum1993-06-171-1/+1
| | | | | | | | | | Added $(SYSDEF) to its build rule in Makefile. * cgensupport.[ch], modsupport.[ch]: removed some old stuff. Also changed files that still used it... And made several things static that weren't but should have been... And other minor cleanups... * listobject.[ch]: add external interfaces {set,get}listslice * socketmodule.c: fix bugs in new send() argument parsing. * sunaudiodevmodule.c: added flush() and close().
* Added error handling and free resources.Guido van Rossum1992-08-121-54/+81
|
* NIS interface by Fred Gansevles <Fred.Gansevles@cs.utwente.nl>.Guido van Rossum1992-08-121-0/+292