aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1992-04-24 08:11:28 +0000
committerJim Blandy1992-04-24 08:11:28 +0000
commitd4327fecc103493bc8275c3580b05c06c9fcc019 (patch)
treecdb73774491cf71c27c209576895d50633f414b9 /src
parentcab96458f8ef158d9a870f84f09058e0404cd393 (diff)
downloademacs-d4327fecc103493bc8275c3580b05c06c9fcc019.tar.gz
emacs-d4327fecc103493bc8275c3580b05c06c9fcc019.zip
entered into RCS
Diffstat (limited to 'src')
-rw-r--r--src/s/hpux8.h2
-rw-r--r--src/s/rtu.h4
-rw-r--r--src/s/template.h11
-rw-r--r--src/unexec.c4
-rw-r--r--src/xrdb.c15
5 files changed, 29 insertions, 7 deletions
diff --git a/src/s/hpux8.h b/src/s/hpux8.h
index ac047147295..ff48ac59293 100644
--- a/src/s/hpux8.h
+++ b/src/s/hpux8.h
@@ -6,6 +6,8 @@
6 6
7#include "hpux.h" 7#include "hpux.h"
8 8
9#define HPUX8
10
9#define LIB_X11_LIB -L/usr/lib/X11R4 -lX11 11#define LIB_X11_LIB -L/usr/lib/X11R4 -lX11
10#define C_SWITCH_SYSTEM -I/usr/include/X11R4 12#define C_SWITCH_SYSTEM -I/usr/include/X11R4
11 13
diff --git a/src/s/rtu.h b/src/s/rtu.h
index 273db7a3064..b90ad6dd91d 100644
--- a/src/s/rtu.h
+++ b/src/s/rtu.h
@@ -165,8 +165,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
165 165
166/* This is how to get the device name of the tty end of a pty. */ 166/* This is how to get the device name of the tty end of a pty. */
167#define PTY_TTY_NAME_SPRINTF \ 167#define PTY_TTY_NAME_SPRINTF \
168 sprintf (ptyname, "/dev/ttyp%x", i); 168 sprintf (pty_name, "/dev/ttyp%x", i);
169 169
170/* This is how to get the device name of the control end of a pty. */ 170/* This is how to get the device name of the control end of a pty. */
171#define PTY_NAME_SPRINTF \ 171#define PTY_NAME_SPRINTF \
172 sprintf (ptyname, "/dev/pty%x", i); 172 sprintf (pty_name, "/dev/pty%x", i);
diff --git a/src/s/template.h b/src/s/template.h
index 8c354447f54..adc4bef2360 100644
--- a/src/s/template.h
+++ b/src/s/template.h
@@ -1,13 +1,13 @@
1/* Template for system description header files. 1/* Template for system description header files.
2 This file describes the parameters that system description files 2 This file describes the parameters that system description files
3 should define or not. 3 should define or not.
4 Copyright (C) 1985, 1986 Free Software Foundation, Inc. 4 Copyright (C) 1985, 1986, 1992 Free Software Foundation, Inc.
5 5
6This file is part of GNU Emacs. 6This file is part of GNU Emacs.
7 7
8GNU Emacs is free software; you can redistribute it and/or modify 8GNU Emacs is free software; you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by 9it under the terms of the GNU General Public License as published by
10the Free Software Foundation; either version 1, or (at your option) 10the Free Software Foundation; either version 2, or (at your option)
11any later version. 11any later version.
12 12
13GNU Emacs is distributed in the hope that it will be useful, 13GNU Emacs is distributed in the hope that it will be useful,
@@ -73,6 +73,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
73#define FIRST_PTY_LETTER 'a' 73#define FIRST_PTY_LETTER 'a'
74 74
75/* 75/*
76 * Define HAVE_TERMIOS if the system provides POSIX-style
77 * functions and macros for terminal control.
78 */
79
80#define HAVE_TERMIOS
81
82/*
76 * Define HAVE_TERMIO if the system provides sysV-style ioctls 83 * Define HAVE_TERMIO if the system provides sysV-style ioctls
77 * for terminal control. 84 * for terminal control.
78 */ 85 */
diff --git a/src/unexec.c b/src/unexec.c
index 5417f760467..c1dc6e33016 100644
--- a/src/unexec.c
+++ b/src/unexec.c
@@ -207,7 +207,11 @@ static long data_scnptr;
207 207
208#else /* not COFF */ 208#else /* not COFF */
209 209
210#ifdef __STDC__
211extern void *sbrk ();
212#else
210extern char *sbrk (); 213extern char *sbrk ();
214#endif
211 215
212#define SYMS_START ((long) N_SYMOFF (ohdr)) 216#define SYMS_START ((long) N_SYMOFF (ohdr))
213 217
diff --git a/src/xrdb.c b/src/xrdb.c
index 681544eb068..1ab859727d2 100644
--- a/src/xrdb.c
+++ b/src/xrdb.c
@@ -1,9 +1,9 @@
1/* Deal with the X Resource Manager. 1/* Deal with the X Resource Manager.
2 Copyright (C) 1990 Free Software Foundation. 2 Copyright (C) 1990, 1992 Free Software Foundation.
3 3
4This program is free software; you can redistribute it and/or modify 4This program is free software; you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by 5it under the terms of the GNU General Public License as published by
6the Free Software Foundation; either version 1, or (at your option) 6the Free Software Foundation; either version 2, or (at your option)
7any later version. 7any later version.
8 8
9This program is distributed in the hope that it will be useful, 9This program is distributed in the hope that it will be useful,
@@ -146,7 +146,10 @@ magic_searchpath_decoder (incantation_string, file, return_path)
146{ 146{
147 register char *s = incantation_string; 147 register char *s = incantation_string;
148 register char *p; 148 register char *p;
149 register char string[MAXPATHLEN]; 149
150 /* Must be big enough for "%N%S". */
151 register int string_size = MAXPATHLEN;
152 register char *string = (char *) alloca (string_size * sizeof (*string));
150 153
151 while (*s) 154 while (*s)
152 { 155 {
@@ -157,6 +160,7 @@ magic_searchpath_decoder (incantation_string, file, return_path)
157 160
158 if (*p == ':' && *(p + 1) == ':') 161 if (*p == ':' && *(p + 1) == ':')
159 { 162 {
163 /* We know string is big enough for this. */
160 bcopy ("%N%S", string, 5); 164 bcopy ("%N%S", string, 5);
161 if (decode_magic (string, file, return_path)) 165 if (decode_magic (string, file, return_path))
162 return 1; 166 return 1;
@@ -169,6 +173,11 @@ magic_searchpath_decoder (incantation_string, file, return_path)
169 { 173 {
170 int len = p - s; 174 int len = p - s;
171 175
176 if (string_size < len+1)
177 {
178 string_size = 2 * len;
179 string = (char *) alloca (string_size * sizeof (*string));
180 }
172 bcopy (s, string, len); 181 bcopy (s, string, len);
173 string[len + 1] = '\0'; 182 string[len + 1] = '\0';
174 if (decode_magic (string, file, return_path)) 183 if (decode_magic (string, file, return_path))