Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
29 crawler(s) on-line.
 113 guest(s) on-line.
 1 member(s) on-line.


 Hypex

You are an anonymous user.
Register Now!
 Hypex:  29 secs ago
 billt:  25 mins ago
 QBit:  36 mins ago
 zipper:  42 mins ago
 kolla:  50 mins ago
 Swisso:  1 hr 25 mins ago
 amigakit:  1 hr 27 mins ago
 AndreasM:  1 hr 47 mins ago
 Hammer:  2 hrs 52 mins ago
 pixie:  3 hrs 10 mins ago

/  Forum Index
   /  Amiga Gaming
      /  Rogue-like ports thread
Register To Post

Goto page ( Previous Page 1 | 2 | 3 | 4 | 5 | 6 )
PosterThread
salass00 
Re: Rogue-like ports thread
Posted on 10-Jan-2014 20:03:23
#101 ]
Elite Member
Joined: 31-Oct-2003
Posts: 2707
From: Finland

@olegil

I think it only produces an error if the inline version of the open() function is used:
Quote:

__errordecl (__open_too_many_args,
"open can be called either with 2 or 3 arguments, not more");
__errordecl (__open_missing_mode,
"open with O_CREAT in second argument needs 3 arguments");

__extern_always_inline int
open (__const char *__path, int __oflag, ...)
{
if (__va_arg_pack_len () > 1)
__open_too_many_args ();

if (__builtin_constant_p (__oflag))
{
if ((__oflag & O_CREAT) != 0 && __va_arg_pack_len () < 1)
{
__open_missing_mode ();
return __open_2 (__path, __oflag);
}
return __open_alias (__path, __oflag, __va_arg_pack ());
}

if (__va_arg_pack_len () < 1)
return __open_2 (__path, __oflag);

return __open_alias (__path, __oflag, __va_arg_pack ());
}

Last edited by salass00 on 10-Jan-2014 at 08:04 PM.

 Status: Offline
Profile     Report this post  
Goto page ( Previous Page 1 | 2 | 3 | 4 | 5 | 6 )

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle