summaryrefslogtreecommitdiffstats
path: root/contrib/tcsh/sh.init.c
diff options
context:
space:
mode:
authormp <mp@FreeBSD.org>2005-04-24 19:41:08 +0000
committermp <mp@FreeBSD.org>2005-04-24 19:41:08 +0000
commit94a109bd814074f290affa8f7698847719d55833 (patch)
tree6daeb0464a7bc8705c0246b7fd98e212b6beed09 /contrib/tcsh/sh.init.c
parentbbd1addf8f9452690ad13ce5b875ee4cc9633958 (diff)
downloadFreeBSD-src-94a109bd814074f290affa8f7698847719d55833.zip
FreeBSD-src-94a109bd814074f290affa8f7698847719d55833.tar.gz
Import of tcsh-6.14.00
Diffstat (limited to 'contrib/tcsh/sh.init.c')
-rw-r--r--contrib/tcsh/sh.init.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/contrib/tcsh/sh.init.c b/contrib/tcsh/sh.init.c
index f8e57ef..0612cd9 100644
--- a/contrib/tcsh/sh.init.c
+++ b/contrib/tcsh/sh.init.c
@@ -1,4 +1,4 @@
-/* $Header: /src/pub/tcsh/sh.init.c,v 3.51 2004/02/21 20:34:25 christos Exp $ */
+/* $Header: /src/pub/tcsh/sh.init.c,v 3.55 2005/01/18 20:43:31 christos Exp $ */
/*
* sh.init.c: Function and signal tables
*/
@@ -32,7 +32,7 @@
*/
#include "sh.h"
-RCSID("$Id: sh.init.c,v 3.51 2004/02/21 20:34:25 christos Exp $")
+RCSID("$Id: sh.init.c,v 3.55 2005/01/18 20:43:31 christos Exp $")
#include "ed.h"
#include "tw.h"
@@ -155,6 +155,9 @@ struct biltins bfunc[] = {
{ "suspend", dosuspend, 0, 0 },
{ "switch", doswitch, 1, INF },
{ "telltc", dotelltc, 0, INF },
+#ifndef WINNT_NATIVE
+ { "termname", dotermname, 0, 1 },
+#endif
{ "time", dotime, 0, INF },
#if defined(_CX_UX)
{ "ucb", doucb, 0, INF },
@@ -217,7 +220,7 @@ int nsrchn = sizeof srchn / sizeof *srchn;
*/
/* We define NUMSIG to avoid changing NSIG or MAXSIG */
-#ifdef POSIX
+#if defined(POSIX) && !defined(__CYGWIN__)
# define NUMSIG 65
#else /* !POSIX */
# define NUMSIG 33
@@ -225,7 +228,7 @@ int nsrchn = sizeof srchn / sizeof *srchn;
int nsig = NUMSIG - 1; /* This should be the number of real signals */
/* not counting signal 0 */
-struct mesg mesg[NUMSIG]; /* Arrays start at [0] so we initialize from */
+struct mesg mesg[NUMSIG]; /* Arrays start at [0] so we initialize from */
/* 0 to 32 or 64, the max real signal number */
void
OpenPOWER on IntegriCloud