diff options
author | darylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-07-30 00:25:54 +0000 |
---|---|---|
committer | darylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-07-30 00:25:54 +0000 |
commit | f766dd76fde231ecd4f2e9faf99293e90902cebb (patch) | |
tree | 38f845277a463deb34006d84ff1651203dfa425a /StdLibPrivateInternalFiles/Include/kfile.h | |
parent | 84c1b22e843a3af1994e2a938a3685f4874462f9 (diff) | |
download | edk2-f766dd76fde231ecd4f2e9faf99293e90902cebb.tar.gz edk2-f766dd76fde231ecd4f2e9faf99293e90902cebb.tar.bz2 edk2-f766dd76fde231ecd4f2e9faf99293e90902cebb.zip |
Changes so that Argv points to narrow-character versions of the command-line arguments.
Fix "long double" handling and differences between MSFT and GCC compilers.
Fix compliance issues with ISO/IEC 9899:199409
New Function declarations:
setenv(), fparseln(), GetFileNameFromPath(), rename()
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12060 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'StdLibPrivateInternalFiles/Include/kfile.h')
-rw-r--r-- | StdLibPrivateInternalFiles/Include/kfile.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/StdLibPrivateInternalFiles/Include/kfile.h b/StdLibPrivateInternalFiles/Include/kfile.h index 845b7d908e..c83b07b1a8 100644 --- a/StdLibPrivateInternalFiles/Include/kfile.h +++ b/StdLibPrivateInternalFiles/Include/kfile.h @@ -79,14 +79,14 @@ struct _Device_Node; This structure must be a multiple of 8 bytes in length.
*/
struct __filedes {
+ off_t f_offset; /* current position in file */
const struct fileops *f_ops;
void *devdata; /* Device-specific data */
- off_t f_offset; /* current position in file */
- UINT32 f_flag; /* see fcntl.h */
- UINT32 f_iflags; // In use if non-zero
int Oflags; // From the open call
int Omode; // From the open call
int RefCount; // Reference count of opens
+ UINT32 f_flag; /* see fcntl.h */
+ UINT32 f_iflags; // In use if non-zero
UINT16 MyFD; // Which FD this is.
UINT16 Reserved_1; // Force this structure to be a multiple of 8-bytes in length
};
@@ -130,7 +130,8 @@ typedef struct { /* Type of all Device-specific handler's open routines. */
typedef
- int (EFIAPI *FO_OPEN) (struct __filedes *FD, void *IP, wchar_t *Path, wchar_t *Flags);
+ int (EFIAPI *FO_OPEN) (struct _Device_Node *This, struct __filedes *FD,
+ int Instance, wchar_t *Path, wchar_t *MPath);
#define FILE_IS_USABLE(fp) (((fp)->f_iflags & \
(FIF_WANTCLOSE|FIF_LARVAL)) == 0)
@@ -153,16 +154,16 @@ int fdcreate (CHAR16 *, UINT32, UINT32, BOOLEAN, VOID *, const struct fileo fnullop_* Does nothing and returns success.
fbadop_* Does nothing and returns EPERM
*/
-int fnullop_fcntl (struct __filedes *filp, UINT32 Cmd, void *p3, void *p4);
-short fnullop_poll (struct __filedes *filp, short Events);
-int fnullop_flush (struct __filedes *filp);
-
-int fbadop_stat (struct __filedes *filp, struct stat *StatBuf, void *Buf);
-int fbadop_ioctl (struct __filedes *filp, ULONGN Cmd, void *argp);
-int fbadop_delete (struct __filedes *filp);
-int fbadop_rmdir (struct __filedes *filp);
-int fbadop_mkdir (const char *path, __mode_t perms);
-int fbadop_rename (const char *from, const char *to);
+int EFIAPI fnullop_fcntl (struct __filedes *filp, UINT32 Cmd, void *p3, void *p4);
+short EFIAPI fnullop_poll (struct __filedes *filp, short Events);
+int EFIAPI fnullop_flush (struct __filedes *filp);
+
+int EFIAPI fbadop_stat (struct __filedes *filp, struct stat *StatBuf, void *Buf);
+int EFIAPI fbadop_ioctl (struct __filedes *filp, ULONGN Cmd, void *argp);
+int EFIAPI fbadop_delete (struct __filedes *filp);
+int EFIAPI fbadop_rmdir (struct __filedes *filp);
+int EFIAPI fbadop_mkdir (const char *path, __mode_t perms);
+int EFIAPI fbadop_rename (const char *from, const char *to);
__END_DECLS
|