From c0bea6b83a4e9e8bd8fb1e7dc700a5cf1ec4c0c5 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 24 Jul 2014 18:12:46 -0400 Subject: Clarify doc on div(). --- doc/gawk.info | 687 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 344 insertions(+), 343 deletions(-) (limited to 'doc/gawk.info') diff --git a/doc/gawk.info b/doc/gawk.info index e7854caf..e6c9a5d4 100644 --- a/doc/gawk.info +++ b/doc/gawk.info @@ -11682,14 +11682,15 @@ brackets ([ ]): `div(NUMERATOR, DENOMINATOR, RESULT)' Perform integer division, similar to the standard C function of the - same name. First, truncate `numerator' and `denominator' to - integers. Clear the `result' array, and then set - `result["quotient"]' to the result of `numerator / denominator', - truncated to an integer, and set `result["remainder"]' to the - result of `numerator % denominator', truncated to an integer. - This function is primarily intended for use with arbitrary length - integers; it avoids creating MPFR arbitrary precision - floating-point values (*note Arbitrary Precision Integers::). + same name. First, truncate `numerator' and `denominator' towards + zero, creating integer values. Clear the `result' array, and then + set `result["quotient"]' to the result of `numerator / + denominator', truncated towards zero to an integer, and set + `result["remainder"]' to the result of `numerator % denominator', + truncated towards zero to an integer. This function is primarily + intended for use with arbitrary length integers; it avoids + creating MPFR arbitrary precision floating-point values (*note + Arbitrary Precision Integers::). This function is a `gawk' extension. It is not available in compatibility mode (*note Options::). @@ -32163,10 +32164,10 @@ Index * exit status, of VMS: VMS Running. (line 29) * exit the debugger: Miscellaneous Debugger Commands. (line 99) -* exp: Numeric Functions. (line 32) +* exp: Numeric Functions. (line 33) * expand utility: Very Simple. (line 69) * Expat XML parser library: gawkextlib. (line 35) -* exponent: Numeric Functions. (line 32) +* exponent: Numeric Functions. (line 33) * expressions: Expressions. (line 6) * expressions, as patterns: Expression Patterns. (line 6) * expressions, assignment: Assignment Ops. (line 6) @@ -32702,7 +32703,7 @@ Index * installation, VMS: VMS Installation. (line 6) * installing gawk: Installation. (line 6) * instruction tracing, in debugger: Debugger Info. (line 89) -* int: Numeric Functions. (line 37) +* int: Numeric Functions. (line 38) * INT signal (MS-Windows): Profiling. (line 214) * integer array indices: Numeric Array Subscripts. (line 31) @@ -32851,9 +32852,9 @@ Index * localization: I18N and L10N. (line 6) * localization, See internationalization, localization: I18N and L10N. (line 6) -* log: Numeric Functions. (line 44) +* log: Numeric Functions. (line 45) * log files, timestamps in: Time Functions. (line 6) -* logarithm: Numeric Functions. (line 44) +* logarithm: Numeric Functions. (line 45) * logical false/true: Truth Values. (line 6) * logical operators, See Boolean expressions: Boolean Ops. (line 6) * login information: Passwd Functions. (line 16) @@ -33310,12 +33311,12 @@ Index * Rakitzis, Byron: History Sorting. (line 25) * Ramey, Chet <1>: General Data Types. (line 6) * Ramey, Chet: Acknowledgments. (line 60) -* rand: Numeric Functions. (line 48) +* rand: Numeric Functions. (line 49) * random numbers, Cliff: Cliff Random Function. (line 6) * random numbers, rand()/srand() functions: Numeric Functions. - (line 48) -* random numbers, seed of: Numeric Functions. (line 78) + (line 49) +* random numbers, seed of: Numeric Functions. (line 79) * range expressions (regexps): Bracket Expressions. (line 6) * range patterns: Ranges. (line 6) * range patterns, line continuation and: Ranges. (line 65) @@ -33443,7 +33444,7 @@ Index * Robbins, Miriam <2>: Getline/Pipe. (line 39) * Robbins, Miriam: Acknowledgments. (line 82) * Rommel, Kai Uwe: Contributors. (line 42) -* round to nearest integer: Numeric Functions. (line 37) +* round to nearest integer: Numeric Functions. (line 38) * round() user-defined function: Round Function. (line 16) * rounding numbers: Round Function. (line 6) * ROUNDMODE variable: User-modified. (line 128) @@ -33493,7 +33494,7 @@ Index * sed utility <2>: Simple Sed. (line 6) * sed utility: Field Splitting Summary. (line 46) -* seeding random number generator: Numeric Functions. (line 78) +* seeding random number generator: Numeric Functions. (line 79) * semicolon (;), AWKPATH variable and: PC Using. (line 10) * semicolon (;), separating statements in actions <1>: Statements. (line 10) @@ -33595,8 +33596,8 @@ Index * SIGUSR1 signal, for dynamic profiling: Profiling. (line 188) * silent debugger command: Debugger Execution Control. (line 10) -* sin: Numeric Functions. (line 89) -* sine: Numeric Functions. (line 89) +* sin: Numeric Functions. (line 90) +* sine: Numeric Functions. (line 90) * single quote ('): One-shot. (line 15) * single quote (') in gawk command lines: Long. (line 33) * single quote ('), in shell commands: Quoting. (line 48) @@ -33646,10 +33647,10 @@ Index * sprintf() function, OFMT variable and: User-modified. (line 114) * sprintf() function, print/printf statements and: Round Function. (line 6) -* sqrt: Numeric Functions. (line 92) +* sqrt: Numeric Functions. (line 93) * square brackets ([]), regexp operator: Regexp Operators. (line 56) -* square root: Numeric Functions. (line 92) -* srand: Numeric Functions. (line 96) +* square root: Numeric Functions. (line 93) +* srand: Numeric Functions. (line 97) * stack frame: Debugging Terms. (line 10) * Stallman, Richard <1>: Glossary. (line 296) * Stallman, Richard <2>: Contributors. (line 23) @@ -34218,325 +34219,325 @@ Node: Functions489801 Node: Built-in490674 Node: Calling Built-in491752 Node: Numeric Functions493740 -Ref: Numeric Functions-Footnote-1498318 -Ref: Numeric Functions-Footnote-2498675 -Ref: Numeric Functions-Footnote-3498723 -Node: String Functions498992 -Ref: String Functions-Footnote-1522003 -Ref: String Functions-Footnote-2522132 -Ref: String Functions-Footnote-3522380 -Node: Gory Details522467 -Ref: table-sub-escapes524136 -Ref: table-sub-posix-92525490 -Ref: table-sub-proposed526841 -Ref: table-posix-sub528195 -Ref: table-gensub-escapes529740 -Ref: Gory Details-Footnote-1530916 -Ref: Gory Details-Footnote-2530967 -Node: I/O Functions531118 -Ref: I/O Functions-Footnote-1538241 -Node: Time Functions538388 -Ref: Time Functions-Footnote-1548852 -Ref: Time Functions-Footnote-2548920 -Ref: Time Functions-Footnote-3549078 -Ref: Time Functions-Footnote-4549189 -Ref: Time Functions-Footnote-5549301 -Ref: Time Functions-Footnote-6549528 -Node: Bitwise Functions549794 -Ref: table-bitwise-ops550356 -Ref: Bitwise Functions-Footnote-1554601 -Node: Type Functions554785 -Node: I18N Functions555927 -Node: User-defined557572 -Node: Definition Syntax558376 -Ref: Definition Syntax-Footnote-1563555 -Node: Function Example563624 -Ref: Function Example-Footnote-1566268 -Node: Function Caveats566290 -Node: Calling A Function566808 -Node: Variable Scope567763 -Node: Pass By Value/Reference570751 -Node: Return Statement574259 -Node: Dynamic Typing577243 -Node: Indirect Calls578172 -Node: Functions Summary587885 -Node: Library Functions590424 -Ref: Library Functions-Footnote-1594042 -Ref: Library Functions-Footnote-2594185 -Node: Library Names594356 -Ref: Library Names-Footnote-1597829 -Ref: Library Names-Footnote-2598049 -Node: General Functions598135 -Node: Strtonum Function599163 -Node: Assert Function601943 -Node: Round Function605269 -Node: Cliff Random Function606810 -Node: Ordinal Functions607826 -Ref: Ordinal Functions-Footnote-1610903 -Ref: Ordinal Functions-Footnote-2611155 -Node: Join Function611366 -Ref: Join Function-Footnote-1613137 -Node: Getlocaltime Function613337 -Node: Readfile Function617073 -Node: Data File Management618912 -Node: Filetrans Function619544 -Node: Rewind Function623613 -Node: File Checking625000 -Ref: File Checking-Footnote-1626132 -Node: Empty Files626333 -Node: Ignoring Assigns628312 -Node: Getopt Function629866 -Ref: Getopt Function-Footnote-1641169 -Node: Passwd Functions641372 -Ref: Passwd Functions-Footnote-1650351 -Node: Group Functions650439 -Ref: Group Functions-Footnote-1658380 -Node: Walking Arrays658593 -Node: Library Functions Summary660196 -Node: Library exercises661584 -Node: Sample Programs662864 -Node: Running Examples663634 -Node: Clones664362 -Node: Cut Program665586 -Node: Egrep Program675454 -Ref: Egrep Program-Footnote-1683425 -Node: Id Program683535 -Node: Split Program687199 -Ref: Split Program-Footnote-1690737 -Node: Tee Program690865 -Node: Uniq Program693672 -Node: Wc Program701102 -Ref: Wc Program-Footnote-1705367 -Node: Miscellaneous Programs705459 -Node: Dupword Program706672 -Node: Alarm Program708703 -Node: Translate Program713517 -Ref: Translate Program-Footnote-1717908 -Ref: Translate Program-Footnote-2718178 -Node: Labels Program718312 -Ref: Labels Program-Footnote-1721683 -Node: Word Sorting721767 -Node: History Sorting725810 -Node: Extract Program727646 -Node: Simple Sed735182 -Node: Igawk Program738244 -Ref: Igawk Program-Footnote-1752555 -Ref: Igawk Program-Footnote-2752756 -Node: Anagram Program752894 -Node: Signature Program755962 -Node: Programs Summary757209 -Node: Programs Exercises758424 -Node: Advanced Features762075 -Node: Nondecimal Data764023 -Node: Array Sorting765600 -Node: Controlling Array Traversal766297 -Node: Array Sorting Functions774577 -Ref: Array Sorting Functions-Footnote-1778484 -Node: Two-way I/O778678 -Ref: Two-way I/O-Footnote-1784194 -Node: TCP/IP Networking784276 -Node: Profiling787120 -Node: Advanced Features Summary794671 -Node: Internationalization796535 -Node: I18N and L10N798015 -Node: Explaining gettext798701 -Ref: Explaining gettext-Footnote-1803841 -Ref: Explaining gettext-Footnote-2804025 -Node: Programmer i18n804190 -Node: Translator i18n808415 -Node: String Extraction809209 -Ref: String Extraction-Footnote-1810170 -Node: Printf Ordering810256 -Ref: Printf Ordering-Footnote-1813038 -Node: I18N Portability813102 -Ref: I18N Portability-Footnote-1815551 -Node: I18N Example815614 -Ref: I18N Example-Footnote-1818336 -Node: Gawk I18N818408 -Node: I18N Summary819046 -Node: Debugger820385 -Node: Debugging821407 -Node: Debugging Concepts821848 -Node: Debugging Terms823704 -Node: Awk Debugging826301 -Node: Sample Debugging Session827193 -Node: Debugger Invocation827713 -Node: Finding The Bug829046 -Node: List of Debugger Commands835528 -Node: Breakpoint Control836860 -Node: Debugger Execution Control840524 -Node: Viewing And Changing Data843884 -Node: Execution Stack847242 -Node: Debugger Info848755 -Node: Miscellaneous Debugger Commands852749 -Node: Readline Support857933 -Node: Limitations858825 -Node: Debugging Summary861099 -Node: Arbitrary Precision Arithmetic862263 -Node: Computer Arithmetic863592 -Ref: Computer Arithmetic-Footnote-1867979 -Node: Math Definitions868036 -Ref: table-ieee-formats870920 -Node: MPFR features871424 -Node: FP Math Caution873066 -Ref: FP Math Caution-Footnote-1874107 -Node: Inexactness of computations874476 -Node: Inexact representation875424 -Node: Comparing FP Values876779 -Node: Errors accumulate877743 -Node: Getting Accuracy879176 -Node: Try To Round881835 -Node: Setting precision882734 -Ref: table-predefined-precision-strings883416 -Node: Setting the rounding mode885209 -Ref: table-gawk-rounding-modes885573 -Ref: Setting the rounding mode-Footnote-1889027 -Node: Arbitrary Precision Integers889206 -Ref: Arbitrary Precision Integers-Footnote-1893001 -Node: POSIX Floating Point Problems893150 -Ref: POSIX Floating Point Problems-Footnote-1897026 -Node: Floating point summary897064 -Node: Dynamic Extensions899281 -Node: Extension Intro900833 -Node: Plugin License902098 -Node: Extension Mechanism Outline902783 -Ref: figure-load-extension903207 -Ref: figure-load-new-function904692 -Ref: figure-call-new-function905694 -Node: Extension API Description907678 -Node: Extension API Functions Introduction909128 -Node: General Data Types913993 -Ref: General Data Types-Footnote-1919686 -Node: Requesting Values919985 -Ref: table-value-types-returned920722 -Node: Memory Allocation Functions921680 -Ref: Memory Allocation Functions-Footnote-1924427 -Node: Constructor Functions924523 -Node: Registration Functions926281 -Node: Extension Functions926966 -Node: Exit Callback Functions929268 -Node: Extension Version String930517 -Node: Input Parsers931167 -Node: Output Wrappers940970 -Node: Two-way processors945486 -Node: Printing Messages947690 -Ref: Printing Messages-Footnote-1948767 -Node: Updating `ERRNO'948919 -Node: Accessing Parameters949658 -Node: Symbol Table Access950888 -Node: Symbol table by name951402 -Node: Symbol table by cookie953378 -Ref: Symbol table by cookie-Footnote-1957511 -Node: Cached values957574 -Ref: Cached values-Footnote-1961078 -Node: Array Manipulation961169 -Ref: Array Manipulation-Footnote-1962267 -Node: Array Data Types962306 -Ref: Array Data Types-Footnote-1965009 -Node: Array Functions965101 -Node: Flattening Arrays968975 -Node: Creating Arrays975827 -Node: Extension API Variables980558 -Node: Extension Versioning981194 -Node: Extension API Informational Variables983095 -Node: Extension API Boilerplate984181 -Node: Finding Extensions987985 -Node: Extension Example988545 -Node: Internal File Description989275 -Node: Internal File Ops993366 -Ref: Internal File Ops-Footnote-11004798 -Node: Using Internal File Ops1004938 -Ref: Using Internal File Ops-Footnote-11007285 -Node: Extension Samples1007553 -Node: Extension Sample File Functions1009077 -Node: Extension Sample Fnmatch1016645 -Node: Extension Sample Fork1018127 -Node: Extension Sample Inplace1019340 -Node: Extension Sample Ord1021015 -Node: Extension Sample Readdir1021851 -Ref: table-readdir-file-types1022707 -Node: Extension Sample Revout1023506 -Node: Extension Sample Rev2way1024097 -Node: Extension Sample Read write array1024838 -Node: Extension Sample Readfile1026717 -Node: Extension Sample API Tests1027817 -Node: Extension Sample Time1028342 -Node: gawkextlib1029657 -Node: Extension summary1032470 -Node: Extension Exercises1036163 -Node: Language History1036885 -Node: V7/SVR3.11038528 -Node: SVR41040848 -Node: POSIX1042290 -Node: BTL1043676 -Node: POSIX/GNU1044410 -Node: Feature History1050009 -Node: Common Extensions1063139 -Node: Ranges and Locales1064451 -Ref: Ranges and Locales-Footnote-11069068 -Ref: Ranges and Locales-Footnote-21069095 -Ref: Ranges and Locales-Footnote-31069329 -Node: Contributors1069550 -Node: History summary1074975 -Node: Installation1076344 -Node: Gawk Distribution1077295 -Node: Getting1077779 -Node: Extracting1078603 -Node: Distribution contents1080245 -Node: Unix Installation1086015 -Node: Quick Installation1086632 -Node: Additional Configuration Options1089074 -Node: Configuration Philosophy1090812 -Node: Non-Unix Installation1093163 -Node: PC Installation1093621 -Node: PC Binary Installation1094932 -Node: PC Compiling1096780 -Ref: PC Compiling-Footnote-11099779 -Node: PC Testing1099884 -Node: PC Using1101060 -Node: Cygwin1105218 -Node: MSYS1106027 -Node: VMS Installation1106541 -Node: VMS Compilation1107337 -Ref: VMS Compilation-Footnote-11108559 -Node: VMS Dynamic Extensions1108617 -Node: VMS Installation Details1109990 -Node: VMS Running1112242 -Node: VMS GNV1115076 -Node: VMS Old Gawk1115799 -Node: Bugs1116269 -Node: Other Versions1120273 -Node: Installation summary1126528 -Node: Notes1127584 -Node: Compatibility Mode1128449 -Node: Additions1129231 -Node: Accessing The Source1130156 -Node: Adding Code1131592 -Node: New Ports1137770 -Node: Derived Files1142251 -Ref: Derived Files-Footnote-11147332 -Ref: Derived Files-Footnote-21147366 -Ref: Derived Files-Footnote-31147962 -Node: Future Extensions1148076 -Node: Implementation Limitations1148682 -Node: Extension Design1149930 -Node: Old Extension Problems1151084 -Ref: Old Extension Problems-Footnote-11152601 -Node: Extension New Mechanism Goals1152658 -Ref: Extension New Mechanism Goals-Footnote-11156018 -Node: Extension Other Design Decisions1156207 -Node: Extension Future Growth1158313 -Node: Old Extension Mechanism1159149 -Node: Notes summary1160911 -Node: Basic Concepts1162097 -Node: Basic High Level1162778 -Ref: figure-general-flow1163050 -Ref: figure-process-flow1163649 -Ref: Basic High Level-Footnote-11166878 -Node: Basic Data Typing1167063 -Node: Glossary1170391 -Node: Copying1195543 -Node: GNU Free Documentation License1233099 -Node: Index1258235 +Ref: Numeric Functions-Footnote-1498376 +Ref: Numeric Functions-Footnote-2498733 +Ref: Numeric Functions-Footnote-3498781 +Node: String Functions499050 +Ref: String Functions-Footnote-1522061 +Ref: String Functions-Footnote-2522190 +Ref: String Functions-Footnote-3522438 +Node: Gory Details522525 +Ref: table-sub-escapes524194 +Ref: table-sub-posix-92525548 +Ref: table-sub-proposed526899 +Ref: table-posix-sub528253 +Ref: table-gensub-escapes529798 +Ref: Gory Details-Footnote-1530974 +Ref: Gory Details-Footnote-2531025 +Node: I/O Functions531176 +Ref: I/O Functions-Footnote-1538299 +Node: Time Functions538446 +Ref: Time Functions-Footnote-1548910 +Ref: Time Functions-Footnote-2548978 +Ref: Time Functions-Footnote-3549136 +Ref: Time Functions-Footnote-4549247 +Ref: Time Functions-Footnote-5549359 +Ref: Time Functions-Footnote-6549586 +Node: Bitwise Functions549852 +Ref: table-bitwise-ops550414 +Ref: Bitwise Functions-Footnote-1554659 +Node: Type Functions554843 +Node: I18N Functions555985 +Node: User-defined557630 +Node: Definition Syntax558434 +Ref: Definition Syntax-Footnote-1563613 +Node: Function Example563682 +Ref: Function Example-Footnote-1566326 +Node: Function Caveats566348 +Node: Calling A Function566866 +Node: Variable Scope567821 +Node: Pass By Value/Reference570809 +Node: Return Statement574317 +Node: Dynamic Typing577301 +Node: Indirect Calls578230 +Node: Functions Summary587943 +Node: Library Functions590482 +Ref: Library Functions-Footnote-1594100 +Ref: Library Functions-Footnote-2594243 +Node: Library Names594414 +Ref: Library Names-Footnote-1597887 +Ref: Library Names-Footnote-2598107 +Node: General Functions598193 +Node: Strtonum Function599221 +Node: Assert Function602001 +Node: Round Function605327 +Node: Cliff Random Function606868 +Node: Ordinal Functions607884 +Ref: Ordinal Functions-Footnote-1610961 +Ref: Ordinal Functions-Footnote-2611213 +Node: Join Function611424 +Ref: Join Function-Footnote-1613195 +Node: Getlocaltime Function613395 +Node: Readfile Function617131 +Node: Data File Management618970 +Node: Filetrans Function619602 +Node: Rewind Function623671 +Node: File Checking625058 +Ref: File Checking-Footnote-1626190 +Node: Empty Files626391 +Node: Ignoring Assigns628370 +Node: Getopt Function629924 +Ref: Getopt Function-Footnote-1641227 +Node: Passwd Functions641430 +Ref: Passwd Functions-Footnote-1650409 +Node: Group Functions650497 +Ref: Group Functions-Footnote-1658438 +Node: Walking Arrays658651 +Node: Library Functions Summary660254 +Node: Library exercises661642 +Node: Sample Programs662922 +Node: Running Examples663692 +Node: Clones664420 +Node: Cut Program665644 +Node: Egrep Program675512 +Ref: Egrep Program-Footnote-1683483 +Node: Id Program683593 +Node: Split Program687257 +Ref: Split Program-Footnote-1690795 +Node: Tee Program690923 +Node: Uniq Program693730 +Node: Wc Program701160 +Ref: Wc Program-Footnote-1705425 +Node: Miscellaneous Programs705517 +Node: Dupword Program706730 +Node: Alarm Program708761 +Node: Translate Program713575 +Ref: Translate Program-Footnote-1717966 +Ref: Translate Program-Footnote-2718236 +Node: Labels Program718370 +Ref: Labels Program-Footnote-1721741 +Node: Word Sorting721825 +Node: History Sorting725868 +Node: Extract Program727704 +Node: Simple Sed735240 +Node: Igawk Program738302 +Ref: Igawk Program-Footnote-1752613 +Ref: Igawk Program-Footnote-2752814 +Node: Anagram Program752952 +Node: Signature Program756020 +Node: Programs Summary757267 +Node: Programs Exercises758482 +Node: Advanced Features762133 +Node: Nondecimal Data764081 +Node: Array Sorting765658 +Node: Controlling Array Traversal766355 +Node: Array Sorting Functions774635 +Ref: Array Sorting Functions-Footnote-1778542 +Node: Two-way I/O778736 +Ref: Two-way I/O-Footnote-1784252 +Node: TCP/IP Networking784334 +Node: Profiling787178 +Node: Advanced Features Summary794729 +Node: Internationalization796593 +Node: I18N and L10N798073 +Node: Explaining gettext798759 +Ref: Explaining gettext-Footnote-1803899 +Ref: Explaining gettext-Footnote-2804083 +Node: Programmer i18n804248 +Node: Translator i18n808473 +Node: String Extraction809267 +Ref: String Extraction-Footnote-1810228 +Node: Printf Ordering810314 +Ref: Printf Ordering-Footnote-1813096 +Node: I18N Portability813160 +Ref: I18N Portability-Footnote-1815609 +Node: I18N Example815672 +Ref: I18N Example-Footnote-1818394 +Node: Gawk I18N818466 +Node: I18N Summary819104 +Node: Debugger820443 +Node: Debugging821465 +Node: Debugging Concepts821906 +Node: Debugging Terms823762 +Node: Awk Debugging826359 +Node: Sample Debugging Session827251 +Node: Debugger Invocation827771 +Node: Finding The Bug829104 +Node: List of Debugger Commands835586 +Node: Breakpoint Control836918 +Node: Debugger Execution Control840582 +Node: Viewing And Changing Data843942 +Node: Execution Stack847300 +Node: Debugger Info848813 +Node: Miscellaneous Debugger Commands852807 +Node: Readline Support857991 +Node: Limitations858883 +Node: Debugging Summary861157 +Node: Arbitrary Precision Arithmetic862321 +Node: Computer Arithmetic863650 +Ref: Computer Arithmetic-Footnote-1868037 +Node: Math Definitions868094 +Ref: table-ieee-formats870978 +Node: MPFR features871482 +Node: FP Math Caution873124 +Ref: FP Math Caution-Footnote-1874165 +Node: Inexactness of computations874534 +Node: Inexact representation875482 +Node: Comparing FP Values876837 +Node: Errors accumulate877801 +Node: Getting Accuracy879234 +Node: Try To Round881893 +Node: Setting precision882792 +Ref: table-predefined-precision-strings883474 +Node: Setting the rounding mode885267 +Ref: table-gawk-rounding-modes885631 +Ref: Setting the rounding mode-Footnote-1889085 +Node: Arbitrary Precision Integers889264 +Ref: Arbitrary Precision Integers-Footnote-1893059 +Node: POSIX Floating Point Problems893208 +Ref: POSIX Floating Point Problems-Footnote-1897084 +Node: Floating point summary897122 +Node: Dynamic Extensions899339 +Node: Extension Intro900891 +Node: Plugin License902156 +Node: Extension Mechanism Outline902841 +Ref: figure-load-extension903265 +Ref: figure-load-new-function904750 +Ref: figure-call-new-function905752 +Node: Extension API Description907736 +Node: Extension API Functions Introduction909186 +Node: General Data Types914051 +Ref: General Data Types-Footnote-1919744 +Node: Requesting Values920043 +Ref: table-value-types-returned920780 +Node: Memory Allocation Functions921738 +Ref: Memory Allocation Functions-Footnote-1924485 +Node: Constructor Functions924581 +Node: Registration Functions926339 +Node: Extension Functions927024 +Node: Exit Callback Functions929326 +Node: Extension Version String930575 +Node: Input Parsers931225 +Node: Output Wrappers941028 +Node: Two-way processors945544 +Node: Printing Messages947748 +Ref: Printing Messages-Footnote-1948825 +Node: Updating `ERRNO'948977 +Node: Accessing Parameters949716 +Node: Symbol Table Access950946 +Node: Symbol table by name951460 +Node: Symbol table by cookie953436 +Ref: Symbol table by cookie-Footnote-1957569 +Node: Cached values957632 +Ref: Cached values-Footnote-1961136 +Node: Array Manipulation961227 +Ref: Array Manipulation-Footnote-1962325 +Node: Array Data Types962364 +Ref: Array Data Types-Footnote-1965067 +Node: Array Functions965159 +Node: Flattening Arrays969033 +Node: Creating Arrays975885 +Node: Extension API Variables980616 +Node: Extension Versioning981252 +Node: Extension API Informational Variables983153 +Node: Extension API Boilerplate984239 +Node: Finding Extensions988043 +Node: Extension Example988603 +Node: Internal File Description989333 +Node: Internal File Ops993424 +Ref: Internal File Ops-Footnote-11004856 +Node: Using Internal File Ops1004996 +Ref: Using Internal File Ops-Footnote-11007343 +Node: Extension Samples1007611 +Node: Extension Sample File Functions1009135 +Node: Extension Sample Fnmatch1016703 +Node: Extension Sample Fork1018185 +Node: Extension Sample Inplace1019398 +Node: Extension Sample Ord1021073 +Node: Extension Sample Readdir1021909 +Ref: table-readdir-file-types1022765 +Node: Extension Sample Revout1023564 +Node: Extension Sample Rev2way1024155 +Node: Extension Sample Read write array1024896 +Node: Extension Sample Readfile1026775 +Node: Extension Sample API Tests1027875 +Node: Extension Sample Time1028400 +Node: gawkextlib1029715 +Node: Extension summary1032528 +Node: Extension Exercises1036221 +Node: Language History1036943 +Node: V7/SVR3.11038586 +Node: SVR41040906 +Node: POSIX1042348 +Node: BTL1043734 +Node: POSIX/GNU1044468 +Node: Feature History1050067 +Node: Common Extensions1063197 +Node: Ranges and Locales1064509 +Ref: Ranges and Locales-Footnote-11069126 +Ref: Ranges and Locales-Footnote-21069153 +Ref: Ranges and Locales-Footnote-31069387 +Node: Contributors1069608 +Node: History summary1075033 +Node: Installation1076402 +Node: Gawk Distribution1077353 +Node: Getting1077837 +Node: Extracting1078661 +Node: Distribution contents1080303 +Node: Unix Installation1086073 +Node: Quick Installation1086690 +Node: Additional Configuration Options1089132 +Node: Configuration Philosophy1090870 +Node: Non-Unix Installation1093221 +Node: PC Installation1093679 +Node: PC Binary Installation1094990 +Node: PC Compiling1096838 +Ref: PC Compiling-Footnote-11099837 +Node: PC Testing1099942 +Node: PC Using1101118 +Node: Cygwin1105276 +Node: MSYS1106085 +Node: VMS Installation1106599 +Node: VMS Compilation1107395 +Ref: VMS Compilation-Footnote-11108617 +Node: VMS Dynamic Extensions1108675 +Node: VMS Installation Details1110048 +Node: VMS Running1112300 +Node: VMS GNV1115134 +Node: VMS Old Gawk1115857 +Node: Bugs1116327 +Node: Other Versions1120331 +Node: Installation summary1126586 +Node: Notes1127642 +Node: Compatibility Mode1128507 +Node: Additions1129289 +Node: Accessing The Source1130214 +Node: Adding Code1131650 +Node: New Ports1137828 +Node: Derived Files1142309 +Ref: Derived Files-Footnote-11147390 +Ref: Derived Files-Footnote-21147424 +Ref: Derived Files-Footnote-31148020 +Node: Future Extensions1148134 +Node: Implementation Limitations1148740 +Node: Extension Design1149988 +Node: Old Extension Problems1151142 +Ref: Old Extension Problems-Footnote-11152659 +Node: Extension New Mechanism Goals1152716 +Ref: Extension New Mechanism Goals-Footnote-11156076 +Node: Extension Other Design Decisions1156265 +Node: Extension Future Growth1158371 +Node: Old Extension Mechanism1159207 +Node: Notes summary1160969 +Node: Basic Concepts1162155 +Node: Basic High Level1162836 +Ref: figure-general-flow1163108 +Ref: figure-process-flow1163707 +Ref: Basic High Level-Footnote-11166936 +Node: Basic Data Typing1167121 +Node: Glossary1170449 +Node: Copying1195601 +Node: GNU Free Documentation License1233157 +Node: Index1258293  End Tag Table -- cgit v1.2.3 From 831486481c397e13dc164524e54eddbc017fade3 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Sun, 3 Aug 2014 22:02:41 +0300 Subject: Document more about sprintf %c. --- doc/gawk.info | 856 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 429 insertions(+), 427 deletions(-) (limited to 'doc/gawk.info') diff --git a/doc/gawk.info b/doc/gawk.info index 8b5e572f..e1b07c80 100644 --- a/doc/gawk.info +++ b/doc/gawk.info @@ -6282,7 +6282,9 @@ width. Here is a list of the format-control letters: valid wide character and then to print the multibyte encoding of that character. Similarly, when printing a numeric value, `gawk' allows the value to be within the numeric range of - values that can be held in a wide character. + values that can be held in a wide character. If the + conversion to multibyte encoding fails, `gawk' uses the low + eight bits of the value as the character to print. Other `awk' versions generally restrict themselves to printing the first byte of a string or to numeric values within the @@ -34072,431 +34074,431 @@ Node: OFMT271992 Node: Printf273350 Node: Basic Printf274256 Node: Control Letters275795 -Node: Format Modifiers279647 -Node: Printf Examples285674 -Node: Redirection288138 -Node: Special Files295110 -Node: Special FD295641 -Ref: Special FD-Footnote-1299265 -Node: Special Network299339 -Node: Special Caveats300189 -Node: Close Files And Pipes300985 -Ref: Close Files And Pipes-Footnote-1308146 -Ref: Close Files And Pipes-Footnote-2308294 -Node: Output Summary308444 -Node: Output exercises309441 -Node: Expressions310121 -Node: Values311306 -Node: Constants311982 -Node: Scalar Constants312662 -Ref: Scalar Constants-Footnote-1313521 -Node: Nondecimal-numbers313771 -Node: Regexp Constants316771 -Node: Using Constant Regexps317246 -Node: Variables320316 -Node: Using Variables320971 -Node: Assignment Options322695 -Node: Conversion324570 -Node: Strings And Numbers325094 -Ref: Strings And Numbers-Footnote-1328156 -Node: Locale influences conversions328265 -Ref: table-locale-affects330982 -Node: All Operators331570 -Node: Arithmetic Ops332200 -Node: Concatenation334705 -Ref: Concatenation-Footnote-1337501 -Node: Assignment Ops337621 -Ref: table-assign-ops342604 -Node: Increment Ops343921 -Node: Truth Values and Conditions347359 -Node: Truth Values348442 -Node: Typing and Comparison349491 -Node: Variable Typing350284 -Ref: Variable Typing-Footnote-1354184 -Node: Comparison Operators354306 -Ref: table-relational-ops354716 -Node: POSIX String Comparison358266 -Ref: POSIX String Comparison-Footnote-1359350 -Node: Boolean Ops359488 -Ref: Boolean Ops-Footnote-1363558 -Node: Conditional Exp363649 -Node: Function Calls365376 -Node: Precedence369256 -Node: Locales372925 -Node: Expressions Summary374556 -Node: Patterns and Actions377097 -Node: Pattern Overview378213 -Node: Regexp Patterns379890 -Node: Expression Patterns380433 -Node: Ranges384214 -Node: BEGIN/END387320 -Node: Using BEGIN/END388082 -Ref: Using BEGIN/END-Footnote-1390818 -Node: I/O And BEGIN/END390924 -Node: BEGINFILE/ENDFILE393209 -Node: Empty396140 -Node: Using Shell Variables396457 -Node: Action Overview398740 -Node: Statements401067 -Node: If Statement402915 -Node: While Statement404413 -Node: Do Statement406457 -Node: For Statement407613 -Node: Switch Statement410765 -Node: Break Statement412868 -Node: Continue Statement414923 -Node: Next Statement416716 -Node: Nextfile Statement419106 -Node: Exit Statement421761 -Node: Built-in Variables424165 -Node: User-modified425292 -Ref: User-modified-Footnote-1432981 -Node: Auto-set433043 -Ref: Auto-set-Footnote-1445625 -Ref: Auto-set-Footnote-2445830 -Node: ARGC and ARGV445886 -Node: Pattern Action Summary449740 -Node: Arrays451963 -Node: Array Basics453512 -Node: Array Intro454338 -Ref: figure-array-elements456311 -Node: Reference to Elements458718 -Node: Assigning Elements460991 -Node: Array Example461482 -Node: Scanning an Array463214 -Node: Controlling Scanning466229 -Ref: Controlling Scanning-Footnote-1471402 -Node: Delete471718 -Ref: Delete-Footnote-1474483 -Node: Numeric Array Subscripts474540 -Node: Uninitialized Subscripts476723 -Node: Multidimensional478348 -Node: Multiscanning481441 -Node: Arrays of Arrays483030 -Node: Arrays Summary487693 -Node: Functions489798 -Node: Built-in490671 -Node: Calling Built-in491749 -Node: Numeric Functions493737 -Ref: Numeric Functions-Footnote-1497571 -Ref: Numeric Functions-Footnote-2497928 -Ref: Numeric Functions-Footnote-3497976 -Node: String Functions498245 -Ref: String Functions-Footnote-1521256 -Ref: String Functions-Footnote-2521385 -Ref: String Functions-Footnote-3521633 -Node: Gory Details521720 -Ref: table-sub-escapes523389 -Ref: table-sub-posix-92524743 -Ref: table-sub-proposed526094 -Ref: table-posix-sub527448 -Ref: table-gensub-escapes528993 -Ref: Gory Details-Footnote-1530169 -Ref: Gory Details-Footnote-2530220 -Node: I/O Functions530371 -Ref: I/O Functions-Footnote-1537494 -Node: Time Functions537641 -Ref: Time Functions-Footnote-1548105 -Ref: Time Functions-Footnote-2548173 -Ref: Time Functions-Footnote-3548331 -Ref: Time Functions-Footnote-4548442 -Ref: Time Functions-Footnote-5548554 -Ref: Time Functions-Footnote-6548781 -Node: Bitwise Functions549047 -Ref: table-bitwise-ops549609 -Ref: Bitwise Functions-Footnote-1553854 -Node: Type Functions554038 -Node: I18N Functions555180 -Node: User-defined556825 -Node: Definition Syntax557629 -Ref: Definition Syntax-Footnote-1562808 -Node: Function Example562877 -Ref: Function Example-Footnote-1565521 -Node: Function Caveats565543 -Node: Calling A Function566061 -Node: Variable Scope567016 -Node: Pass By Value/Reference570004 -Node: Return Statement573512 -Node: Dynamic Typing576496 -Node: Indirect Calls577425 -Node: Functions Summary587138 -Node: Library Functions589677 -Ref: Library Functions-Footnote-1593295 -Ref: Library Functions-Footnote-2593438 -Node: Library Names593609 -Ref: Library Names-Footnote-1597082 -Ref: Library Names-Footnote-2597302 -Node: General Functions597388 -Node: Strtonum Function598416 -Node: Assert Function601196 -Node: Round Function604522 -Node: Cliff Random Function606063 -Node: Ordinal Functions607079 -Ref: Ordinal Functions-Footnote-1610156 -Ref: Ordinal Functions-Footnote-2610408 -Node: Join Function610619 -Ref: Join Function-Footnote-1612390 -Node: Getlocaltime Function612590 -Node: Readfile Function616326 -Node: Data File Management618165 -Node: Filetrans Function618797 -Node: Rewind Function622866 -Node: File Checking624253 -Ref: File Checking-Footnote-1625385 -Node: Empty Files625586 -Node: Ignoring Assigns627565 -Node: Getopt Function629119 -Ref: Getopt Function-Footnote-1640422 -Node: Passwd Functions640625 -Ref: Passwd Functions-Footnote-1649604 -Node: Group Functions649692 -Ref: Group Functions-Footnote-1657633 -Node: Walking Arrays657846 -Node: Library Functions Summary659449 -Node: Library exercises660837 -Node: Sample Programs662117 -Node: Running Examples662887 -Node: Clones663615 -Node: Cut Program664839 -Node: Egrep Program674707 -Ref: Egrep Program-Footnote-1682678 -Node: Id Program682788 -Node: Split Program686452 -Ref: Split Program-Footnote-1689990 -Node: Tee Program690118 -Node: Uniq Program692925 -Node: Wc Program700355 -Ref: Wc Program-Footnote-1704620 -Node: Miscellaneous Programs704712 -Node: Dupword Program705925 -Node: Alarm Program707956 -Node: Translate Program712770 -Ref: Translate Program-Footnote-1717161 -Ref: Translate Program-Footnote-2717431 -Node: Labels Program717565 -Ref: Labels Program-Footnote-1720936 -Node: Word Sorting721020 -Node: History Sorting725063 -Node: Extract Program726899 -Node: Simple Sed734435 -Node: Igawk Program737497 -Ref: Igawk Program-Footnote-1751808 -Ref: Igawk Program-Footnote-2752009 -Node: Anagram Program752147 -Node: Signature Program755215 -Node: Programs Summary756462 -Node: Programs Exercises757677 -Node: Advanced Features761328 -Node: Nondecimal Data763276 -Node: Array Sorting764853 -Node: Controlling Array Traversal765550 -Node: Array Sorting Functions773830 -Ref: Array Sorting Functions-Footnote-1777737 -Node: Two-way I/O777931 -Ref: Two-way I/O-Footnote-1783447 -Node: TCP/IP Networking783529 -Node: Profiling786373 -Node: Advanced Features Summary793915 -Node: Internationalization795779 -Node: I18N and L10N797259 -Node: Explaining gettext797945 -Ref: Explaining gettext-Footnote-1803085 -Ref: Explaining gettext-Footnote-2803269 -Node: Programmer i18n803434 -Node: Translator i18n807659 -Node: String Extraction808453 -Ref: String Extraction-Footnote-1809414 -Node: Printf Ordering809500 -Ref: Printf Ordering-Footnote-1812282 -Node: I18N Portability812346 -Ref: I18N Portability-Footnote-1814795 -Node: I18N Example814858 -Ref: I18N Example-Footnote-1817580 -Node: Gawk I18N817652 -Node: I18N Summary818290 -Node: Debugger819629 -Node: Debugging820651 -Node: Debugging Concepts821092 -Node: Debugging Terms822948 -Node: Awk Debugging825545 -Node: Sample Debugging Session826437 -Node: Debugger Invocation826957 -Node: Finding The Bug828290 -Node: List of Debugger Commands834772 -Node: Breakpoint Control836104 -Node: Debugger Execution Control839768 -Node: Viewing And Changing Data843128 -Node: Execution Stack846486 -Node: Debugger Info847999 -Node: Miscellaneous Debugger Commands851993 -Node: Readline Support857177 -Node: Limitations858069 -Node: Debugging Summary860343 -Node: Arbitrary Precision Arithmetic861507 -Node: Computer Arithmetic862836 -Ref: Computer Arithmetic-Footnote-1867223 -Node: Math Definitions867280 -Ref: table-ieee-formats870164 -Node: MPFR features870668 -Node: FP Math Caution872310 -Ref: FP Math Caution-Footnote-1873351 -Node: Inexactness of computations873720 -Node: Inexact representation874668 -Node: Comparing FP Values876023 -Node: Errors accumulate876987 -Node: Getting Accuracy878420 -Node: Try To Round881079 -Node: Setting precision881978 -Ref: table-predefined-precision-strings882660 -Node: Setting the rounding mode884453 -Ref: table-gawk-rounding-modes884817 -Ref: Setting the rounding mode-Footnote-1888271 -Node: Arbitrary Precision Integers888450 -Ref: Arbitrary Precision Integers-Footnote-1891453 -Node: POSIX Floating Point Problems891602 -Ref: POSIX Floating Point Problems-Footnote-1895478 -Node: Floating point summary895516 -Node: Dynamic Extensions897733 -Node: Extension Intro899285 -Node: Plugin License900550 -Node: Extension Mechanism Outline901235 -Ref: figure-load-extension901659 -Ref: figure-load-new-function903144 -Ref: figure-call-new-function904146 -Node: Extension API Description906130 -Node: Extension API Functions Introduction907580 -Node: General Data Types912445 -Ref: General Data Types-Footnote-1918138 -Node: Requesting Values918437 -Ref: table-value-types-returned919174 -Node: Memory Allocation Functions920132 -Ref: Memory Allocation Functions-Footnote-1922879 -Node: Constructor Functions922975 -Node: Registration Functions924733 -Node: Extension Functions925418 -Node: Exit Callback Functions927720 -Node: Extension Version String928969 -Node: Input Parsers929619 -Node: Output Wrappers939422 -Node: Two-way processors943938 -Node: Printing Messages946142 -Ref: Printing Messages-Footnote-1947219 -Node: Updating `ERRNO'947371 -Node: Accessing Parameters948110 -Node: Symbol Table Access949340 -Node: Symbol table by name949854 -Node: Symbol table by cookie951830 -Ref: Symbol table by cookie-Footnote-1955963 -Node: Cached values956026 -Ref: Cached values-Footnote-1959530 -Node: Array Manipulation959621 -Ref: Array Manipulation-Footnote-1960719 -Node: Array Data Types960758 -Ref: Array Data Types-Footnote-1963461 -Node: Array Functions963553 -Node: Flattening Arrays967427 -Node: Creating Arrays974279 -Node: Extension API Variables979010 -Node: Extension Versioning979646 -Node: Extension API Informational Variables981547 -Node: Extension API Boilerplate982633 -Node: Finding Extensions986437 -Node: Extension Example986997 -Node: Internal File Description987727 -Node: Internal File Ops991818 -Ref: Internal File Ops-Footnote-11003250 -Node: Using Internal File Ops1003390 -Ref: Using Internal File Ops-Footnote-11005737 -Node: Extension Samples1006005 -Node: Extension Sample File Functions1007529 -Node: Extension Sample Fnmatch1015097 -Node: Extension Sample Fork1016579 -Node: Extension Sample Inplace1017792 -Node: Extension Sample Ord1019467 -Node: Extension Sample Readdir1020303 -Ref: table-readdir-file-types1021159 -Node: Extension Sample Revout1021958 -Node: Extension Sample Rev2way1022549 -Node: Extension Sample Read write array1023290 -Node: Extension Sample Readfile1025169 -Node: Extension Sample API Tests1026269 -Node: Extension Sample Time1026794 -Node: gawkextlib1028109 -Node: Extension summary1030922 -Node: Extension Exercises1034615 -Node: Language History1035337 -Node: V7/SVR3.11036980 -Node: SVR41039300 -Node: POSIX1040742 -Node: BTL1042128 -Node: POSIX/GNU1042862 -Node: Feature History1048461 -Node: Common Extensions1061591 -Node: Ranges and Locales1062903 -Ref: Ranges and Locales-Footnote-11067520 -Ref: Ranges and Locales-Footnote-21067547 -Ref: Ranges and Locales-Footnote-31067781 -Node: Contributors1068002 -Node: History summary1073427 -Node: Installation1074796 -Node: Gawk Distribution1075747 -Node: Getting1076231 -Node: Extracting1077055 -Node: Distribution contents1078697 -Node: Unix Installation1084414 -Node: Quick Installation1085031 -Node: Additional Configuration Options1087473 -Node: Configuration Philosophy1089211 -Node: Non-Unix Installation1091562 -Node: PC Installation1092020 -Node: PC Binary Installation1093331 -Node: PC Compiling1095179 -Ref: PC Compiling-Footnote-11098178 -Node: PC Testing1098283 -Node: PC Using1099459 -Node: Cygwin1103617 -Node: MSYS1104426 -Node: VMS Installation1104940 -Node: VMS Compilation1105736 -Ref: VMS Compilation-Footnote-11106958 -Node: VMS Dynamic Extensions1107016 -Node: VMS Installation Details1108389 -Node: VMS Running1110641 -Node: VMS GNV1113475 -Node: VMS Old Gawk1114198 -Node: Bugs1114668 -Node: Other Versions1118672 -Node: Installation summary1124927 -Node: Notes1125983 -Node: Compatibility Mode1126848 -Node: Additions1127630 -Node: Accessing The Source1128555 -Node: Adding Code1129991 -Node: New Ports1136169 -Node: Derived Files1140650 -Ref: Derived Files-Footnote-11145731 -Ref: Derived Files-Footnote-21145765 -Ref: Derived Files-Footnote-31146361 -Node: Future Extensions1146475 -Node: Implementation Limitations1147081 -Node: Extension Design1148329 -Node: Old Extension Problems1149483 -Ref: Old Extension Problems-Footnote-11151000 -Node: Extension New Mechanism Goals1151057 -Ref: Extension New Mechanism Goals-Footnote-11154417 -Node: Extension Other Design Decisions1154606 -Node: Extension Future Growth1156712 -Node: Old Extension Mechanism1157548 -Node: Notes summary1159310 -Node: Basic Concepts1160496 -Node: Basic High Level1161177 -Ref: figure-general-flow1161449 -Ref: figure-process-flow1162048 -Ref: Basic High Level-Footnote-11165277 -Node: Basic Data Typing1165462 -Node: Glossary1168790 -Node: Copying1193942 -Node: GNU Free Documentation License1231498 -Node: Index1256634 +Node: Format Modifiers279786 +Node: Printf Examples285813 +Node: Redirection288277 +Node: Special Files295249 +Node: Special FD295780 +Ref: Special FD-Footnote-1299404 +Node: Special Network299478 +Node: Special Caveats300328 +Node: Close Files And Pipes301124 +Ref: Close Files And Pipes-Footnote-1308285 +Ref: Close Files And Pipes-Footnote-2308433 +Node: Output Summary308583 +Node: Output exercises309580 +Node: Expressions310260 +Node: Values311445 +Node: Constants312121 +Node: Scalar Constants312801 +Ref: Scalar Constants-Footnote-1313660 +Node: Nondecimal-numbers313910 +Node: Regexp Constants316910 +Node: Using Constant Regexps317385 +Node: Variables320455 +Node: Using Variables321110 +Node: Assignment Options322834 +Node: Conversion324709 +Node: Strings And Numbers325233 +Ref: Strings And Numbers-Footnote-1328295 +Node: Locale influences conversions328404 +Ref: table-locale-affects331121 +Node: All Operators331709 +Node: Arithmetic Ops332339 +Node: Concatenation334844 +Ref: Concatenation-Footnote-1337640 +Node: Assignment Ops337760 +Ref: table-assign-ops342743 +Node: Increment Ops344060 +Node: Truth Values and Conditions347498 +Node: Truth Values348581 +Node: Typing and Comparison349630 +Node: Variable Typing350423 +Ref: Variable Typing-Footnote-1354323 +Node: Comparison Operators354445 +Ref: table-relational-ops354855 +Node: POSIX String Comparison358405 +Ref: POSIX String Comparison-Footnote-1359489 +Node: Boolean Ops359627 +Ref: Boolean Ops-Footnote-1363697 +Node: Conditional Exp363788 +Node: Function Calls365515 +Node: Precedence369395 +Node: Locales373064 +Node: Expressions Summary374695 +Node: Patterns and Actions377236 +Node: Pattern Overview378352 +Node: Regexp Patterns380029 +Node: Expression Patterns380572 +Node: Ranges384353 +Node: BEGIN/END387459 +Node: Using BEGIN/END388221 +Ref: Using BEGIN/END-Footnote-1390957 +Node: I/O And BEGIN/END391063 +Node: BEGINFILE/ENDFILE393348 +Node: Empty396279 +Node: Using Shell Variables396596 +Node: Action Overview398879 +Node: Statements401206 +Node: If Statement403054 +Node: While Statement404552 +Node: Do Statement406596 +Node: For Statement407752 +Node: Switch Statement410904 +Node: Break Statement413007 +Node: Continue Statement415062 +Node: Next Statement416855 +Node: Nextfile Statement419245 +Node: Exit Statement421900 +Node: Built-in Variables424304 +Node: User-modified425431 +Ref: User-modified-Footnote-1433120 +Node: Auto-set433182 +Ref: Auto-set-Footnote-1445764 +Ref: Auto-set-Footnote-2445969 +Node: ARGC and ARGV446025 +Node: Pattern Action Summary449879 +Node: Arrays452102 +Node: Array Basics453651 +Node: Array Intro454477 +Ref: figure-array-elements456450 +Node: Reference to Elements458857 +Node: Assigning Elements461130 +Node: Array Example461621 +Node: Scanning an Array463353 +Node: Controlling Scanning466368 +Ref: Controlling Scanning-Footnote-1471541 +Node: Delete471857 +Ref: Delete-Footnote-1474622 +Node: Numeric Array Subscripts474679 +Node: Uninitialized Subscripts476862 +Node: Multidimensional478487 +Node: Multiscanning481580 +Node: Arrays of Arrays483169 +Node: Arrays Summary487832 +Node: Functions489937 +Node: Built-in490810 +Node: Calling Built-in491888 +Node: Numeric Functions493876 +Ref: Numeric Functions-Footnote-1497710 +Ref: Numeric Functions-Footnote-2498067 +Ref: Numeric Functions-Footnote-3498115 +Node: String Functions498384 +Ref: String Functions-Footnote-1521395 +Ref: String Functions-Footnote-2521524 +Ref: String Functions-Footnote-3521772 +Node: Gory Details521859 +Ref: table-sub-escapes523528 +Ref: table-sub-posix-92524882 +Ref: table-sub-proposed526233 +Ref: table-posix-sub527587 +Ref: table-gensub-escapes529132 +Ref: Gory Details-Footnote-1530308 +Ref: Gory Details-Footnote-2530359 +Node: I/O Functions530510 +Ref: I/O Functions-Footnote-1537633 +Node: Time Functions537780 +Ref: Time Functions-Footnote-1548244 +Ref: Time Functions-Footnote-2548312 +Ref: Time Functions-Footnote-3548470 +Ref: Time Functions-Footnote-4548581 +Ref: Time Functions-Footnote-5548693 +Ref: Time Functions-Footnote-6548920 +Node: Bitwise Functions549186 +Ref: table-bitwise-ops549748 +Ref: Bitwise Functions-Footnote-1553993 +Node: Type Functions554177 +Node: I18N Functions555319 +Node: User-defined556964 +Node: Definition Syntax557768 +Ref: Definition Syntax-Footnote-1562947 +Node: Function Example563016 +Ref: Function Example-Footnote-1565660 +Node: Function Caveats565682 +Node: Calling A Function566200 +Node: Variable Scope567155 +Node: Pass By Value/Reference570143 +Node: Return Statement573651 +Node: Dynamic Typing576635 +Node: Indirect Calls577564 +Node: Functions Summary587277 +Node: Library Functions589816 +Ref: Library Functions-Footnote-1593434 +Ref: Library Functions-Footnote-2593577 +Node: Library Names593748 +Ref: Library Names-Footnote-1597221 +Ref: Library Names-Footnote-2597441 +Node: General Functions597527 +Node: Strtonum Function598555 +Node: Assert Function601335 +Node: Round Function604661 +Node: Cliff Random Function606202 +Node: Ordinal Functions607218 +Ref: Ordinal Functions-Footnote-1610295 +Ref: Ordinal Functions-Footnote-2610547 +Node: Join Function610758 +Ref: Join Function-Footnote-1612529 +Node: Getlocaltime Function612729 +Node: Readfile Function616465 +Node: Data File Management618304 +Node: Filetrans Function618936 +Node: Rewind Function623005 +Node: File Checking624392 +Ref: File Checking-Footnote-1625524 +Node: Empty Files625725 +Node: Ignoring Assigns627704 +Node: Getopt Function629258 +Ref: Getopt Function-Footnote-1640561 +Node: Passwd Functions640764 +Ref: Passwd Functions-Footnote-1649743 +Node: Group Functions649831 +Ref: Group Functions-Footnote-1657772 +Node: Walking Arrays657985 +Node: Library Functions Summary659588 +Node: Library exercises660976 +Node: Sample Programs662256 +Node: Running Examples663026 +Node: Clones663754 +Node: Cut Program664978 +Node: Egrep Program674846 +Ref: Egrep Program-Footnote-1682817 +Node: Id Program682927 +Node: Split Program686591 +Ref: Split Program-Footnote-1690129 +Node: Tee Program690257 +Node: Uniq Program693064 +Node: Wc Program700494 +Ref: Wc Program-Footnote-1704759 +Node: Miscellaneous Programs704851 +Node: Dupword Program706064 +Node: Alarm Program708095 +Node: Translate Program712909 +Ref: Translate Program-Footnote-1717300 +Ref: Translate Program-Footnote-2717570 +Node: Labels Program717704 +Ref: Labels Program-Footnote-1721075 +Node: Word Sorting721159 +Node: History Sorting725202 +Node: Extract Program727038 +Node: Simple Sed734574 +Node: Igawk Program737636 +Ref: Igawk Program-Footnote-1751947 +Ref: Igawk Program-Footnote-2752148 +Node: Anagram Program752286 +Node: Signature Program755354 +Node: Programs Summary756601 +Node: Programs Exercises757816 +Node: Advanced Features761467 +Node: Nondecimal Data763415 +Node: Array Sorting764992 +Node: Controlling Array Traversal765689 +Node: Array Sorting Functions773969 +Ref: Array Sorting Functions-Footnote-1777876 +Node: Two-way I/O778070 +Ref: Two-way I/O-Footnote-1783586 +Node: TCP/IP Networking783668 +Node: Profiling786512 +Node: Advanced Features Summary794054 +Node: Internationalization795918 +Node: I18N and L10N797398 +Node: Explaining gettext798084 +Ref: Explaining gettext-Footnote-1803224 +Ref: Explaining gettext-Footnote-2803408 +Node: Programmer i18n803573 +Node: Translator i18n807798 +Node: String Extraction808592 +Ref: String Extraction-Footnote-1809553 +Node: Printf Ordering809639 +Ref: Printf Ordering-Footnote-1812421 +Node: I18N Portability812485 +Ref: I18N Portability-Footnote-1814934 +Node: I18N Example814997 +Ref: I18N Example-Footnote-1817719 +Node: Gawk I18N817791 +Node: I18N Summary818429 +Node: Debugger819768 +Node: Debugging820790 +Node: Debugging Concepts821231 +Node: Debugging Terms823087 +Node: Awk Debugging825684 +Node: Sample Debugging Session826576 +Node: Debugger Invocation827096 +Node: Finding The Bug828429 +Node: List of Debugger Commands834911 +Node: Breakpoint Control836243 +Node: Debugger Execution Control839907 +Node: Viewing And Changing Data843267 +Node: Execution Stack846625 +Node: Debugger Info848138 +Node: Miscellaneous Debugger Commands852132 +Node: Readline Support857316 +Node: Limitations858208 +Node: Debugging Summary860482 +Node: Arbitrary Precision Arithmetic861646 +Node: Computer Arithmetic862975 +Ref: Computer Arithmetic-Footnote-1867362 +Node: Math Definitions867419 +Ref: table-ieee-formats870303 +Node: MPFR features870807 +Node: FP Math Caution872449 +Ref: FP Math Caution-Footnote-1873490 +Node: Inexactness of computations873859 +Node: Inexact representation874807 +Node: Comparing FP Values876162 +Node: Errors accumulate877126 +Node: Getting Accuracy878559 +Node: Try To Round881218 +Node: Setting precision882117 +Ref: table-predefined-precision-strings882799 +Node: Setting the rounding mode884592 +Ref: table-gawk-rounding-modes884956 +Ref: Setting the rounding mode-Footnote-1888410 +Node: Arbitrary Precision Integers888589 +Ref: Arbitrary Precision Integers-Footnote-1891592 +Node: POSIX Floating Point Problems891741 +Ref: POSIX Floating Point Problems-Footnote-1895617 +Node: Floating point summary895655 +Node: Dynamic Extensions897872 +Node: Extension Intro899424 +Node: Plugin License900689 +Node: Extension Mechanism Outline901374 +Ref: figure-load-extension901798 +Ref: figure-load-new-function903283 +Ref: figure-call-new-function904285 +Node: Extension API Description906269 +Node: Extension API Functions Introduction907719 +Node: General Data Types912584 +Ref: General Data Types-Footnote-1918277 +Node: Requesting Values918576 +Ref: table-value-types-returned919313 +Node: Memory Allocation Functions920271 +Ref: Memory Allocation Functions-Footnote-1923018 +Node: Constructor Functions923114 +Node: Registration Functions924872 +Node: Extension Functions925557 +Node: Exit Callback Functions927859 +Node: Extension Version String929108 +Node: Input Parsers929758 +Node: Output Wrappers939561 +Node: Two-way processors944077 +Node: Printing Messages946281 +Ref: Printing Messages-Footnote-1947358 +Node: Updating `ERRNO'947510 +Node: Accessing Parameters948249 +Node: Symbol Table Access949479 +Node: Symbol table by name949993 +Node: Symbol table by cookie951969 +Ref: Symbol table by cookie-Footnote-1956102 +Node: Cached values956165 +Ref: Cached values-Footnote-1959669 +Node: Array Manipulation959760 +Ref: Array Manipulation-Footnote-1960858 +Node: Array Data Types960897 +Ref: Array Data Types-Footnote-1963600 +Node: Array Functions963692 +Node: Flattening Arrays967566 +Node: Creating Arrays974418 +Node: Extension API Variables979149 +Node: Extension Versioning979785 +Node: Extension API Informational Variables981686 +Node: Extension API Boilerplate982772 +Node: Finding Extensions986576 +Node: Extension Example987136 +Node: Internal File Description987866 +Node: Internal File Ops991957 +Ref: Internal File Ops-Footnote-11003389 +Node: Using Internal File Ops1003529 +Ref: Using Internal File Ops-Footnote-11005876 +Node: Extension Samples1006144 +Node: Extension Sample File Functions1007668 +Node: Extension Sample Fnmatch1015236 +Node: Extension Sample Fork1016718 +Node: Extension Sample Inplace1017931 +Node: Extension Sample Ord1019606 +Node: Extension Sample Readdir1020442 +Ref: table-readdir-file-types1021298 +Node: Extension Sample Revout1022097 +Node: Extension Sample Rev2way1022688 +Node: Extension Sample Read write array1023429 +Node: Extension Sample Readfile1025308 +Node: Extension Sample API Tests1026408 +Node: Extension Sample Time1026933 +Node: gawkextlib1028248 +Node: Extension summary1031061 +Node: Extension Exercises1034754 +Node: Language History1035476 +Node: V7/SVR3.11037119 +Node: SVR41039439 +Node: POSIX1040881 +Node: BTL1042267 +Node: POSIX/GNU1043001 +Node: Feature History1048600 +Node: Common Extensions1061730 +Node: Ranges and Locales1063042 +Ref: Ranges and Locales-Footnote-11067659 +Ref: Ranges and Locales-Footnote-21067686 +Ref: Ranges and Locales-Footnote-31067920 +Node: Contributors1068141 +Node: History summary1073566 +Node: Installation1074935 +Node: Gawk Distribution1075886 +Node: Getting1076370 +Node: Extracting1077194 +Node: Distribution contents1078836 +Node: Unix Installation1084553 +Node: Quick Installation1085170 +Node: Additional Configuration Options1087612 +Node: Configuration Philosophy1089350 +Node: Non-Unix Installation1091701 +Node: PC Installation1092159 +Node: PC Binary Installation1093470 +Node: PC Compiling1095318 +Ref: PC Compiling-Footnote-11098317 +Node: PC Testing1098422 +Node: PC Using1099598 +Node: Cygwin1103756 +Node: MSYS1104565 +Node: VMS Installation1105079 +Node: VMS Compilation1105875 +Ref: VMS Compilation-Footnote-11107097 +Node: VMS Dynamic Extensions1107155 +Node: VMS Installation Details1108528 +Node: VMS Running1110780 +Node: VMS GNV1113614 +Node: VMS Old Gawk1114337 +Node: Bugs1114807 +Node: Other Versions1118811 +Node: Installation summary1125066 +Node: Notes1126122 +Node: Compatibility Mode1126987 +Node: Additions1127769 +Node: Accessing The Source1128694 +Node: Adding Code1130130 +Node: New Ports1136308 +Node: Derived Files1140789 +Ref: Derived Files-Footnote-11145870 +Ref: Derived Files-Footnote-21145904 +Ref: Derived Files-Footnote-31146500 +Node: Future Extensions1146614 +Node: Implementation Limitations1147220 +Node: Extension Design1148468 +Node: Old Extension Problems1149622 +Ref: Old Extension Problems-Footnote-11151139 +Node: Extension New Mechanism Goals1151196 +Ref: Extension New Mechanism Goals-Footnote-11154556 +Node: Extension Other Design Decisions1154745 +Node: Extension Future Growth1156851 +Node: Old Extension Mechanism1157687 +Node: Notes summary1159449 +Node: Basic Concepts1160635 +Node: Basic High Level1161316 +Ref: figure-general-flow1161588 +Ref: figure-process-flow1162187 +Ref: Basic High Level-Footnote-11165416 +Node: Basic Data Typing1165601 +Node: Glossary1168929 +Node: Copying1194081 +Node: GNU Free Documentation License1231637 +Node: Index1256773  End Tag Table -- cgit v1.2.3 From 8f2f7ef2872a9a95dc1506504b60225ef98944f1 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Sun, 3 Aug 2014 22:06:51 +0300 Subject: Improve inrec setting ERRNO, doc of API get_record for errors. --- doc/gawk.info | 250 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 125 insertions(+), 125 deletions(-) (limited to 'doc/gawk.info') diff --git a/doc/gawk.info b/doc/gawk.info index e1b07c80..8ca20ccc 100644 --- a/doc/gawk.info +++ b/doc/gawk.info @@ -23161,10 +23161,10 @@ need to test for a `NULL' value. `gawk' sets `*errcode' to zero, so there is no need to set it unless an error occurs. If an error does occur, the function should return `EOF' and set -`*errcode' to a non-zero value. In that case, if `*errcode' does not -equal -1, `gawk' automatically updates the `ERRNO' variable based on -the value of `*errcode'. (In general, setting `*errcode = errno' -should do the right thing.) +`*errcode' to a value greater than zero. In that case, if `*errcode' +does not equal zero, `gawk' automatically updates the `ERRNO' variable +based on the value of `*errcode'. (In general, setting `*errcode = +errno' should do the right thing.) As an alternative to supplying a function that returns an input record, you may instead supply a function that simply reads bytes, and @@ -34379,126 +34379,126 @@ Node: Extension Functions925557 Node: Exit Callback Functions927859 Node: Extension Version String929108 Node: Input Parsers929758 -Node: Output Wrappers939561 -Node: Two-way processors944077 -Node: Printing Messages946281 -Ref: Printing Messages-Footnote-1947358 -Node: Updating `ERRNO'947510 -Node: Accessing Parameters948249 -Node: Symbol Table Access949479 -Node: Symbol table by name949993 -Node: Symbol table by cookie951969 -Ref: Symbol table by cookie-Footnote-1956102 -Node: Cached values956165 -Ref: Cached values-Footnote-1959669 -Node: Array Manipulation959760 -Ref: Array Manipulation-Footnote-1960858 -Node: Array Data Types960897 -Ref: Array Data Types-Footnote-1963600 -Node: Array Functions963692 -Node: Flattening Arrays967566 -Node: Creating Arrays974418 -Node: Extension API Variables979149 -Node: Extension Versioning979785 -Node: Extension API Informational Variables981686 -Node: Extension API Boilerplate982772 -Node: Finding Extensions986576 -Node: Extension Example987136 -Node: Internal File Description987866 -Node: Internal File Ops991957 -Ref: Internal File Ops-Footnote-11003389 -Node: Using Internal File Ops1003529 -Ref: Using Internal File Ops-Footnote-11005876 -Node: Extension Samples1006144 -Node: Extension Sample File Functions1007668 -Node: Extension Sample Fnmatch1015236 -Node: Extension Sample Fork1016718 -Node: Extension Sample Inplace1017931 -Node: Extension Sample Ord1019606 -Node: Extension Sample Readdir1020442 -Ref: table-readdir-file-types1021298 -Node: Extension Sample Revout1022097 -Node: Extension Sample Rev2way1022688 -Node: Extension Sample Read write array1023429 -Node: Extension Sample Readfile1025308 -Node: Extension Sample API Tests1026408 -Node: Extension Sample Time1026933 -Node: gawkextlib1028248 -Node: Extension summary1031061 -Node: Extension Exercises1034754 -Node: Language History1035476 -Node: V7/SVR3.11037119 -Node: SVR41039439 -Node: POSIX1040881 -Node: BTL1042267 -Node: POSIX/GNU1043001 -Node: Feature History1048600 -Node: Common Extensions1061730 -Node: Ranges and Locales1063042 -Ref: Ranges and Locales-Footnote-11067659 -Ref: Ranges and Locales-Footnote-21067686 -Ref: Ranges and Locales-Footnote-31067920 -Node: Contributors1068141 -Node: History summary1073566 -Node: Installation1074935 -Node: Gawk Distribution1075886 -Node: Getting1076370 -Node: Extracting1077194 -Node: Distribution contents1078836 -Node: Unix Installation1084553 -Node: Quick Installation1085170 -Node: Additional Configuration Options1087612 -Node: Configuration Philosophy1089350 -Node: Non-Unix Installation1091701 -Node: PC Installation1092159 -Node: PC Binary Installation1093470 -Node: PC Compiling1095318 -Ref: PC Compiling-Footnote-11098317 -Node: PC Testing1098422 -Node: PC Using1099598 -Node: Cygwin1103756 -Node: MSYS1104565 -Node: VMS Installation1105079 -Node: VMS Compilation1105875 -Ref: VMS Compilation-Footnote-11107097 -Node: VMS Dynamic Extensions1107155 -Node: VMS Installation Details1108528 -Node: VMS Running1110780 -Node: VMS GNV1113614 -Node: VMS Old Gawk1114337 -Node: Bugs1114807 -Node: Other Versions1118811 -Node: Installation summary1125066 -Node: Notes1126122 -Node: Compatibility Mode1126987 -Node: Additions1127769 -Node: Accessing The Source1128694 -Node: Adding Code1130130 -Node: New Ports1136308 -Node: Derived Files1140789 -Ref: Derived Files-Footnote-11145870 -Ref: Derived Files-Footnote-21145904 -Ref: Derived Files-Footnote-31146500 -Node: Future Extensions1146614 -Node: Implementation Limitations1147220 -Node: Extension Design1148468 -Node: Old Extension Problems1149622 -Ref: Old Extension Problems-Footnote-11151139 -Node: Extension New Mechanism Goals1151196 -Ref: Extension New Mechanism Goals-Footnote-11154556 -Node: Extension Other Design Decisions1154745 -Node: Extension Future Growth1156851 -Node: Old Extension Mechanism1157687 -Node: Notes summary1159449 -Node: Basic Concepts1160635 -Node: Basic High Level1161316 -Ref: figure-general-flow1161588 -Ref: figure-process-flow1162187 -Ref: Basic High Level-Footnote-11165416 -Node: Basic Data Typing1165601 -Node: Glossary1168929 -Node: Copying1194081 -Node: GNU Free Documentation License1231637 -Node: Index1256773 +Node: Output Wrappers939572 +Node: Two-way processors944088 +Node: Printing Messages946292 +Ref: Printing Messages-Footnote-1947369 +Node: Updating `ERRNO'947521 +Node: Accessing Parameters948260 +Node: Symbol Table Access949490 +Node: Symbol table by name950004 +Node: Symbol table by cookie951980 +Ref: Symbol table by cookie-Footnote-1956113 +Node: Cached values956176 +Ref: Cached values-Footnote-1959680 +Node: Array Manipulation959771 +Ref: Array Manipulation-Footnote-1960869 +Node: Array Data Types960908 +Ref: Array Data Types-Footnote-1963611 +Node: Array Functions963703 +Node: Flattening Arrays967577 +Node: Creating Arrays974429 +Node: Extension API Variables979160 +Node: Extension Versioning979796 +Node: Extension API Informational Variables981697 +Node: Extension API Boilerplate982783 +Node: Finding Extensions986587 +Node: Extension Example987147 +Node: Internal File Description987877 +Node: Internal File Ops991968 +Ref: Internal File Ops-Footnote-11003400 +Node: Using Internal File Ops1003540 +Ref: Using Internal File Ops-Footnote-11005887 +Node: Extension Samples1006155 +Node: Extension Sample File Functions1007679 +Node: Extension Sample Fnmatch1015247 +Node: Extension Sample Fork1016729 +Node: Extension Sample Inplace1017942 +Node: Extension Sample Ord1019617 +Node: Extension Sample Readdir1020453 +Ref: table-readdir-file-types1021309 +Node: Extension Sample Revout1022108 +Node: Extension Sample Rev2way1022699 +Node: Extension Sample Read write array1023440 +Node: Extension Sample Readfile1025319 +Node: Extension Sample API Tests1026419 +Node: Extension Sample Time1026944 +Node: gawkextlib1028259 +Node: Extension summary1031072 +Node: Extension Exercises1034765 +Node: Language History1035487 +Node: V7/SVR3.11037130 +Node: SVR41039450 +Node: POSIX1040892 +Node: BTL1042278 +Node: POSIX/GNU1043012 +Node: Feature History1048611 +Node: Common Extensions1061741 +Node: Ranges and Locales1063053 +Ref: Ranges and Locales-Footnote-11067670 +Ref: Ranges and Locales-Footnote-21067697 +Ref: Ranges and Locales-Footnote-31067931 +Node: Contributors1068152 +Node: History summary1073577 +Node: Installation1074946 +Node: Gawk Distribution1075897 +Node: Getting1076381 +Node: Extracting1077205 +Node: Distribution contents1078847 +Node: Unix Installation1084564 +Node: Quick Installation1085181 +Node: Additional Configuration Options1087623 +Node: Configuration Philosophy1089361 +Node: Non-Unix Installation1091712 +Node: PC Installation1092170 +Node: PC Binary Installation1093481 +Node: PC Compiling1095329 +Ref: PC Compiling-Footnote-11098328 +Node: PC Testing1098433 +Node: PC Using1099609 +Node: Cygwin1103767 +Node: MSYS1104576 +Node: VMS Installation1105090 +Node: VMS Compilation1105886 +Ref: VMS Compilation-Footnote-11107108 +Node: VMS Dynamic Extensions1107166 +Node: VMS Installation Details1108539 +Node: VMS Running1110791 +Node: VMS GNV1113625 +Node: VMS Old Gawk1114348 +Node: Bugs1114818 +Node: Other Versions1118822 +Node: Installation summary1125077 +Node: Notes1126133 +Node: Compatibility Mode1126998 +Node: Additions1127780 +Node: Accessing The Source1128705 +Node: Adding Code1130141 +Node: New Ports1136319 +Node: Derived Files1140800 +Ref: Derived Files-Footnote-11145881 +Ref: Derived Files-Footnote-21145915 +Ref: Derived Files-Footnote-31146511 +Node: Future Extensions1146625 +Node: Implementation Limitations1147231 +Node: Extension Design1148479 +Node: Old Extension Problems1149633 +Ref: Old Extension Problems-Footnote-11151150 +Node: Extension New Mechanism Goals1151207 +Ref: Extension New Mechanism Goals-Footnote-11154567 +Node: Extension Other Design Decisions1154756 +Node: Extension Future Growth1156862 +Node: Old Extension Mechanism1157698 +Node: Notes summary1159460 +Node: Basic Concepts1160646 +Node: Basic High Level1161327 +Ref: figure-general-flow1161599 +Ref: figure-process-flow1162198 +Ref: Basic High Level-Footnote-11165427 +Node: Basic Data Typing1165612 +Node: Glossary1168940 +Node: Copying1194092 +Node: GNU Free Documentation License1231648 +Node: Index1256784  End Tag Table -- cgit v1.2.3 From 7cc33dc5325181f26ded26b745229147e130bab1 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Wed, 6 Aug 2014 22:24:06 +0300 Subject: Minor doc updates. --- doc/gawk.info | 523 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 265 insertions(+), 258 deletions(-) (limited to 'doc/gawk.info') diff --git a/doc/gawk.info b/doc/gawk.info index 8ca20ccc..5a07d84d 100644 --- a/doc/gawk.info +++ b/doc/gawk.info @@ -15018,7 +15018,9 @@ presented in *note Filetrans Function::, to either update `ARGIND' on your own or modify this code as appropriate. The `rewind()' function also relies on the `nextfile' keyword (*note -Nextfile Statement::). +Nextfile Statement::). Because of this, you should not call it from an +`ENDFILE' rule. (This isn't necessary anyway, since as soon as an +`ENDFILE' rule finishes `gawk' goes to the next file!)  File: gawk.info, Node: File Checking, Next: Empty Files, Prev: Rewind Function, Up: Data File Management @@ -26104,6 +26106,11 @@ the current version of `gawk'. - GCC for VAX and Alpha has not been tested for a while. + * Support for the following obsolete systems was removed from the + code and the documentation for `gawk' version 4.1: + + - Ultrix +  File: gawk.info, Node: Feature History, Next: Common Extensions, Prev: POSIX/GNU, Up: Language History @@ -34243,262 +34250,262 @@ Node: Readfile Function616465 Node: Data File Management618304 Node: Filetrans Function618936 Node: Rewind Function623005 -Node: File Checking624392 -Ref: File Checking-Footnote-1625524 -Node: Empty Files625725 -Node: Ignoring Assigns627704 -Node: Getopt Function629258 -Ref: Getopt Function-Footnote-1640561 -Node: Passwd Functions640764 -Ref: Passwd Functions-Footnote-1649743 -Node: Group Functions649831 -Ref: Group Functions-Footnote-1657772 -Node: Walking Arrays657985 -Node: Library Functions Summary659588 -Node: Library exercises660976 -Node: Sample Programs662256 -Node: Running Examples663026 -Node: Clones663754 -Node: Cut Program664978 -Node: Egrep Program674846 -Ref: Egrep Program-Footnote-1682817 -Node: Id Program682927 -Node: Split Program686591 -Ref: Split Program-Footnote-1690129 -Node: Tee Program690257 -Node: Uniq Program693064 -Node: Wc Program700494 -Ref: Wc Program-Footnote-1704759 -Node: Miscellaneous Programs704851 -Node: Dupword Program706064 -Node: Alarm Program708095 -Node: Translate Program712909 -Ref: Translate Program-Footnote-1717300 -Ref: Translate Program-Footnote-2717570 -Node: Labels Program717704 -Ref: Labels Program-Footnote-1721075 -Node: Word Sorting721159 -Node: History Sorting725202 -Node: Extract Program727038 -Node: Simple Sed734574 -Node: Igawk Program737636 -Ref: Igawk Program-Footnote-1751947 -Ref: Igawk Program-Footnote-2752148 -Node: Anagram Program752286 -Node: Signature Program755354 -Node: Programs Summary756601 -Node: Programs Exercises757816 -Node: Advanced Features761467 -Node: Nondecimal Data763415 -Node: Array Sorting764992 -Node: Controlling Array Traversal765689 -Node: Array Sorting Functions773969 -Ref: Array Sorting Functions-Footnote-1777876 -Node: Two-way I/O778070 -Ref: Two-way I/O-Footnote-1783586 -Node: TCP/IP Networking783668 -Node: Profiling786512 -Node: Advanced Features Summary794054 -Node: Internationalization795918 -Node: I18N and L10N797398 -Node: Explaining gettext798084 -Ref: Explaining gettext-Footnote-1803224 -Ref: Explaining gettext-Footnote-2803408 -Node: Programmer i18n803573 -Node: Translator i18n807798 -Node: String Extraction808592 -Ref: String Extraction-Footnote-1809553 -Node: Printf Ordering809639 -Ref: Printf Ordering-Footnote-1812421 -Node: I18N Portability812485 -Ref: I18N Portability-Footnote-1814934 -Node: I18N Example814997 -Ref: I18N Example-Footnote-1817719 -Node: Gawk I18N817791 -Node: I18N Summary818429 -Node: Debugger819768 -Node: Debugging820790 -Node: Debugging Concepts821231 -Node: Debugging Terms823087 -Node: Awk Debugging825684 -Node: Sample Debugging Session826576 -Node: Debugger Invocation827096 -Node: Finding The Bug828429 -Node: List of Debugger Commands834911 -Node: Breakpoint Control836243 -Node: Debugger Execution Control839907 -Node: Viewing And Changing Data843267 -Node: Execution Stack846625 -Node: Debugger Info848138 -Node: Miscellaneous Debugger Commands852132 -Node: Readline Support857316 -Node: Limitations858208 -Node: Debugging Summary860482 -Node: Arbitrary Precision Arithmetic861646 -Node: Computer Arithmetic862975 -Ref: Computer Arithmetic-Footnote-1867362 -Node: Math Definitions867419 -Ref: table-ieee-formats870303 -Node: MPFR features870807 -Node: FP Math Caution872449 -Ref: FP Math Caution-Footnote-1873490 -Node: Inexactness of computations873859 -Node: Inexact representation874807 -Node: Comparing FP Values876162 -Node: Errors accumulate877126 -Node: Getting Accuracy878559 -Node: Try To Round881218 -Node: Setting precision882117 -Ref: table-predefined-precision-strings882799 -Node: Setting the rounding mode884592 -Ref: table-gawk-rounding-modes884956 -Ref: Setting the rounding mode-Footnote-1888410 -Node: Arbitrary Precision Integers888589 -Ref: Arbitrary Precision Integers-Footnote-1891592 -Node: POSIX Floating Point Problems891741 -Ref: POSIX Floating Point Problems-Footnote-1895617 -Node: Floating point summary895655 -Node: Dynamic Extensions897872 -Node: Extension Intro899424 -Node: Plugin License900689 -Node: Extension Mechanism Outline901374 -Ref: figure-load-extension901798 -Ref: figure-load-new-function903283 -Ref: figure-call-new-function904285 -Node: Extension API Description906269 -Node: Extension API Functions Introduction907719 -Node: General Data Types912584 -Ref: General Data Types-Footnote-1918277 -Node: Requesting Values918576 -Ref: table-value-types-returned919313 -Node: Memory Allocation Functions920271 -Ref: Memory Allocation Functions-Footnote-1923018 -Node: Constructor Functions923114 -Node: Registration Functions924872 -Node: Extension Functions925557 -Node: Exit Callback Functions927859 -Node: Extension Version String929108 -Node: Input Parsers929758 -Node: Output Wrappers939572 -Node: Two-way processors944088 -Node: Printing Messages946292 -Ref: Printing Messages-Footnote-1947369 -Node: Updating `ERRNO'947521 -Node: Accessing Parameters948260 -Node: Symbol Table Access949490 -Node: Symbol table by name950004 -Node: Symbol table by cookie951980 -Ref: Symbol table by cookie-Footnote-1956113 -Node: Cached values956176 -Ref: Cached values-Footnote-1959680 -Node: Array Manipulation959771 -Ref: Array Manipulation-Footnote-1960869 -Node: Array Data Types960908 -Ref: Array Data Types-Footnote-1963611 -Node: Array Functions963703 -Node: Flattening Arrays967577 -Node: Creating Arrays974429 -Node: Extension API Variables979160 -Node: Extension Versioning979796 -Node: Extension API Informational Variables981697 -Node: Extension API Boilerplate982783 -Node: Finding Extensions986587 -Node: Extension Example987147 -Node: Internal File Description987877 -Node: Internal File Ops991968 -Ref: Internal File Ops-Footnote-11003400 -Node: Using Internal File Ops1003540 -Ref: Using Internal File Ops-Footnote-11005887 -Node: Extension Samples1006155 -Node: Extension Sample File Functions1007679 -Node: Extension Sample Fnmatch1015247 -Node: Extension Sample Fork1016729 -Node: Extension Sample Inplace1017942 -Node: Extension Sample Ord1019617 -Node: Extension Sample Readdir1020453 -Ref: table-readdir-file-types1021309 -Node: Extension Sample Revout1022108 -Node: Extension Sample Rev2way1022699 -Node: Extension Sample Read write array1023440 -Node: Extension Sample Readfile1025319 -Node: Extension Sample API Tests1026419 -Node: Extension Sample Time1026944 -Node: gawkextlib1028259 -Node: Extension summary1031072 -Node: Extension Exercises1034765 -Node: Language History1035487 -Node: V7/SVR3.11037130 -Node: SVR41039450 -Node: POSIX1040892 -Node: BTL1042278 -Node: POSIX/GNU1043012 -Node: Feature History1048611 -Node: Common Extensions1061741 -Node: Ranges and Locales1063053 -Ref: Ranges and Locales-Footnote-11067670 -Ref: Ranges and Locales-Footnote-21067697 -Ref: Ranges and Locales-Footnote-31067931 -Node: Contributors1068152 -Node: History summary1073577 -Node: Installation1074946 -Node: Gawk Distribution1075897 -Node: Getting1076381 -Node: Extracting1077205 -Node: Distribution contents1078847 -Node: Unix Installation1084564 -Node: Quick Installation1085181 -Node: Additional Configuration Options1087623 -Node: Configuration Philosophy1089361 -Node: Non-Unix Installation1091712 -Node: PC Installation1092170 -Node: PC Binary Installation1093481 -Node: PC Compiling1095329 -Ref: PC Compiling-Footnote-11098328 -Node: PC Testing1098433 -Node: PC Using1099609 -Node: Cygwin1103767 -Node: MSYS1104576 -Node: VMS Installation1105090 -Node: VMS Compilation1105886 -Ref: VMS Compilation-Footnote-11107108 -Node: VMS Dynamic Extensions1107166 -Node: VMS Installation Details1108539 -Node: VMS Running1110791 -Node: VMS GNV1113625 -Node: VMS Old Gawk1114348 -Node: Bugs1114818 -Node: Other Versions1118822 -Node: Installation summary1125077 -Node: Notes1126133 -Node: Compatibility Mode1126998 -Node: Additions1127780 -Node: Accessing The Source1128705 -Node: Adding Code1130141 -Node: New Ports1136319 -Node: Derived Files1140800 -Ref: Derived Files-Footnote-11145881 -Ref: Derived Files-Footnote-21145915 -Ref: Derived Files-Footnote-31146511 -Node: Future Extensions1146625 -Node: Implementation Limitations1147231 -Node: Extension Design1148479 -Node: Old Extension Problems1149633 -Ref: Old Extension Problems-Footnote-11151150 -Node: Extension New Mechanism Goals1151207 -Ref: Extension New Mechanism Goals-Footnote-11154567 -Node: Extension Other Design Decisions1154756 -Node: Extension Future Growth1156862 -Node: Old Extension Mechanism1157698 -Node: Notes summary1159460 -Node: Basic Concepts1160646 -Node: Basic High Level1161327 -Ref: figure-general-flow1161599 -Ref: figure-process-flow1162198 -Ref: Basic High Level-Footnote-11165427 -Node: Basic Data Typing1165612 -Node: Glossary1168940 -Node: Copying1194092 -Node: GNU Free Documentation License1231648 -Node: Index1256784 +Node: File Checking624563 +Ref: File Checking-Footnote-1625695 +Node: Empty Files625896 +Node: Ignoring Assigns627875 +Node: Getopt Function629429 +Ref: Getopt Function-Footnote-1640732 +Node: Passwd Functions640935 +Ref: Passwd Functions-Footnote-1649914 +Node: Group Functions650002 +Ref: Group Functions-Footnote-1657943 +Node: Walking Arrays658156 +Node: Library Functions Summary659759 +Node: Library exercises661147 +Node: Sample Programs662427 +Node: Running Examples663197 +Node: Clones663925 +Node: Cut Program665149 +Node: Egrep Program675017 +Ref: Egrep Program-Footnote-1682988 +Node: Id Program683098 +Node: Split Program686762 +Ref: Split Program-Footnote-1690300 +Node: Tee Program690428 +Node: Uniq Program693235 +Node: Wc Program700665 +Ref: Wc Program-Footnote-1704930 +Node: Miscellaneous Programs705022 +Node: Dupword Program706235 +Node: Alarm Program708266 +Node: Translate Program713080 +Ref: Translate Program-Footnote-1717471 +Ref: Translate Program-Footnote-2717741 +Node: Labels Program717875 +Ref: Labels Program-Footnote-1721246 +Node: Word Sorting721330 +Node: History Sorting725373 +Node: Extract Program727209 +Node: Simple Sed734745 +Node: Igawk Program737807 +Ref: Igawk Program-Footnote-1752118 +Ref: Igawk Program-Footnote-2752319 +Node: Anagram Program752457 +Node: Signature Program755525 +Node: Programs Summary756772 +Node: Programs Exercises757987 +Node: Advanced Features761638 +Node: Nondecimal Data763586 +Node: Array Sorting765163 +Node: Controlling Array Traversal765860 +Node: Array Sorting Functions774140 +Ref: Array Sorting Functions-Footnote-1778047 +Node: Two-way I/O778241 +Ref: Two-way I/O-Footnote-1783757 +Node: TCP/IP Networking783839 +Node: Profiling786683 +Node: Advanced Features Summary794225 +Node: Internationalization796089 +Node: I18N and L10N797569 +Node: Explaining gettext798255 +Ref: Explaining gettext-Footnote-1803395 +Ref: Explaining gettext-Footnote-2803579 +Node: Programmer i18n803744 +Node: Translator i18n807969 +Node: String Extraction808763 +Ref: String Extraction-Footnote-1809724 +Node: Printf Ordering809810 +Ref: Printf Ordering-Footnote-1812592 +Node: I18N Portability812656 +Ref: I18N Portability-Footnote-1815105 +Node: I18N Example815168 +Ref: I18N Example-Footnote-1817890 +Node: Gawk I18N817962 +Node: I18N Summary818600 +Node: Debugger819939 +Node: Debugging820961 +Node: Debugging Concepts821402 +Node: Debugging Terms823258 +Node: Awk Debugging825855 +Node: Sample Debugging Session826747 +Node: Debugger Invocation827267 +Node: Finding The Bug828600 +Node: List of Debugger Commands835082 +Node: Breakpoint Control836414 +Node: Debugger Execution Control840078 +Node: Viewing And Changing Data843438 +Node: Execution Stack846796 +Node: Debugger Info848309 +Node: Miscellaneous Debugger Commands852303 +Node: Readline Support857487 +Node: Limitations858379 +Node: Debugging Summary860653 +Node: Arbitrary Precision Arithmetic861817 +Node: Computer Arithmetic863146 +Ref: Computer Arithmetic-Footnote-1867533 +Node: Math Definitions867590 +Ref: table-ieee-formats870474 +Node: MPFR features870978 +Node: FP Math Caution872620 +Ref: FP Math Caution-Footnote-1873661 +Node: Inexactness of computations874030 +Node: Inexact representation874978 +Node: Comparing FP Values876333 +Node: Errors accumulate877297 +Node: Getting Accuracy878730 +Node: Try To Round881389 +Node: Setting precision882288 +Ref: table-predefined-precision-strings882970 +Node: Setting the rounding mode884763 +Ref: table-gawk-rounding-modes885127 +Ref: Setting the rounding mode-Footnote-1888581 +Node: Arbitrary Precision Integers888760 +Ref: Arbitrary Precision Integers-Footnote-1891763 +Node: POSIX Floating Point Problems891912 +Ref: POSIX Floating Point Problems-Footnote-1895788 +Node: Floating point summary895826 +Node: Dynamic Extensions898043 +Node: Extension Intro899595 +Node: Plugin License900860 +Node: Extension Mechanism Outline901545 +Ref: figure-load-extension901969 +Ref: figure-load-new-function903454 +Ref: figure-call-new-function904456 +Node: Extension API Description906440 +Node: Extension API Functions Introduction907890 +Node: General Data Types912755 +Ref: General Data Types-Footnote-1918448 +Node: Requesting Values918747 +Ref: table-value-types-returned919484 +Node: Memory Allocation Functions920442 +Ref: Memory Allocation Functions-Footnote-1923189 +Node: Constructor Functions923285 +Node: Registration Functions925043 +Node: Extension Functions925728 +Node: Exit Callback Functions928030 +Node: Extension Version String929279 +Node: Input Parsers929929 +Node: Output Wrappers939743 +Node: Two-way processors944259 +Node: Printing Messages946463 +Ref: Printing Messages-Footnote-1947540 +Node: Updating `ERRNO'947692 +Node: Accessing Parameters948431 +Node: Symbol Table Access949661 +Node: Symbol table by name950175 +Node: Symbol table by cookie952151 +Ref: Symbol table by cookie-Footnote-1956284 +Node: Cached values956347 +Ref: Cached values-Footnote-1959851 +Node: Array Manipulation959942 +Ref: Array Manipulation-Footnote-1961040 +Node: Array Data Types961079 +Ref: Array Data Types-Footnote-1963782 +Node: Array Functions963874 +Node: Flattening Arrays967748 +Node: Creating Arrays974600 +Node: Extension API Variables979331 +Node: Extension Versioning979967 +Node: Extension API Informational Variables981868 +Node: Extension API Boilerplate982954 +Node: Finding Extensions986758 +Node: Extension Example987318 +Node: Internal File Description988048 +Node: Internal File Ops992139 +Ref: Internal File Ops-Footnote-11003571 +Node: Using Internal File Ops1003711 +Ref: Using Internal File Ops-Footnote-11006058 +Node: Extension Samples1006326 +Node: Extension Sample File Functions1007850 +Node: Extension Sample Fnmatch1015418 +Node: Extension Sample Fork1016900 +Node: Extension Sample Inplace1018113 +Node: Extension Sample Ord1019788 +Node: Extension Sample Readdir1020624 +Ref: table-readdir-file-types1021480 +Node: Extension Sample Revout1022279 +Node: Extension Sample Rev2way1022870 +Node: Extension Sample Read write array1023611 +Node: Extension Sample Readfile1025490 +Node: Extension Sample API Tests1026590 +Node: Extension Sample Time1027115 +Node: gawkextlib1028430 +Node: Extension summary1031243 +Node: Extension Exercises1034936 +Node: Language History1035658 +Node: V7/SVR3.11037301 +Node: SVR41039621 +Node: POSIX1041063 +Node: BTL1042449 +Node: POSIX/GNU1043183 +Node: Feature History1048926 +Node: Common Extensions1062056 +Node: Ranges and Locales1063368 +Ref: Ranges and Locales-Footnote-11067985 +Ref: Ranges and Locales-Footnote-21068012 +Ref: Ranges and Locales-Footnote-31068246 +Node: Contributors1068467 +Node: History summary1073892 +Node: Installation1075261 +Node: Gawk Distribution1076212 +Node: Getting1076696 +Node: Extracting1077520 +Node: Distribution contents1079162 +Node: Unix Installation1084879 +Node: Quick Installation1085496 +Node: Additional Configuration Options1087938 +Node: Configuration Philosophy1089676 +Node: Non-Unix Installation1092027 +Node: PC Installation1092485 +Node: PC Binary Installation1093796 +Node: PC Compiling1095644 +Ref: PC Compiling-Footnote-11098643 +Node: PC Testing1098748 +Node: PC Using1099924 +Node: Cygwin1104082 +Node: MSYS1104891 +Node: VMS Installation1105405 +Node: VMS Compilation1106201 +Ref: VMS Compilation-Footnote-11107423 +Node: VMS Dynamic Extensions1107481 +Node: VMS Installation Details1108854 +Node: VMS Running1111106 +Node: VMS GNV1113940 +Node: VMS Old Gawk1114663 +Node: Bugs1115133 +Node: Other Versions1119137 +Node: Installation summary1125392 +Node: Notes1126448 +Node: Compatibility Mode1127313 +Node: Additions1128095 +Node: Accessing The Source1129020 +Node: Adding Code1130456 +Node: New Ports1136634 +Node: Derived Files1141115 +Ref: Derived Files-Footnote-11146196 +Ref: Derived Files-Footnote-21146230 +Ref: Derived Files-Footnote-31146826 +Node: Future Extensions1146940 +Node: Implementation Limitations1147546 +Node: Extension Design1148794 +Node: Old Extension Problems1149948 +Ref: Old Extension Problems-Footnote-11151465 +Node: Extension New Mechanism Goals1151522 +Ref: Extension New Mechanism Goals-Footnote-11154882 +Node: Extension Other Design Decisions1155071 +Node: Extension Future Growth1157177 +Node: Old Extension Mechanism1158013 +Node: Notes summary1159775 +Node: Basic Concepts1160961 +Node: Basic High Level1161642 +Ref: figure-general-flow1161914 +Ref: figure-process-flow1162513 +Ref: Basic High Level-Footnote-11165742 +Node: Basic Data Typing1165927 +Node: Glossary1169255 +Node: Copying1194407 +Node: GNU Free Documentation License1231963 +Node: Index1257099  End Tag Table -- cgit v1.2.3