Skip to content

Commit 12586de

Browse files
committed
21462-Open-a-FileStream-based-on-fd-or-FILE
Not supported on Windows
1 parent c452eb3 commit 12586de

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

platforms/win32/plugins/FilePlugin/sqWin32FilePrims.c

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,40 @@ sqInt sqFileOpenNew(SQFile *f, char* fileNameIndex, sqInt fileNameSize, sqInt* e
250250
return 1;
251251
}
252252

253+
#if PharoVM
254+
sqInt
255+
sqFileFdOpen(SQFile *sqFile, int fd, sqInt writeFlag)
256+
{
257+
/*
258+
* Open the file with the supplied file descriptor in binary mode.
259+
*
260+
* writeFlag determines whether the file is read-only or writable.
261+
* sqFile is populated with the file information.
262+
* Smalltalk is reponsible for handling character encoding and
263+
* line ends.
264+
*
265+
* Not supported on Windows
266+
*/
267+
return interpreterProxy->success(false);
268+
}
269+
270+
sqInt
271+
sqFileFileOpen(SQFile *sqFile, FILE *file, sqInt writeFlag)
272+
{
273+
/*
274+
* Populate the supplied SQFile structure with the supplied FILE.
275+
*
276+
* writeFlag indicates whether the file is read-only or writable.
277+
*
278+
* Not supported on Windows
279+
*/
280+
return interpreterProxy->success(false);
281+
}
282+
#endif
283+
284+
285+
286+
253287
/*
254288
* Fill-in files with handles for stdin, stdout and seterr as available and
255289
* answer a bit-mask of the availability, 1 corresponding to stdin, 2 to stdout

0 commit comments

Comments
 (0)