mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Isaac Dunham <idunham@lavabit.com>
To: musl@lists.openwall.com
Subject: Re: [0/3] _BSD_SOURCE patches: termios, ctype, stdio
Date: Thu, 19 Apr 2012 14:03:42 -0700	[thread overview]
Message-ID: <20120419140342.7ef06456@newbook> (raw)
In-Reply-To: <20120419135245.6f617c6c@newbook>

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

Here's the termios.h patch, though it's still missing CCEQ.
> For termios.h, there properly should be the CCEQ macro
> (#if (_BSD_SOURCE||_GNU_SOURCE) ).
> This is a one-line convenience macro, whether you look in the *BSD
> headers or glibc.
>  /* Compare a character C to a value VAL from the `c_cc'array in a 
> `struct termios'.  If VAL is _POSIX_VDISABLE, no character
> can match it.  */
> But _POSIX_VDISABLE is not defined here, so I have left it
> unimplemented.

Isaac Dunham

[-- Attachment #2: termios.dif --]
[-- Type: application/octet-stream, Size: 354 bytes --]

diff --git a/include/termios.h b/include/termios.h
index 7690883..1041759 100644
--- a/include/termios.h
+++ b/include/termios.h
@@ -32,7 +32,7 @@ int tcflow (int, int);
 
 pid_t tcgetsid (int);
 
-#ifdef _GNU_SOURCE
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
 void cfmakeraw(struct termios *);
 int cfsetspeed(struct termios *, speed_t);
 #endif

  parent reply	other threads:[~2012-04-19 21:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-19 20:52 Isaac Dunham
2012-04-19 21:01 ` [1/3] _BSD_SOURCE for stdio.h Isaac Dunham
2012-04-19 21:03 ` Isaac Dunham [this message]
2012-04-19 21:06 ` [3/3] _BSD_SOURCE for ctype.h Isaac Dunham

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=20120419140342.7ef06456@newbook \
    --to=idunham@lavabit.com \
    --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).