diff options
author | Jeffrey Stedfast <fejj@novell.com> | 2009-02-10 17:18:02 +0300 |
---|---|---|
committer | Jeffrey Stedfast <fejj@novell.com> | 2009-02-10 17:18:02 +0300 |
commit | fbdc6bdce0dc478357d5b1e7d7719d1bffa5735c (patch) | |
tree | 2aa98ea4c88891e10dafe0f4a640f938dba39be7 /support | |
parent | c7c6b2b2f4463fbda3f97f0d0d20c334902cc65d (diff) |
2009-02-10 Jeffrey Stedfast <fejj@novell.com>
* old-map.c: Added prototypes to silence compile warnings. Looks
like this file is supposed to be autogenerated, so probably not
the right fix but I can't find the autogen script.
* map.h (helper_Mono_Posix_getpwnamuid): Added a prototype for
this - it doesn't seem to be used anywhere in mono, so
maybe it can be removed but I'm not positive.
(map_Mono_Posix_PollEvents): Added prototype.
(map_Mono_Posix_Signals): Added prototype.
* macros.c: #include "map.h" to silence compile warnings about no
previous prototypes.
svn path=/trunk/mono/; revision=126460
Diffstat (limited to 'support')
-rw-r--r-- | support/ChangeLog | 15 | ||||
-rw-r--r-- | support/macros.c | 1 | ||||
-rw-r--r-- | support/map.h | 3 | ||||
-rw-r--r-- | support/old-map.c | 8 |
4 files changed, 27 insertions, 0 deletions
diff --git a/support/ChangeLog b/support/ChangeLog index a21ccfefbbe..36a42e604d9 100644 --- a/support/ChangeLog +++ b/support/ChangeLog @@ -1,3 +1,18 @@ +2009-02-10 Jeffrey Stedfast <fejj@novell.com> + + * old-map.c: Added prototypes to silence compile warnings. Looks + like this file is supposed to be autogenerated, so probably not + the right fix but I can't find the autogen script. + + * map.h (helper_Mono_Posix_getpwnamuid): Added a prototype for + this - it doesn't seem to be used anywhere in mono, so + maybe it can be removed but I'm not positive. + (map_Mono_Posix_PollEvents): Added prototype. + (map_Mono_Posix_Signals): Added prototype. + + * macros.c: #include "map.h" to silence compile warnings about no + previous prototypes. + 2009-02-09 Jeffrey Stedfast <fejj@novell.com> * supportw.c (SetWindowPos): Fixed compile warnings about diff --git a/support/macros.c b/support/macros.c index cba5e23b55b..03f60745c5d 100644 --- a/support/macros.c +++ b/support/macros.c @@ -9,6 +9,7 @@ #include <dirent.h> #include <string.h> #include <glib.h> +#include "map.h" int wifexited (int status) { diff --git a/support/map.h b/support/map.h index fbc063d59bc..46ed589386e 100644 --- a/support/map.h +++ b/support/map.h @@ -1582,6 +1582,8 @@ int helper_Mono_Posix_Stat (const char* filename, int dereference, int* device, int map_Mono_Posix_AccessMode (int mode); int map_Mono_Posix_FileMode (int mode); int map_Mono_Posix_OpenFlags (int flags); +int map_Mono_Posix_PollEvents (int x); +int map_Mono_Posix_Signals (int x); int map_Mono_Posix_WaitOptions (int wait_options); int Mono_Posix_FromRealTimeSignum (int offset, int* rval); int Mono_Posix_FromStatvfs (struct Mono_Posix_Statvfs* source, void* destination); @@ -1662,6 +1664,7 @@ int Mono_Posix_Syscall_getlogin_r (char* name, guint64 bufsize); int Mono_Posix_Syscall_getpwent (struct Mono_Posix_Syscall__Passwd* pwbuf); int Mono_Posix_Syscall_getpwnam (const char* name, struct Mono_Posix_Syscall__Passwd* passwd); int Mono_Posix_Syscall_getpwnam_r (const char* name, struct Mono_Posix_Syscall__Passwd* pwbuf, void** pwbufp); +int helper_Mono_Posix_getpwnamuid (int mode, char *in_name, int in_uid, char **account, char **password, int *uid, int *gid, char **name, char **home, char **shell); int Mono_Posix_Syscall_getpwuid (unsigned int uid, struct Mono_Posix_Syscall__Passwd* passwd); int Mono_Posix_Syscall_getpwuid_r (unsigned int uid, struct Mono_Posix_Syscall__Passwd* pwbuf, void** pwbufp); int Mono_Posix_Syscall_gettimeofday (struct Mono_Posix_Timeval* tv, void* ignore); diff --git a/support/old-map.c b/support/old-map.c index f35d0d7bacd..bd26a675c87 100644 --- a/support/old-map.c +++ b/support/old-map.c @@ -13,6 +13,14 @@ #include <poll.h> #include "mph.h" #include "old-map.h" + +int map_Mono_Posix_AccessMode (int mode); +int map_Mono_Posix_FileMode (int mode); +int map_Mono_Posix_OpenFlags (int flags); +int map_Mono_Posix_PollEvents (int x); +int map_Mono_Posix_Signals (int x); +int map_Mono_Posix_WaitOptions (int wait_options); + int map_Mono_Posix_OpenFlags (int x) { int r = 0; |