head 1.2; access; symbols SFIO_1999:1.1.1.1 SFIO_1998:1.1.1.1 SFIO_1997:1.1.1.1 ATT:1.1.1; locks; strict; comment @ * @; 1.2 date 99.09.11.12.42.13; author rse; state Exp; branches; next 1.1; 1.1 date 96.12.13.20.51.08; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 96.12.13.20.51.08; author rse; state Exp; branches; next ; desc @@ 1.2 log @Incorporate stuff from RSE's Sfio98 variant @ text @#include "sfhdr.h" #include "stdio.h" /* Open a stream given a file descriptor. ** ** Written by Kiem-Phong Vo (06/27/90). */ #if __STD_C Sfio_t* _stdopen(reg int fd, reg const char* mode) #else Sfio_t* _stdopen(fd,mode) reg int fd; reg char* mode; #endif { int sflags; if(fd < 0 || (sflags = _sftype(mode,NIL(int*))) == 0) return NIL(Sfio_t*); else return sfnew(NIL(Sfio_t*),NIL(Void_t*),(size_t)SF_UNBOUND,fd,sflags); } @ 1.1 log @Initial revision @ text @d2 1 @ 1.1.1.1 log @Import of Sfio1997 @ text @@