Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yoann Laissus
wine
Commits
78f92898
Commit
78f92898
authored
25 years ago
by
Waldek Hebisch
Committed by
Alexandre Julliard
25 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Implemented _read and _lseek.
parent
7be99b01
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/crtdll/crtdll.spec
+1
-1
1 addition, 1 deletion
dlls/crtdll/crtdll.spec
dlls/crtdll/crtdll_main.c
+25
-12
25 additions, 12 deletions
dlls/crtdll/crtdll_main.c
with
26 additions
and
13 deletions
dlls/crtdll/crtdll.spec
+
1
−
1
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
...
...
This diff is collapsed.
Click to expand it.
dlls/crtdll/crtdll_main.c
+
25
−
12
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)
...
...
@@ -476,6 +464,18 @@ INT __cdecl CRTDLL_fscanf( CRTDLL_FILE *stream, LPSTR format, ... )
return
0
;
}
/*********************************************************************
* _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)
*/
...
...
@@ -640,6 +640,17 @@ BOOL __cdecl CRTDLL__isatty(DWORD x)
return
TRUE
;
}
/*********************************************************************
* _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)
*/
...
...
@@ -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 */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment