🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #14019

Bug with lattice open()???

#14019
From: Jonathan Hue
Date: Sun, 04 Mar 1990 01:34
26 lines
1046 bytes
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 <fcntl.h>
#include <stdio.h>

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
Technical Details
Message-ID: <8303@netcom.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!netcom!hue

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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