This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | oskar86 |
|---|---|
| Recipients | oskar86 |
| Date | 2008年07月22日.13:56:30 |
| SpamBayes Score | 0.00047833493 |
| Marked as misclassified | No |
| Message-id | <1216734993.32.0.611530331004.issue3425@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
I'm porting, embedding and extending Python in a very limited environment. This environment does not have utime.h and have not defined the following function: int utime(const char *, const struct utimbuf *); Although the function called utimes, defined in sys/time.h exist. int utimes(const char *path, const struct timeval times[2]); In the method, in posixmodule.c: static PyObject * posix_utime(PyObject *self, PyObject *args); usage of these methods are used. If a time is specified in args, a define determines which of the two methods to use, utime or utimes depending if these exist or not. If Py_None is sent instead utime is always used, the solution to solve this is to use #ifdef with HAVE_UTIMES. Line number 2835 in http://svn.python.org/projects/python/trunk/Modules/posixmodule.c I have not checked if this is solved in future versions. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年07月22日 13:56:33 | oskar86 | set | spambayes_score: 0.000478335 -> 0.00047833493 recipients: + oskar86 |
| 2008年07月22日 13:56:33 | oskar86 | set | spambayes_score: 0.000478335 -> 0.000478335 messageid: <1216734993.32.0.611530331004.issue3425@psf.upfronthosting.co.za> |
| 2008年07月22日 13:56:32 | oskar86 | link | issue3425 messages |
| 2008年07月22日 13:56:30 | oskar86 | create | |