#362 Make exec and spawn function prototypes 32/64 bit neutral

closed-accepted
2014-11-03
2008-04-24
Danny Smith
No

With MS compiler exec* and spawn* functions return intptr_t rather than int.
(see eg http://msdn2.microsoft.com/en-us/library/xwy0k9bb\(VS.71).aspx)
This facilitates Win32-Win64 compatibility.
Here, in the spirit of mingw32-mingw64 compatibility,is a patch to do the same on mingw.

2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>

\* include/process.h:  Include stdint.h for intptr\_t definition.
\(\_execl, \_execle, \_execlp, \_execlpe, \_execv, \_execve, \_execvp,
 \_execvpe, \_spawnl, \_spawnle, \_spawnlp, \_spawnlpe, \_spawnv,
 \_spawnve, \_spawnvp, \_spawnvpe\):  Return intptr\_t.
\(execl,  execle,  execlp,  execlpe,  execv,  execve,  execvp,
 execvpe,  spawnl,  spawnle,  spawnlp,  spawnlpe,  spawnv,
 spawnve,  spawnvp,  spawnvpe\):  Return intptr\_t.
\* include/wchar.h: Guard wide process.h functions with \!\_\_STRICT\_ANSI\_\_.   
\[\!\_WPROCESS\_DEFINED\]: Include stdint.h for intptr\_t definition.
\(\_wexecl, \_wexecle, \_wexeclp, \_wexeclpe, \_wexecv, \_wexecve, \_wexecvp,
 \_wexecvpe, \_wspawnl, \_wspawnle, \_wspawnlp, \_wspawnlpe, \_wspawnv,
 \_wspawnve, \_wspawnvp, \_wspawnvpe\):  Return intptr\_t.

Discussion

  • Danny Smith

    Danny Smith - 2008-04-24
     
  • Danny Smith

    Danny Smith - 2008-04-24
    • labels: --> MinGW runtime
    • assigned_to: nobody --> ir0nh34d
     
  • Chris Sutcliffe

    Chris Sutcliffe - 2008-04-26
    • status: open --> closed-accepted
     
  • Chris Sutcliffe

    Chris Sutcliffe - 2008-04-26

    Logged In: YES
    user_id=570619
    Originator: NO

    Committed to CVS.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks