diff options
author | Christopher Faylor <me@cgf.cx> | 2002-10-20 04:15:50 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-10-20 04:15:50 +0000 |
commit | d25c187f126df8e4d1cff98368c24815d2088bd3 (patch) | |
tree | 204a4eb3eafc1c3955417c8d36388f7e030eb1e5 /winsup/cygwin/syscalls.cc | |
parent | bea966c0d9a65fd0c7b909fc5f8b2b2ff7635537 (diff) | |
download | cygnal-d25c187f126df8e4d1cff98368c24815d2088bd3.tar.gz cygnal-d25c187f126df8e4d1cff98368c24815d2088bd3.tar.bz2 cygnal-d25c187f126df8e4d1cff98368c24815d2088bd3.zip |
Rename _kill() to kill() throughout. Rename _raise() to raise() throughout.
Rename _pid() to pid() throughout.
* Makefile.in: Compile some objects with -fomit-frame-pointer.
* cygwin.din: Reverse aliasing for _kill.
* syscalls.cc (_getpid_r): New function, implemented for newlib compatibility.
* shared.cc (open_shared): Remove reserving of memory since previous change
eliminate the need for this hack.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index a2c813c9e..305443f4c 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -252,11 +252,17 @@ remove (const char *ourname) } extern "C" pid_t -_getpid () +getpid () { return myself->pid; } +extern "C" pid_t +_getpid_r (struct _reent *) +{ + return getpid (); +} + /* getppid: POSIX 4.1.1.1 */ extern "C" pid_t getppid () @@ -288,8 +294,8 @@ setsid (void) && !check_pty_fds ()) FreeConsole (); myself->ctty = -1; - myself->sid = _getpid (); - myself->pgid = _getpid (); + myself->sid = getpid (); + myself->pgid = getpid (); syscall_printf ("sid %d, pgid %d, ctty %d", myself->sid, myself->pgid, myself->ctty); return myself->sid; } |