Skip to content

Commit

Permalink
21462-Open-a-FileStream-based-on-fd-or-FILE
Browse files Browse the repository at this point in the history
Not supported on Windows
  • Loading branch information
akgrant committed Mar 3, 2018
1 parent c452eb3 commit 12586de
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions platforms/win32/plugins/FilePlugin/sqWin32FilePrims.c
Expand Up @@ -250,6 +250,40 @@ sqInt sqFileOpenNew(SQFile *f, char* fileNameIndex, sqInt fileNameSize, sqInt* e
return 1;
}

#if PharoVM
sqInt
sqFileFdOpen(SQFile *sqFile, int fd, sqInt writeFlag)
{
/*
* Open the file with the supplied file descriptor in binary mode.
*
* writeFlag determines whether the file is read-only or writable.
* sqFile is populated with the file information.
* Smalltalk is reponsible for handling character encoding and
* line ends.
*
* Not supported on Windows
*/
return interpreterProxy->success(false);
}

sqInt
sqFileFileOpen(SQFile *sqFile, FILE *file, sqInt writeFlag)
{
/*
* Populate the supplied SQFile structure with the supplied FILE.
*
* writeFlag indicates whether the file is read-only or writable.
*
* Not supported on Windows
*/
return interpreterProxy->success(false);
}
#endif




/*
* Fill-in files with handles for stdin, stdout and seterr as available and
* answer a bit-mask of the availability, 1 corresponding to stdin, 2 to stdout
Expand Down

0 comments on commit 12586de

Please sign in to comment.