diff options
| -rw-r--r-- | ChangeLog | 26 | ||||
| -rw-r--r-- | iconvdata/TESTS | 10 | ||||
| -rw-r--r-- | iconvdata/testdata/CP1250 | 14 | ||||
| -rw-r--r-- | iconvdata/testdata/CP1250..UTF8 | 14 | ||||
| -rw-r--r-- | iconvdata/testdata/CP1251 | 14 | ||||
| -rw-r--r-- | iconvdata/testdata/CP1251..UTF8 | 14 | ||||
| -rw-r--r-- | iconvdata/testdata/CP1252 | 14 | ||||
| -rw-r--r-- | iconvdata/testdata/CP1252..UTF8 | 14 | ||||
| -rw-r--r-- | iconvdata/testdata/CP1253 | 14 | ||||
| -rw-r--r-- | iconvdata/testdata/CP1253..UTF8 | 14 | ||||
| -rw-r--r-- | iconvdata/testdata/CP1254 | 14 | ||||
| -rw-r--r-- | iconvdata/testdata/CP1254..UTF8 | 14 | ||||
| -rw-r--r-- | iconvdata/testdata/CP1255 | 13 | ||||
| -rw-r--r-- | iconvdata/testdata/CP1255..UTF8 | 13 | ||||
| -rw-r--r-- | iconvdata/testdata/CP1256 | 14 | ||||
| -rw-r--r-- | iconvdata/testdata/CP1256..UTF8 | 14 | ||||
| -rw-r--r-- | iconvdata/testdata/CP1257 | 14 | ||||
| -rw-r--r-- | streams/Makefile | 2 | ||||
| -rw-r--r-- | streams/sys/stropts.h | 1 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/Makefile | 4 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/ptsname.c | 2 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/syscalls.list | 14 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/ttyname.c | 152 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/ttyname_r.c | 182 |
24 files changed, 588 insertions, 13 deletions
@@ -1,3 +1,29 @@ +1998-04-24 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> + + * streams/Makefile (headers): Add sys/stropts.h. + * streams/sys/stropts.h: New file. + +1998-04-25 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> + + * sysdeps/unix/sysv/linux/ttyname.c, + sysdeps/unix/sysv/linux/ttyname_r.c: New files, like + sysdeps/posix/ttyname*.c, but look in /dev/pts first. + +1998-04-25 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> + + * sysdeps/unix/sysv/linux/ptsname.c: Fix off-by-one bug in second + argument of _itoa_word. + +1998-04-24 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> + + * sysdeps/unix/sysv/linux/syscalls.list (s_getcwd, s_getdents, + s_pread64, s_pwrite64, s_reboot, s_sigpending, s_sigprocmask): Set + caller to getcwd, getdents, pread64, pwrite64, reboot, sigpending, + sigprocmask, resp., instead of EXTRA. + + * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove + s_pread64 and s_pwrite64. + 1998-04-26 18:44 Ulrich Drepper <drepper@cygnus.com> * iconvdata/Makefile: Correct rules to generate gap table. diff --git a/iconvdata/TESTS b/iconvdata/TESTS index d18a808290..fa4aea69b5 100644 --- a/iconvdata/TESTS +++ b/iconvdata/TESTS @@ -63,3 +63,13 @@ PT PT Y UTF8 PT2 PT2 Y UTF8 SEN_850200_B SEN_850200_B Y UTF8 SEN_850200_C SEN_850200_C Y UTF8 +KOI-8 KOI-8 Y UTF8 +KOI8-R KOI8-R Y UTF8 +CP1250 CP1250 Y UTF8 +CP1251 CP1251 Y UTF8 +CP1252 CP1252 Y UTF8 +CP1253 CP1253 Y UTF8 +CP1254 CP1254 Y UTF8 +CP1255 CP1255 Y UTF8 +CP1256 CP1256 Y UTF8 +CP1257 CP1257 Y UTF8 diff --git a/iconvdata/testdata/CP1250 b/iconvdata/testdata/CP1250 new file mode 100644 index 0000000000..0dc708da43 --- /dev/null +++ b/iconvdata/testdata/CP1250 @@ -0,0 +1,14 @@ + ! " # $ % & ' ( ) * + , - . / + 0 1 2 3 4 5 6 7 8 9 : ; < = > ? + @ A B C D E F G H I J K L M N O + P Q R S T U V W X Y Z [ \ ] ^ _ + ` a b c d e f g h i j k l m n o + p q r s t u v w x y z { | } ~ + ‚ „ … † ‡ ‰ Š ‹ Œ � Ž � + ‘ ’ “ ” • – — ™ š › œ � ž Ÿ + ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ® ¯ + ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ + À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï + Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß + à á â ã ä å æ ç è é ê ë ì í î ï + ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ diff --git a/iconvdata/testdata/CP1250..UTF8 b/iconvdata/testdata/CP1250..UTF8 new file mode 100644 index 0000000000..0c80ff7dbf --- /dev/null +++ b/iconvdata/testdata/CP1250..UTF8 @@ -0,0 +1,14 @@ + ! " # $ % & ' ( ) * + , - . / + 0 1 2 3 4 5 6 7 8 9 : ; < = > ? + @ A B C D E F G H I J K L M N O + P Q R S T U V W X Y Z [ \ ] ^ _ + ` a b c d e f g h i j k l m n o + p q r s t u v w x y z { | } ~ + ‚ „ … †‡ ‰ Š‹ Åš Ť Ž Ź + ‘ ’ “ â€� • – — â„¢ Å¡ › Å› Å¥ ž ź +  ˇ ˘ Å� ¤ Ä„ ¦ § ¨ © Åž « ¬  ® Å» + ° ± Ë› Å‚ ´ µ ¶ · ¸ Ä… ÅŸ » Ľ Ë� ľ ż + Å” Ã�  Ă Ä Ĺ Ć Ç ÄŒ É Ę Ë Äš Ã� ÃŽ ÄŽ + Ä� Ń Ň Ó Ô Å� Ö × Ř Å® Ú Ű Ü Ã� Å¢ ß + Å• á â ă ä ĺ ć ç Ä� é Ä™ ë Ä› à î Ä� + Ä‘ Å„ ň ó ô Å‘ ö ÷ Å™ ů ú ű ü ý Å£ Ë™ diff --git a/iconvdata/testdata/CP1251 b/iconvdata/testdata/CP1251 new file mode 100644 index 0000000000..866d8f5a10 --- /dev/null +++ b/iconvdata/testdata/CP1251 @@ -0,0 +1,14 @@ + ! " # $ % & ' ( ) * + , - . / + 0 1 2 3 4 5 6 7 8 9 : ; < = > ? + @ A B C D E F G H I J K L M N O + P Q R S T U V W X Y Z [ \ ] ^ _ + ` a b c d e f g h i j k l m n o + p q r s t u v w x y z { | } ~ + € � ‚ ƒ „ … † ‡ ‰ Š ‹ Œ � Ž � + � ‘ ’ “ ” • – — ™ š › œ � ž Ÿ + ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ® ¯ + ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ + À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï + Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß + à á â ã ä å æ ç è é ê ë ì í î ï + ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ diff --git a/iconvdata/testdata/CP1251..UTF8 b/iconvdata/testdata/CP1251..UTF8 new file mode 100644 index 0000000000..ba62067bf9 --- /dev/null +++ b/iconvdata/testdata/CP1251..UTF8 @@ -0,0 +1,14 @@ + ! " # $ % & ' ( ) * + , - . / + 0 1 2 3 4 5 6 7 8 9 : ; < = > ? + @ A B C D E F G H I J K L M N O + P Q R S T U V W X Y Z [ \ ] ^ _ + ` a b c d e f g h i j k l m n o + p q r s t u v w x y z { | } ~ + Ђ Ѓ ‚ Ñ“ „ … †‡ ‰ Љ ‹ Њ ÐŒ Ћ Ð� + Ñ’ ‘ ’ “ â€� • – — â„¢ Ñ™ › Ñš Ñœ Ñ› ÑŸ +  Ў Ñž Ј ¤ Ò� ¦ § Ð� © Є « ¬  ® Ї + ° ± І Ñ– Ò‘ µ ¶ · Ñ‘ â„– Ñ” » ј Ð… Ñ• Ñ— + Ð� Б Ð’ Г Д Е Ж З И Й К Л М Ð� О П + РС Т У Ф Ð¥ Ц Ч Ш Щ Ъ Ы Ь РЮ Я + а б в г д е ж з и й к л м н о п + Ñ€ Ñ� Ñ‚ у Ñ„ Ñ… ц ч ш щ ÑŠ Ñ‹ ÑŒ Ñ� ÑŽ Ñ� diff --git a/iconvdata/testdata/CP1252 b/iconvdata/testdata/CP1252 new file mode 100644 index 0000000000..4720665a85 --- /dev/null +++ b/iconvdata/testdata/CP1252 @@ -0,0 +1,14 @@ + ! " # $ % & ' ( ) * + , - . / + 0 1 2 3 4 5 6 7 8 9 : ; < = > ? + @ A B C D E F G H I J K L M N O + P Q R S T U V W X Y Z [ \ ] ^ _ + ` a b c d e f g h i j k l m n o + p q r s t u v w x y z { | } ~ + ‚ ƒ „ … † ‡ ˆ ‰ Š ‹ Œ + ‘ ’ “ ” • – — ˜ ™ š › œ Ÿ + ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ® ¯ + ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ + À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï + Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß + à á â ã ä å æ ç è é ê ë ì í î ï + ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ diff --git a/iconvdata/testdata/CP1252..UTF8 b/iconvdata/testdata/CP1252..UTF8 new file mode 100644 index 0000000000..420dd2391c --- /dev/null +++ b/iconvdata/testdata/CP1252..UTF8 @@ -0,0 +1,14 @@ + ! " # $ % & ' ( ) * + , - . / + 0 1 2 3 4 5 6 7 8 9 : ; < = > ? + @ A B C D E F G H I J K L M N O + P Q R S T U V W X Y Z [ \ ] ^ _ + ` a b c d e f g h i j k l m n o + p q r s t u v w x y z { | } ~ + ‚ Æ’ „ … †‡ ˆ ‰ Š‹ Å’ + ‘ ’ “ â€� • – — Ëœ â„¢ Å¡ › Å“ Ÿ +  ¡ ¢ £ ¤ Â¥ ¦ § ¨ © ª « ¬  ® ¯ + ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ + À Ã� Â Ã Ä Ã… Æ Ç È É Ê Ë ÃŒ Ã� ÃŽ Ã� + Ã� Ñ Ã’ Ó Ô Õ Ö × Ø Ù Ú Û Ü Ã� Þ ß + à á â ã ä Ã¥ æ ç è é ê ë ì à î ï + ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ diff --git a/iconvdata/testdata/CP1253 b/iconvdata/testdata/CP1253 new file mode 100644 index 0000000000..ede3a9a093 --- /dev/null +++ b/iconvdata/testdata/CP1253 @@ -0,0 +1,14 @@ + ! " # $ % & ' ( ) * + , - . / + 0 1 2 3 4 5 6 7 8 9 : ; < = > ? + @ A B C D E F G H I J K L M N O + P Q R S T U V W X Y Z [ \ ] ^ _ + ` a b c d e f g h i j k l m n o + p q r s t u v w x y z { | } ~ + ‚ ƒ „ … † ‡ ‰ ‹ + ‘ ’ “ ” • – — ™ › + ¡ ¢ £ ¤ ¥ ¦ § ¨ © « ¬ ® ¯ + ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ + À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï + Ð Ñ Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß + à á â ã ä å æ ç è é ê ë ì í î ï + ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ diff --git a/iconvdata/testdata/CP1253..UTF8 b/iconvdata/testdata/CP1253..UTF8 new file mode 100644 index 0000000000..36d9b2f561 --- /dev/null +++ b/iconvdata/testdata/CP1253..UTF8 @@ -0,0 +1,14 @@ + ! " # $ % & ' ( ) * + , - . / + 0 1 2 3 4 5 6 7 8 9 : ; < = > ? + @ A B C D E F G H I J K L M N O + P Q R S T U V W X Y Z [ \ ] ^ _ + ` a b c d e f g h i j k l m n o + p q r s t u v w x y z { | } ~ + ‚ Æ’ „ … †‡ ‰ ‹ + ‘ ’ “ â€� • – — â„¢ › +  ΅ Ά £ ¤ Â¥ ¦ § ¨ © « ¬  ® ― + ° ± ² ³ ΄ µ ¶ · Έ Ή Ί » ÎŒ ½ ÎŽ Î� + Î� Α Î’ Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Î� Ξ Ο + ΠΡ Σ Τ Î¥ Φ Χ Ψ Ω Ϊ Ϋ ά Πή ί + ΰ α β γ δ ε ζ η θ ι κ λ μ ν ξ ο + Ï€ Ï� Ï‚ σ Ï„ Ï… φ χ ψ ω ÏŠ Ï‹ ÏŒ Ï� ÏŽ diff --git a/iconvdata/testdata/CP1254 b/iconvdata/testdata/CP1254 new file mode 100644 index 0000000000..4720665a85 --- /dev/null +++ b/iconvdata/testdata/CP1254 @@ -0,0 +1,14 @@ + ! " # $ % & ' ( ) * + , - . / + 0 1 2 3 4 5 6 7 8 9 : ; < = > ? + @ A B C D E F G H I J K L M N O + P Q R S T U V W X Y Z [ \ ] ^ _ + ` a b c d e f g h i j k l m n o + p q r s t u v w x y z { | } ~ + ‚ ƒ „ … † ‡ ˆ ‰ Š ‹ Œ + ‘ ’ “ ” • – — ˜ ™ š › œ Ÿ + ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ® ¯ + ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ + À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï + Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß + à á â ã ä å æ ç è é ê ë ì í î ï + ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ diff --git a/iconvdata/testdata/CP1254..UTF8 b/iconvdata/testdata/CP1254..UTF8 new file mode 100644 index 0000000000..6733f178e3 --- /dev/null +++ b/iconvdata/testdata/CP1254..UTF8 @@ -0,0 +1,14 @@ + ! " # $ % & ' ( ) * + , - . / + 0 1 2 3 4 5 6 7 8 9 : ; < = > ? + @ A B C D E F G H I J K L M N O + P Q R S T U V W X Y Z [ \ ] ^ _ + ` a b c d e f g h i j k l m n o + p q r s t u v w x y z { | } ~ + ‚ Æ’ „ … †‡ ˆ ‰ Š‹ Å’ + ‘ ’ “ â€� • – — Ëœ â„¢ Å¡ › Å“ Ÿ +  ¡ ¢ £ ¤ Â¥ ¦ § ¨ © ª « ¬  ® ¯ + ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ + À Ã� Â Ã Ä Ã… Æ Ç È É Ê Ë ÃŒ Ã� ÃŽ Ã� + Äž Ñ Ã’ Ó Ô Õ Ö × Ø Ù Ú Û Ü İ Åž ß + à á â ã ä Ã¥ æ ç è é Ä™ ë Ä— à î Ä« + ÄŸ ñ ò ó ô õ ö ÷ ø ù ú û ü ı ÅŸ ÿ diff --git a/iconvdata/testdata/CP1255 b/iconvdata/testdata/CP1255 new file mode 100644 index 0000000000..37af6ad3d1 --- /dev/null +++ b/iconvdata/testdata/CP1255 @@ -0,0 +1,13 @@ + ! " # $ % & ' ( ) * + , - . / + 0 1 2 3 4 5 6 7 8 9 : ; < = > ? + @ A B C D E F G H I J K L M N O + P Q R S T U V W X Y Z [ \ ] ^ _ + ` a b c d e f g h i j k l m n o + p q r s t u v w x y z { | } ~ + ‚ ƒ „ … † ‡ ‰ ‹ + ‘ ’ “ ” • – — ™ › + ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ® ¯ + ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ + ß + à á â ã ä å æ ç è é ê ë ì í î ï + ð ñ ò ó ô õ ö ÷ ø ù ú ý þ diff --git a/iconvdata/testdata/CP1255..UTF8 b/iconvdata/testdata/CP1255..UTF8 new file mode 100644 index 0000000000..1ab9b027ae --- /dev/null +++ b/iconvdata/testdata/CP1255..UTF8 @@ -0,0 +1,13 @@ + ! " # $ % & ' ( ) * + , - . / + 0 1 2 3 4 5 6 7 8 9 : ; < = > ? + @ A B C D E F G H I J K L M N O + P Q R S T U V W X Y Z [ \ ] ^ _ + ` a b c d e f g h i j k l m n o + p q r s t u v w x y z { | } ~ + ‚ Æ’ „ … †‡ ‰ ‹ + ‘ ’ “ â€� • – — â„¢ › +  ¢ £ ¤ Â¥ ¦ § ¨ © × « ¬  ® ‾ + ° ± ² ³ ´ µ ¶ · ¸ ¹ ÷ » ¼ ½ ¾ + ‗ + ×� ב ×’ ד ×” ו ×– ×— ט ×™ ך ×› ל ×� מ ן + × ×¡ ×¢ ×£ פ ×¥ צ ×§ ר ש ת ‎ â€� diff --git a/iconvdata/testdata/CP1256 b/iconvdata/testdata/CP1256 new file mode 100644 index 0000000000..08d5d8e971 --- /dev/null +++ b/iconvdata/testdata/CP1256 @@ -0,0 +1,14 @@ + ! " # $ % & ' ( ) * + , - . / + 0 1 2 3 4 5 6 7 8 9 : ; < = > ? + @ A B C D E F G H I J K L M N O + P Q R S T U V W X Y Z [ \ ] ^ _ + ` a b c d e f g h i j k l m n o + p q r s t u v w x y z { | } ~ + € � ‚ ƒ „ … † ‡ ˆ ‰ Š ‹ Œ � Ž � + � ‘ ’ “ ” • – — ˜ ™ š › œ � ž Ÿ + ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ® ¯ + ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ + À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï + Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß + à á â ã ä å æ ç è é ê ë ì í î ï + ð ñ ò ó ô õ ö ÷ ù û ü ý þ ÿ diff --git a/iconvdata/testdata/CP1256..UTF8 b/iconvdata/testdata/CP1256..UTF8 new file mode 100644 index 0000000000..2dbaf96e19 --- /dev/null +++ b/iconvdata/testdata/CP1256..UTF8 @@ -0,0 +1,14 @@ + ! " # $ % & ' ( ) * + , - . / + 0 1 2 3 4 5 6 7 8 9 : ; < = > ? + @ A B C D E F G H I J K L M N O + P Q R S T U V W X Y Z [ \ ] ^ _ + ` a b c d e f g h i j k l m n o + p q r s t u v w x y z { | } ~ + ØŒ ٠‚ Ù¡ „ … †‡ Ù¢ Ù£ Ù¤ ‹ Ù¥ Ù¦ Ù§ Ù¨ + Ù© ‘ ’ “ â€� • – — Ø› â„¢ ØŸ › Ø¡ Ø¢ Ø£ Ÿ +  ؤ Ø¥ £ ¤ ئ ¦ § ا © ب « ¬  ® Ù¾ + ° ± Ø© ت Ø« µ ¶ · ج Ú† Ø Â» Ø® د ذ ر + À ز  ژ س Ø´ ص Ç È É Ê Ë ض Ø· ÃŽ Ã� + ã„“ ع غ Ù€ Ô Ù� Ù‚ × Ùƒ Ù Ú¯ Û Ü Ù„ Ù… Ù† + à ه â Ú� Ùˆ Ù‰ ÙŠ ç è é ê ë Ù‹ ÙŒ î ï + Ù� ÙŽ Ù� Ù� ô Ù‘ Ù’ ÷ ù û ü ‎ â€� ÿ diff --git a/iconvdata/testdata/CP1257 b/iconvdata/testdata/CP1257 new file mode 100644 index 0000000000..e4a3e6b384 --- /dev/null +++ b/iconvdata/testdata/CP1257 @@ -0,0 +1,14 @@ + ! " # $ % & ' ( ) * + , - . / + 0 1 2 3 4 5 6 7 8 9 : ; < = > ? + @ A B C D E F G H I J K L M N O + P Q R S T U V W X Y Z [ \ ] ^ _ + ` a b c d e f g h i j k l m n o + p q r s t u v w x y z { | } ~ + ‚ „ … † ‡ ‰ ‹ + ‘ ’ “ ” • – — ™ › + ¢ £ ¤ ¦ § ¨ © ª « ¬ ® ¯ + ° ± ² ³ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ + À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï + Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß + à á â ã ä å æ ç è é ê ë ì í î ï + ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ diff --git a/streams/Makefile b/streams/Makefile index c4c1190933..0b8143aaa1 100644 --- a/streams/Makefile +++ b/streams/Makefile @@ -21,7 +21,7 @@ # subdir := streams -headers = stropts.h bits/stropts.h +headers = stropts.h sys/stropts.h bits/stropts.h routines = isastream getmsg getpmsg putmsg putpmsg fattach fdetach include ../Rules diff --git a/streams/sys/stropts.h b/streams/sys/stropts.h new file mode 100644 index 0000000000..5b5bc02f40 --- /dev/null +++ b/streams/sys/stropts.h @@ -0,0 +1 @@ +#include <stropts.h> diff --git a/sysdeps/unix/sysv/linux/Makefile b/sysdeps/unix/sysv/linux/Makefile index 9a509384d6..6f13dfe62b 100644 --- a/sysdeps/unix/sysv/linux/Makefile +++ b/sysdeps/unix/sysv/linux/Makefile @@ -82,10 +82,6 @@ sysdep_headers += netinet/in_systm.h netinet/udp.h \ netrom/netrom.h netpacket/packet.h netrose/rose.h endif -ifeq ($(subdir),posix) -sysdep_routines += s_pread64 s_pwrite64 -endif - # Don't compile the ctype glue code, since there is no old non-GNU C library. inhibit-glue = yes diff --git a/sysdeps/unix/sysv/linux/ptsname.c b/sysdeps/unix/sysv/linux/ptsname.c index c81f23504c..2db8f8d08a 100644 --- a/sysdeps/unix/sysv/linux/ptsname.c +++ b/sysdeps/unix/sysv/linux/ptsname.c @@ -101,7 +101,7 @@ __ptsname_r (fd, buf, buflen) idbuf[5] = '\0'; __stpcpy (__stpcpy (nbuf, "/dev/pts/"), - _itoa_word (ptyno, &idbuf[4], 10, 0)); + _itoa_word (ptyno, &idbuf[5], 10, 0)); if (__xstat (_STAT_VER, nbuf, &st) < 0) { if (errno != ENOENT) diff --git a/sysdeps/unix/sysv/linux/syscalls.list b/sysdeps/unix/sysv/linux/syscalls.list index 3fcb9a6aef..507fbc35fc 100644 --- a/sysdeps/unix/sysv/linux/syscalls.list +++ b/sysdeps/unix/sysv/linux/syscalls.list @@ -40,19 +40,19 @@ rt_sigprocmask - rt_sigprocmask 4 __syscall_rt_sigprocmask rt_sigqueueinfo - rt_sigqueueinfo 3 __syscall_rt_sigqueueinfo rt_sigsuspend - rt_sigsuspend 2 __syscall_rt_sigsuspend rt_sigtimedwait - rt_sigtimedwait 4 __syscall_rt_sigtimedwait -s_getcwd EXTRA getcwd 2 __syscall_getcwd -s_getdents EXTRA getdents 3 __getdents +s_getcwd getcwd getcwd 2 __syscall_getcwd +s_getdents getdents getdents 3 __getdents s_getpriority getpriority getpriority 2 __syscall_getpriority s_getresgid getresgid getresgid 3 __syscall_getresgid s_getresuid getresuid getresuid 3 __syscall_getresuid s_poll poll poll 3 __syscall_poll -s_pread64 EXTRA pread 5 __syscall_pread64 +s_pread64 pread64 pread 5 __syscall_pread64 s_ptrace ptrace ptrace 4 __syscall_ptrace -s_pwrite64 EXTRA pwrite 5 __syscall_pwrite64 -s_reboot EXTRA reboot 3 __syscall_reboot +s_pwrite64 pwrite64 pwrite 5 __syscall_pwrite64 +s_reboot reboot reboot 3 __syscall_reboot s_sigaction sigaction sigaction 3 __syscall_sigaction -s_sigpending EXTRA sigpending 1 __syscall_sigpending -s_sigprocmask EXTRA sigprocmask 3 __syscall_sigprocmask +s_sigpending sigpending sigpending 1 __syscall_sigpending +s_sigprocmask sigprocmask sigprocmask 3 __syscall_sigprocmask s_sigsuspend sigsuspend sigsuspend 3 __syscall_sigsuspend s_sysctl sysctl _sysctl 1 __syscall__sysctl s_ustat ustat ustat 2 __syscall_ustat diff --git a/sysdeps/unix/sysv/linux/ttyname.c b/sysdeps/unix/sysv/linux/ttyname.c new file mode 100644 index 0000000000..7f276b6130 --- /dev/null +++ b/sysdeps/unix/sysv/linux/ttyname.c @@ -0,0 +1,152 @@ +/* Copyright (C) 1991, 92, 93, 96, 97, 98 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +#include <errno.h> +#include <limits.h> +#include <stddef.h> +#include <dirent.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <unistd.h> +#include <string.h> +#include <stdlib.h> + +char *__ttyname = NULL; + +static char * getttyname __P ((const char *dev, int fd, dev_t mydev, + ino_t myino, int save, int *dostat)) + internal_function; + +static char * +internal_function +getttyname (dev, fd, mydev, myino, save, dostat) + const char *dev; + int fd; + dev_t mydev; + ino_t myino; + int save; + int *dostat; +{ + static char *name; + static size_t namelen = 0; + struct stat st; + DIR *dirstream; |
