Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
78f92898
Commit
78f92898
authored
Mar 12, 2000
by
Waldek Hebisch
Committed by
Alexandre Julliard
Mar 12, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented _read and _lseek.
parent
7be99b01
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
13 deletions
+26
-13
crtdll.spec
dlls/crtdll/crtdll.spec
+1
-1
crtdll_main.c
dlls/crtdll/crtdll_main.c
+25
-12
No files found.
dlls/crtdll/crtdll.spec
View file @
78f92898
...
...
@@ -181,7 +181,7 @@ init CRTDLL_Init
@ cdecl _lrotl (long long) CRTDLL__lrotl
@ stub _lrotr
@ stub _lsearch
@
stub
_lseek
@
cdecl _lseek(long long long) CRTDLL_
_lseek
@ cdecl _ltoa(long str long) CRTDLL__ltoa
@ stub _ltow
@ cdecl _makepath (ptr str str str str) CRTDLL__makepath
...
...
dlls/crtdll/crtdll_main.c
View file @
78f92898
...
...
@@ -332,18 +332,6 @@ INT __cdecl CRTDLL__setjmp(LPDWORD *jmpbuf)
FIXME
(
":(%p): stub
\n
"
,
jmpbuf
);
return
0
;
}
/*********************************************************************
* _read (CRTDLL.256)
*
* BUGS
* Unimplemented
*/
INT
__cdecl
CRTDLL__read
(
INT
fd
,
LPVOID
buf
,
UINT
count
)
{
FIXME
(
":(%d,%p,%d): stub
\n
"
,
fd
,
buf
,
count
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
/*********************************************************************
* fopen (CRTDLL.372)
...
...
@@ -477,6 +465,18 @@ INT __cdecl CRTDLL_fscanf( CRTDLL_FILE *stream, LPSTR format, ... )
}
/*********************************************************************
* _lseek (CRTDLL.179)
*/
LONG
__cdecl
CRTDLL__lseek
(
INT
fd
,
LONG
offset
,
INT
whence
)
{
TRACE
(
"fd %d to 0x%08lx pos %s
\n
"
,
fd
,
offset
,(
whence
==
SEEK_SET
)
?
"SEEK_SET"
:
(
whence
==
SEEK_CUR
)
?
"SEEK_CUR"
:
(
whence
==
SEEK_END
)
?
"SEEK_END"
:
"UNKNOWN"
);
return
SetFilePointer
(
fd
,
offset
,
NULL
,
whence
);
}
/*********************************************************************
* fseek (CRTDLL.382)
*/
LONG
__cdecl
CRTDLL_fseek
(
CRTDLL_FILE
*
file
,
LONG
offset
,
INT
whence
)
...
...
@@ -641,6 +641,17 @@ BOOL __cdecl CRTDLL__isatty(DWORD x)
}
/*********************************************************************
* _read (CRTDLL.256)
*
*/
INT
__cdecl
CRTDLL__read
(
INT
fd
,
LPVOID
buf
,
UINT
count
)
{
TRACE
(
"0x%08x bytes fd %d to %p
\n
"
,
count
,
fd
,
buf
);
if
(
!
fd
)
fd
=
GetStdHandle
(
STD_INPUT_HANDLE
);
return
_lread
(
fd
,
buf
,
count
);
}
/*********************************************************************
* _write (CRTDLL.332)
*/
INT
__cdecl
CRTDLL__write
(
INT
fd
,
LPCVOID
buf
,
UINT
count
)
...
...
@@ -1219,6 +1230,8 @@ HFILE __cdecl CRTDLL__open(LPCSTR path,INT flags)
}
if
(
flags
&
0x0008
)
/* O_APPEND */
FIXME
(
"O_APPEND not supported
\n
"
);
if
(
!
(
flags
&
0x8000
/* O_BINARY */
)
||
(
flags
&
0x4000
/* O_TEXT */
))
FIXME
(
":text mode not supported
\n
"
);
if
(
flags
&
0xf0f4
)
TRACE
(
"CRTDLL_open file unsupported flags 0x%04x
\n
"
,
flags
);
/* End Fixme */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment