Commit 856c7d08 authored by Gary V. Vaughan's avatar Gary V. Vaughan

Checkpoint v31.

Signed-off-by: 's avatarGary V. Vaughan <gary@gnu.org>
parent 91553cb0
2013-09-09 Gary V. Vaughan <gary@gnu.org>
Release version 31
* NEWS: Record release date.
maint: remove trailing spaces added by previous merge.
* ext/posix/posix.c (Ptcsetattr, Ptcgetattr): Remove trailing
whitespace.
2013-09-07 Gary V. Vaughan <gary@vaughan.pe>
Merge pull request #116 from zevv/termios-cc-flags
Added missing termios cc flags
2013-09-04 Ico Doornekamp <ico@pruts.nl>
all termios c_cc flags available are now used in tcgetattr() and tcsetattr(), even though no symbols may be available for each flag. this makes sure a tcsetattr() after a tcgetattr() preserves all flags, even the non POSIX cmplient ones
2013-09-03 Ico Doornekamp <ico@pruts.nl>
Added missing termios cc flags
2013-08-29 Gary V. Vaughan <gary@gnu.org>
maint: post-release administrivia.
* NEWS: Add header line for next release.
* .prev-version: Record previous version.
* ./local.mk (old_NEWS_hash): Auto-update.
Release version 30
* NEWS: Record release date.
......
......@@ -518,7 +518,7 @@ std_cpath = $(curses_cpath);$(posix_cpath);$(LUA_CPATH)
std_path = $(abs_srcdir)/lib/?.lua;$(LUA_PATH)
LUA_ENV = LUA_PATH="$(std_path)" LUA_CPATH="$(std_cpath)"
AM_CFLAGS = $(WERROR_CFLAGS) $(WARN_CFLAGS)
old_NEWS_hash = 73b45ab8155db972364f61d1f2dc27f2
old_NEWS_hash = 48864294e8740dbc040c3edfd6b2d1c4
dist_data_DATA = lib/posix.lua $(WANTEDLUA)
dist_doc_DATA = doc/curses.html doc/curses_c.html doc/index.html \
doc/ldoc.css $(NOTHING_ELSE)
......
Stdlib NEWS - User visible changes
* Noteworthy changes in release 31 (2013-09-09) [alpha]
* Noteworthy changes in release 30 (2013-08-29) [stable]
** New features:
......
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for luaposix 30.
# Generated by GNU Autoconf 2.69 for luaposix 31.
#
# Report bugs to <http://github.com/luaposix/luaposix/issues>.
#
......@@ -590,8 +590,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='luaposix'
PACKAGE_TARNAME='luaposix'
PACKAGE_VERSION='30'
PACKAGE_STRING='luaposix 30'
PACKAGE_VERSION='31'
PACKAGE_STRING='luaposix 31'
PACKAGE_BUGREPORT='http://github.com/luaposix/luaposix/issues'
PACKAGE_URL=''
......@@ -1353,7 +1353,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures luaposix 30 to adapt to many kinds of systems.
\`configure' configures luaposix 31 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
......@@ -1423,7 +1423,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of luaposix 30:";;
short | recursive ) echo "Configuration of luaposix 31:";;
esac
cat <<\_ACEOF
......@@ -1534,7 +1534,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
luaposix configure 30
luaposix configure 31
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
......@@ -1903,7 +1903,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by luaposix $as_me 30, which was
It was created by luaposix $as_me 31, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
......@@ -2283,7 +2283,7 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
$as_echo "## ----------------------- ##
## Configuring luaposix 30 ##
## Configuring luaposix 31 ##
## ----------------------- ##"
echo
......@@ -2773,7 +2773,7 @@ fi
# Define the identity of the package.
PACKAGE='luaposix'
VERSION='30'
VERSION='31'
cat >>confdefs.h <<_ACEOF
......@@ -12645,7 +12645,7 @@ fi
gl_source_base='lib'
gl_source_base='unused'
# End of code from modules
......@@ -14977,7 +14977,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by luaposix $as_me 30, which was
This file was extended by luaposix $as_me 31, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
......@@ -15043,7 +15043,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
luaposix config.status 30
luaposix config.status 31
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
......
dnl Process this file with autoconf to produce a configure script
AC_INIT([luaposix], [30], [http://github.com/luaposix/luaposix/issues])
AC_INIT([luaposix], [31], [http://github.com/luaposix/luaposix/issues])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
......
......@@ -3263,6 +3263,7 @@ static int Psignal (lua_State *L)
static int Ptcsetattr(lua_State *L)
{
struct termios t;
int i;
int fd = luaL_checknumber(L, 1);
int act = luaL_checknumber(L, 2);
luaL_checktype(L, 3, LUA_TTABLE);
......@@ -3273,18 +3274,19 @@ static int Ptcsetattr(lua_State *L)
lua_getfield(L, 3, "lflag"); t.c_lflag = luaL_optint(L, -1, 0); lua_pop(L, 1);
lua_getfield(L, 3, "cc");
#define CC(f) \
lua_pushnumber(L, f); lua_gettable(L, -2); t.c_cc[f] = luaL_optint(L, -1, 0); lua_pop(L, 1);
CC(VINTR); CC(VQUIT); CC(VERASE);
CC(VKILL); CC(VEOF); CC(VEOL);
CC(VEOL2); CC(VMIN); CC(VTIME);
#undef CC
for(i=0; i<NCCS; i++) {
lua_pushnumber(L, i);
lua_gettable(L, -2);
t.c_cc[i] = luaL_optint(L, -1, 0);
lua_pop(L, 1);
}
return pushresult(L, tcsetattr(fd, act, &t), NULL);
}
static int Ptcgetattr(lua_State *L)
{
int i;
struct termios t;
int fd = luaL_checknumber(L, 1);
......@@ -3298,12 +3300,11 @@ static int Ptcgetattr(lua_State *L)
lua_pushnumber(L, t.c_cflag); lua_setfield(L, -2, "cflag");
lua_newtable(L);
#define CC(f) \
lua_pushnumber(L, f); lua_pushnumber(L, t.c_cc[f]); lua_settable(L, -3);
CC(VINTR); CC(VQUIT); CC(VERASE);
CC(VKILL); CC(VEOF); CC(VEOL);
CC(VEOL2); CC(VMIN); CC(VTIME);
#undef CC
for(i=0; i<NCCS; i++) {
lua_pushnumber(L, i);
lua_pushnumber(L, t.c_cc[i]);
lua_settable(L, -3);
}
lua_setfield(L, -2, "cc");
return 1;
......@@ -4591,6 +4592,15 @@ LUALIB_API int luaopen_posix_c (lua_State *L)
#ifdef VTIME
MENTRY( VTIME );
#endif
#ifdef VSTART
MENTRY( VSTART );
#endif
#ifdef VTOP
MENTRY( VTOP );
#endif
#ifdef VSUSP
MENTRY( VSUSP );
#endif
/* XSI extensions - don't use these if you care about portability
* to strict POSIX conforming machines, such as Mac OS X.
......
......@@ -19,7 +19,7 @@ LUA_ENV = LUA_PATH="$(std_path)" LUA_CPATH="$(std_cpath)"
AM_CPPFLAGS += -I $(srcdir)/ext/include
AM_CFLAGS = $(WERROR_CFLAGS) $(WARN_CFLAGS)
old_NEWS_hash = 73b45ab8155db972364f61d1f2dc27f2
old_NEWS_hash = 48864294e8740dbc040c3edfd6b2d1c4
## ------------- ##
......
package = "luaposix"
version = "30-1"
version = "31-1"
description = {
homepage = "http://github.com/luaposix/luaposix/",
license = "MIT/X11",
......@@ -7,8 +7,8 @@ description = {
detailed = "A library binding various POSIX APIs, including curses. POSIX is the IEEE Portable Operating System Interface standard. luaposix is based on lposix and lcurses.",
}
source = {
url = "http://github.com/luaposix/luaposix/archive/release-v30.zip",
dir = "luaposix-release-v30",
url = "http://github.com/luaposix/luaposix/archive/release-v31.zip",
dir = "luaposix-release-v31",
}
dependencies = {
"lua >= 5.1",
......
......@@ -55,7 +55,7 @@ AC_DEFUN([gl_INIT],
m4_pushdef([gl_LIBSOURCES_LIST], [])
m4_pushdef([gl_LIBSOURCES_DIR], [])
gl_COMMON
gl_source_base='lib'
gl_source_base='unused'
# End of code from modules
m4_ifval(gl_LIBSOURCES_LIST, [
m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
......@@ -156,7 +156,7 @@ AC_DEFUN([gl_REPLACE_FUNCS], [
AC_DEFUN([gl_LIBSOURCES], [
m4_foreach([_gl_NAME], [$1], [
m4_if(_gl_NAME, [alloca.c], [], [
m4_define([gl_LIBSOURCES_DIR], [lib])
m4_define([gl_LIBSOURCES_DIR], [unused])
m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
])
])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment