371 |
/* ------------- lchown taken from Python's posixmodule.c -------------- */ |
/* ------------- lchown taken from Python's posixmodule.c -------------- */ |
372 |
/* duplicate here to avoid v2.3 requirement */ |
/* duplicate here to avoid v2.3 requirement */ |
373 |
|
|
374 |
|
#ifdef HAVE_LCHOWN |
375 |
static PyObject * |
static PyObject * |
376 |
posix_error_with_allocated_filename(char* name) |
posix_error_with_allocated_filename(char* name) |
377 |
{ |
{ |
399 |
Py_INCREF(Py_None); |
Py_INCREF(Py_None); |
400 |
return Py_None; |
return Py_None; |
401 |
} |
} |
402 |
|
#endif /* HAVE_LCHOWN */ |
403 |
|
|
404 |
/* ------------- Python export lists -------------------------------- */ |
/* ------------- Python export lists -------------------------------- */ |
405 |
|
|
413 |
"Quote string, escaping non-printables"}, |
"Quote string, escaping non-printables"}, |
414 |
{"acl_unquote", acl_unquote, METH_VARARGS, |
{"acl_unquote", acl_unquote, METH_VARARGS, |
415 |
"Unquote string, producing original input to quote"}, |
"Unquote string, producing original input to quote"}, |
416 |
|
#ifdef HAVE_LCHOWN |
417 |
{"lchown", posix_lchown, METH_VARARGS, |
{"lchown", posix_lchown, METH_VARARGS, |
418 |
"Like chown, but don't follow symlinks"}, |
"Like chown, but don't follow symlinks"}, |
419 |
|
#endif /* HAVE_LCHOWN */ |
420 |
{NULL, NULL, 0, NULL} |
{NULL, NULL, 0, NULL} |
421 |
}; |
}; |
422 |
|
|