Remove no-longer-used pty_max_bytes variable.
* configure.ac (fpathconf): Remove unnecessary check. * admin/CPP-DEFINES (HAVE_FPATHCONF): Remove. * src/process.c (pty_max_bytes): Remove; unused. (send_process): Do not set it.
This commit is contained in:
parent
9533048d4a
commit
3d082a269e
6 changed files with 17 additions and 18 deletions
|
@ -1,3 +1,8 @@
|
|||
2012-11-16 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
Remove no-longer-used pty_max_bytes variable.
|
||||
* configure.ac (fpathconf): Remove unnecessary check.
|
||||
|
||||
2012-11-14 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
Use faccessat, not access, when checking file permissions (Bug#12632).
|
||||
|
|
|
@ -152,7 +152,6 @@ HAVE_ENVIRON_DECL
|
|||
HAVE_EUIDACCESS
|
||||
HAVE_FCNTL_H
|
||||
HAVE_FORK
|
||||
HAVE_FPATHCONF
|
||||
HAVE_FREEIFADDRS
|
||||
HAVE_FREETYPE
|
||||
HAVE_FSEEKO
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2012-11-16 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
Remove no-longer-used pty_max_bytes variable.
|
||||
* CPP-DEFINES (HAVE_FPATHCONF): Remove.
|
||||
|
||||
2012-11-14 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
Use faccessat, not access, when checking file permissions (Bug#12632).
|
||||
|
|
|
@ -2874,7 +2874,7 @@ AC_SUBST(BLESSMAIL_TARGET)
|
|||
AC_CHECK_FUNCS(gethostname \
|
||||
closedir getrusage get_current_dir_name \
|
||||
lrand48 \
|
||||
fpathconf select getpagesize setlocale \
|
||||
select getpagesize setlocale \
|
||||
utimes getrlimit setrlimit getcwd shutdown getaddrinfo \
|
||||
strsignal setitimer \
|
||||
sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
2012-11-16 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
Remove no-longer-used pty_max_bytes variable.
|
||||
* process.c (pty_max_bytes): Remove; unused.
|
||||
(send_process): Do not set it.
|
||||
|
||||
2012-11-15 Juanma Barranquero <lekktu@gmail.com>
|
||||
|
||||
* makefile.w32-in ($(BLD)/dispnew.$(O), $(BLD)/emacs.$(O)):
|
||||
|
|
|
@ -340,9 +340,6 @@ static struct sockaddr_and_len {
|
|||
#define DATAGRAM_CONN_P(proc) (0)
|
||||
#endif
|
||||
|
||||
/* Maximum number of bytes to send to a pty without an eof. */
|
||||
static int pty_max_bytes;
|
||||
|
||||
/* These setters are used only in this file, so they can be private. */
|
||||
static void
|
||||
pset_buffer (struct Lisp_Process *p, Lisp_Object val)
|
||||
|
@ -5532,19 +5529,6 @@ send_process (Lisp_Object proc, const char *buf, ptrdiff_t len,
|
|||
buf = SSDATA (object);
|
||||
}
|
||||
|
||||
if (pty_max_bytes == 0)
|
||||
{
|
||||
#if defined (HAVE_FPATHCONF) && defined (_PC_MAX_CANON)
|
||||
pty_max_bytes = fpathconf (p->outfd, _PC_MAX_CANON);
|
||||
if (pty_max_bytes < 0)
|
||||
pty_max_bytes = 250;
|
||||
#else
|
||||
pty_max_bytes = 250;
|
||||
#endif
|
||||
/* Deduct one, to leave space for the eof. */
|
||||
pty_max_bytes--;
|
||||
}
|
||||
|
||||
/* If there is already data in the write_queue, put the new data
|
||||
in the back of queue. Otherwise, ignore it. */
|
||||
if (!NILP (p->write_queue))
|
||||
|
|
Loading…
Add table
Reference in a new issue