Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!netcom!hue From: hue@netcom.UUCP (Jonathan Hue) Newsgroups: comp.sys.amiga.tech Subject: Bug with lattice open()??? Keywords: O_EXCL Message-ID: <8303@netcom.UUCP> Date: 4 Mar 90 01:34:39 GMT Organization: NetCom- The Bay Area's Public Access Unix System {408 249-0290 guest} Lines: 26 Has anyone else had problems with open using the O_EXCL flag with Lattice C? I've had problems with 5.04A and 5.05. The following program causes a "Software Error, Task Held". It runs fine on UNIX boxes and does the right thing. Am I doing something incredibly stupid that I can't see? ----------------------save this as opentest.c---------------------- #include #include main() { int fd; switch(fd = open("opentest", O_WRONLY | O_CREAT | O_EXCL, 0777)) { case -1: fprintf(stderr, "open failed, test passed\n"); break; default: fprintf(stderr, "open succeeded, test failed\n"); break; } } -Jonathan