mailing list of musl libc
 help / color / mirror / code / Atom feed
From: ojab <ojab@intelcom.su>
To: musl@lists.openwall.com
Subject: libedit build, missing sys/ttydefaults.h & sys/errno.h
Date: Thu, 13 Dec 2012 14:29:28 +0400	[thread overview]
Message-ID: <50C9AE08.5040204@intelcom.su> (raw)

[-- Attachment #1: Type: text/plain, Size: 759 bytes --]

Hi list,

libedit-3.0 build fails with

> editline/readline.h:79:29: fatal error: sys/ttydefaults.h: No such file or directory
> fileman.c:14:23: fatal error: sys/errno.h: No such file or directory

After adding sys/ttydefaults.h from NetBSD [1] (cleaned up version in 
the attached file) and replacing <sys/errno.h> with <errno.h> it 
builds/works fine.
As far as I can see the same issues was reported about sysvinit [2].

Can sys/ttydefaults.h be added to musl? Will <sys/errno.h> alias be 
added to musl? Or I should report issue to libedit developer instead?

[1] 
http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/sys/ttydefaults.h?rev=1.16&content-type=text/plain&only_with_tag=MAIN
[2] http://www.openwall.com/lists/musl/2012/04/24/9

//wbr ojab

[-- Attachment #2: ttydefaults.h --]
[-- Type: text/plain, Size: 1396 bytes --]

#ifndef _SYS_TTYDEFAULTS_H_
#define	_SYS_TTYDEFAULTS_H_
#define	TTYDEF_IFLAG	(BRKINT | ICRNL | IMAXBEL | IXON | IXANY)
#define TTYDEF_OFLAG	(OPOST | ONLCR | OXTABS)
#define TTYDEF_LFLAG	(ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL)
#define TTYDEF_CFLAG	(CREAD | CS8 | HUPCL)
#define TTYDEF_SPEED	(B9600)
#define CTRL(x)	(x&037)
#define	CEOF		CTRL('d')
#define	CEOL		((unsigned char)'\377')
#define	CERASE		0177
#define	CINTR		CTRL('c')
#define	CSTATUS		CTRL('t')
#define	CKILL		CTRL('u')
#define	CMIN		1
#define	CQUIT		034
#define	CSUSP		CTRL('z')
#define	CTIME		0
#define	CDSUSP		CTRL('y')
#define	CSTART		CTRL('q')
#define	CSTOP		CTRL('s')
#define	CLNEXT		CTRL('v')
#define	CDISCARD 	CTRL('o')
#define	CWERASE 	CTRL('w')
#define	CREPRINT 	CTRL('r')
#define	CEOT		CEOF
#define	CBRK		CEOL
#define CRPRNT		CREPRINT
#define	CFLUSH		CDISCARD
#endif

#ifdef _KERNEL
#ifdef TTYDEFCHARS
const cc_t ttydefchars[NCCS] = {
	[VEOF] = CEOF,
	[VEOL] = CEOL,
	[VEOL2] = CEOL,
	[VERASE] = CERASE,
	[VWERASE] = CWERASE,
	[VKILL] = CKILL,
	[VREPRINT] = CREPRINT,
	[7] = _POSIX_VDISABLE,
	[VINTR] = CINTR,
	[VQUIT] = CQUIT,
	[VSUSP] = CSUSP,
	[VDSUSP] = CDSUSP,
	[VSTART] = CSTART,
	[VSTOP] = CSTOP,
	[VLNEXT] = CLNEXT,
	[VDISCARD] = CDISCARD,
	[VMIN] = CMIN,
	[VTIME] = CTIME,
	[VSTATUS] = CSTATUS,
	[19] = _POSIX_VDISABLE,
};
#undef TTYDEFCHARS
#else
extern const cc_t ttydefchars[NCCS];
#endif
#endif

             reply	other threads:[~2012-12-13 10:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-13 10:29 ojab [this message]
2012-12-13 17:25 ` John Spencer
2012-12-13 18:58 ` Rich Felker
2012-12-13 20:15   ` ojab
2012-12-13 20:40 ` John Spencer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50C9AE08.5040204@intelcom.su \
    --to=ojab@intelcom.su \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).