diff options
author | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2002-03-03 02:59:16 (GMT) |
---|---|---|
committer | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2002-03-03 02:59:16 (GMT) |
commit | 7bf6833e178696b9815fd4e4c6d1cecc8b46bdd2 (patch) | |
tree | 9da72d3e52c043d4fc5437967ddb9a0f0226b6e9 /Modules/fcntlmodule.c | |
parent | 38b504e9e3ef3049815779e8c18b62f690ec4ed2 (diff) | |
download | cpython-7bf6833e178696b9815fd4e4c6d1cecc8b46bdd2.zip cpython-7bf6833e178696b9815fd4e4c6d1cecc8b46bdd2.tar.gz cpython-7bf6833e178696b9815fd4e4c6d1cecc8b46bdd2.tar.bz2 |
OS/2 EMX port changes (Modules part of patch #450267):
Modules/
_hotshot.c
dbmmodule.c
fcntlmodule.c
main.c
pwdmodule.c
readline.c
selectmodule.c
signalmodule.c
termios.c
timemodule.c
unicodedata.c
Diffstat (limited to 'Modules/fcntlmodule.c')
-rw-r--r-- | Modules/fcntlmodule.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c index 9f84a2c..13cd0f7 100644 --- a/Modules/fcntlmodule.c +++ b/Modules/fcntlmodule.c @@ -222,12 +222,17 @@ fcntl_lockf(PyObject *self, PyObject *args) &lenobj, &startobj, &whence)) return NULL; +#if defined(PYOS_OS2) && defined(PYCC_GCC) + PyErr_SetString(PyExc_NotImplementedError, + "lockf not supported on OS/2 (EMX)"); + return NULL; +#else #ifndef LOCK_SH #define LOCK_SH 1 /* shared lock */ #define LOCK_EX 2 /* exclusive lock */ #define LOCK_NB 4 /* don't block when locking */ #define LOCK_UN 8 /* unlock */ -#endif +#endif /* LOCK_SH */ { struct flock l; if (code == LOCK_UN) @@ -275,6 +280,7 @@ fcntl_lockf(PyObject *self, PyObject *args) } Py_INCREF(Py_None); return Py_None; +#endif /* defined(PYOS_OS2) && defined(PYCC_GCC) */ } static char lockf_doc [] = |