Added get_page_size function.

This commit is contained in:
Alexandre Julliard 1999-11-13 19:49:05 +00:00
parent 8b8828f578
commit c76ad35a32
2 changed files with 10 additions and 0 deletions

View File

@ -149,6 +149,12 @@ static void mapping_destroy( struct object *obj )
if (mapping->file) release_object( mapping->file );
}
int get_page_size(void)
{
if (!page_mask) init_page_size();
return page_mask + 1;
}
/* create a file mapping */
DECL_HANDLER(create_mapping)
{

View File

@ -159,6 +159,10 @@ extern int free_console( struct process *process );
extern int debugger_attach( struct process *process, struct thread *debugger );
extern void debug_exit_thread( struct thread *thread, int exit_code );
/* mapping functions */
extern int get_page_size(void);
extern int debug_level;
#endif /* __WINE_SERVER_OBJECT_H */