Message167311
posix_truncate() accepts a file descriptor, so os.ftruncate() can be removed from Python 3.3.
memset(&path, 0, sizeof(path));
path.function_name = "truncate";
#ifdef HAVE_FTRUNCATE
path.allow_fd = 1;
#endif
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O&O&:truncate", keywords,
path_converter, &path,
_parse_off_t, &length))
return NULL; |
|
Date |
User |
Action |
Args |
2012-08-03 12:13:04 | vstinner | set | recipients:
+ vstinner, larry |
2012-08-03 12:13:04 | vstinner | set | messageid: <1343995984.36.0.909130129312.issue15547@psf.upfronthosting.co.za> |
2012-08-03 12:13:03 | vstinner | link | issue15547 messages |
2012-08-03 12:13:02 | vstinner | create | |
|