[24] in Moira

home help back first fref pref prev next nref lref last post

unportable use of stdio in moira library

daemon@ATHENA.MIT.EDU (John Carr)
Sat Jan 13 07:06:05 1990

To: bug-moira@ATHENA.MIT.EDU
Date: Sat, 13 Jan 90 07:05:44 EST
From: John Carr <jfc@ATHENA.MIT.EDU>

paris:/source/4.3/athena.lib/moira/rpc/critical.c, function critical_alert()
makes unjustified assumptions about structures private to the standard I/O
package.  Around line 50:

    /* Put the fully formatted message into buf */
    _bufstr._flag = _IOWRT + _IOSTRG;
    _bufstr._ptr = buf;
    _bufstr._cnt = BUFSIZ;
    _doprnt(msg, &args, &_bufstr);
    putc('\0', &_bufstr);

I do not know if this function can even be emulated under AIX on the PS/2
(the compiler got very upset at this, as "_IOSTRG" is not defined).

  --John Carr

home help back first fref pref prev next nref lref last post