Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-01-08 07:02:02 +0300
committerChristopher Faylor <me@cgf.cx>2001-01-08 07:02:02 +0300
commit077ec4cb37134f2e90dd282ce9c6e496052e35e5 (patch)
treed551c0b2fc0000d7a858d98afbd1c5d27ecb8ac1 /winsup/cygwin/pinfo.cc
parent10422a10ea57f189556171b00c691536512beaa0 (diff)
* pinfo.cc (codepage_init): Move function.
* environ.cc (codepage_init): To here. * exceptoins.cc (SIG_NONMASKABLE): Remove SIGCONT from consideration since it is supposed to be maskable. * signal.cc (sigaction): Ditto. * sigproc.cc (wait_sig): Ditto. * winsup.h: Eliminate global declaration of codepage_init.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r--winsup/cygwin/pinfo.cc29
1 files changed, 2 insertions, 27 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index eea05c03e..f9b045710 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -1,6 +1,6 @@
/* pinfo.cc: process table support
- Copyright 1996, 1997, 1998, 2000 Cygnus Solutions.
+ Copyright 1996, 1997, 1998, 2000, 2001 Red Hat, Inc.
This file is part of Cygwin.
@@ -87,31 +87,6 @@ set_myself (pid_t pid, HANDLE h)
return;
}
-extern "C" void
-codepage_init (const char *buf)
-{
- if (!buf || !*buf)
- return;
-
- if ( strcmp ( buf, "oem" ) == 0 )
- {
- current_codepage = oem_cp;
- SetFileApisToOEM ();
- debug_printf ( "File APIs set to OEM" );
- }
- else if ( strcmp ( buf, "ansi" ) == 0 )
- {
- current_codepage = ansi_cp;
- SetFileApisToANSI ();
- debug_printf ( "File APIs set to ANSI" );
- }
- else
- {
- debug_printf ( "Wrong codepage name: %s", buf );
- }
-}
-
-
/* Initialize the process table entry for the current task.
This is not called for fork'd tasks, only exec'd ones. */
void __stdcall
@@ -339,7 +314,7 @@ winpids::add (DWORD& nelem, bool winpid, DWORD pid)
/* Scan list of previously recorded pids to make sure that this pid hasn't
shown up before. This can happen when a process execs. */
for (unsigned i = 0; i < nelem; i++)
- if (pinfolist[i]->pid == pinfolist[nelem]->pid )
+ if (pinfolist[i]->pid == pinfolist[nelem]->pid)
{
if ((_pinfo *) pinfolist[nelem] != (_pinfo *) myself)
pinfolist[nelem].release ();