Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include add more options.



details:   https://anonhg.NetBSD.org/src/rev/1b19f42e16d5
branches:  trunk
changeset: 778800:1b19f42e16d5
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Apr 13 23:29:14 2012 +0000

description:
add more options.

diffstat:

 include/unistd.h |  20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

diffs (34 lines):

diff -r c305fc592c1f -r 1b19f42e16d5 include/unistd.h
--- a/include/unistd.h  Fri Apr 13 16:36:37 2012 +0000
+++ b/include/unistd.h  Fri Apr 13 23:29:14 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: unistd.h,v 1.132 2012/04/13 14:39:49 christos Exp $    */
+/*     $NetBSD: unistd.h,v 1.133 2012/04/13 23:29:14 christos Exp $    */
 
 /*-
  * Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc.
@@ -328,13 +328,17 @@
 int     getgroupmembership(const char *, gid_t, gid_t *, int, int *);
 mode_t  getmode(const void *, mode_t);
 char   *getpassfd(const char *, char *, size_t, int[], int, int);
-#define        GETPASS_NEED_TTY        0x01    /* Fail if we cannot set tty */
-#define        GETPASS_FAIL_EOF        0x02    /* Fail on EOF */
-#define        GETPASS_BUF_LIMIT       0x04    /* beep on buffer limit */
-#define        GETPASS_NO_SIGNAL       0x08    /* don't make ttychars send signals */
-#define        GETPASS_NO_BEEP         0x10    /* don't beep */
-#define        GETPASS_ECHO            0x20    /* echo characters as they are typed */
-#define        GETPASS_ECHO_STAR       0x40    /* ech '*' for each character */
+#define        GETPASS_NEED_TTY        0x001   /* Fail if we cannot set tty */
+#define        GETPASS_FAIL_EOF        0x002   /* Fail on EOF */
+#define        GETPASS_BUF_LIMIT       0x004   /* beep on buffer limit */
+#define        GETPASS_NO_SIGNAL       0x008   /* don't make ttychars send signals */
+#define        GETPASS_NO_BEEP         0x010   /* don't beep */
+#define        GETPASS_ECHO            0x020   /* echo characters as they are typed */
+#define        GETPASS_ECHO_STAR       0x040   /* echo '*' for each character */
+#define        GETPASS_7BIT            0x080   /* mask the high bit each char */
+#define        GETPASS_FORCE_LOWER     0x100   /* lowercase each char */
+#define        GETPASS_FORCE_UPPER     0x200   /* uppercase each char */
+
 char   *getpass_r(const char *, char *, size_t);
 int     getpeereid(int, uid_t *, gid_t *);
 int     getsubopt(char **, char * const *, char **);



Home | Main Index | Thread Index | Old Index