mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/win32.c, win32/win32.h (rb_w32_getpid): negate pid under Win9x.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b9e3aa30f7
commit
d0c6f63804
3 changed files with 17 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Sep 11 17:47:17 2002 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c, win32/win32.h (rb_w32_getpid): negate pid under Win9x.
|
||||
[ruby-dev:18262]
|
||||
|
||||
Wed Sep 11 12:58:57 2002 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* string.c (get_pat): Add an extra argument "quote".
|
||||
|
|
|
@ -2917,3 +2917,13 @@ void rb_w32_free_environ(char **env)
|
|||
while (*t) free(*t++);
|
||||
free(env);
|
||||
}
|
||||
|
||||
pid_t rb_w32_getpid(void)
|
||||
{
|
||||
pid_t pid;
|
||||
|
||||
pid = _getpid();
|
||||
if (IsWin95()) pid = -pid;
|
||||
|
||||
return pid;
|
||||
}
|
||||
|
|
|
@ -141,7 +141,7 @@ extern "C++" {
|
|||
#define umask _umask
|
||||
#define unlink _unlink
|
||||
#define write _write
|
||||
#define getpid _getpid
|
||||
#define getpid rb_w32_getpid
|
||||
#define sleep(x) rb_w32_sleep((x)*1000)
|
||||
#define utime _utime
|
||||
#define vsnprintf _vsnprintf
|
||||
|
@ -201,6 +201,7 @@ extern int gettimeofday(struct timeval *, struct timezone *);
|
|||
extern pid_t waitpid (pid_t, int *, int);
|
||||
extern int do_spawn(char *);
|
||||
extern int kill(int, int);
|
||||
extern pid_t rb_w32_getpid(void);
|
||||
#ifndef __BORLANDC__
|
||||
extern int isinf(double);
|
||||
extern int isnan(double);
|
||||
|
|
Loading…
Reference in a new issue