Browse Source

Plan 9 from Bell Labs 2004-03-26

David du Colombier 17 years ago
parent
commit
034b086301
6 changed files with 233 additions and 43 deletions
  1. 5 4
      dist/replica/plan9.db
  2. 5 0
      dist/replica/plan9.log
  3. 163 35
      sys/lib/kbmap/ascii
  4. 45 0
      sys/lib/kbmap/ee
  5. 11 1
      sys/man/2/errstr
  6. 4 3
      sys/man/5/error

+ 5 - 4
dist/replica/plan9.db

@@ -3866,9 +3866,10 @@ sys/lib/ghostscript/zeroline.ps - 664 sys sys 1032057362 2643
 sys/lib/grap.defines - 664 sys sys 944956052 375
 sys/lib/httpd.rewrite - 664 sys sys 954262980 825
 sys/lib/kbmap - 20000000775 sys sys 1079535430 0
-sys/lib/kbmap/ascii - 664 sys sys 1079475826 18944
+sys/lib/kbmap/ascii - 664 sys sys 1080219252 23680
 sys/lib/kbmap/azerty - 644 sys sys 1079473812 735
 sys/lib/kbmap/bgmap - 664 sys sys 1079475826 561
+sys/lib/kbmap/ee - 644 sys sys 1080222237 429
 sys/lib/kbmap/es - 664 sys sys 1079535430 1360
 sys/lib/kbmap/fi - 664 sys sys 1079617317 369
 sys/lib/kbmap/uk - 664 sys sys 1079473812 55
@@ -4809,7 +4810,7 @@ sys/man/2/dup - 664 sys sys 950593489 827
 sys/man/2/elgamal - 664 sys sys 1027629189 2152
 sys/man/2/encode - 664 sys sys 1071289168 1572
 sys/man/2/encrypt - 664 sys sys 951229670 1885
-sys/man/2/errstr - 664 sys sys 1015091519 1518
+sys/man/2/errstr - 664 sys sys 1080218022 1705
 sys/man/2/event - 664 sys sys 1015091520 7512
 sys/man/2/exec - 664 sys sys 984709630 3453
 sys/man/2/exits - 664 sys sys 944959695 1652
@@ -4997,7 +4998,7 @@ sys/man/5/INDEX - 664 sys sys 1041971550 193
 sys/man/5/INDEX.html - 664 sys sys 1019918564 1409
 sys/man/5/attach - 664 sys sys 1017337812 2857
 sys/man/5/clunk - 664 sys sys 1015024830 701
-sys/man/5/error - 664 sys sys 1015024830 505
+sys/man/5/error - 664 sys sys 1080218022 513
 sys/man/5/flush - 664 sys sys 1063855755 2309
 sys/man/5/open - 664 sys sys 1015024830 4739
 sys/man/5/read - 664 sys sys 1015024830 2358
@@ -7433,7 +7434,7 @@ sys/src/cmd/disk/kfs/print.c - 664 sys sys 944960882 3573
 sys/src/cmd/disk/kfs/sub.c - 664 sys sys 1022008488 10804
 sys/src/cmd/disk/kfs/uid.c - 664 sys sys 1071335904 6791
 sys/src/cmd/disk/kfscmd.c - 664 sys sys 1015009135 1109
-sys/src/cmd/disk/mbr.c - 664 sys sys 1063855285 4325
+sys/src/cmd/disk/mbr.c - 664 sys sys 1080218150 4325
 sys/src/cmd/disk/mkext.c - 664 sys sys 1072729311 5727
 sys/src/cmd/disk/mkfile - 664 sys sys 1022385851 500
 sys/src/cmd/disk/mkfs.c - 664 sys sys 1032059493 14298

+ 5 - 0
dist/replica/plan9.log

@@ -14759,3 +14759,8 @@
 1080176508 0 c sys/log/mail - 10000000666 sys sys 1080174824 629
 1080178308 0 c sys/log/mail - 10000000666 sys sys 1080177666 724
 1080180108 0 c sys/man/2/mach - 664 sys sys 1080179298 7995
+1080219716 0 c sys/lib/kbmap/ascii - 664 sys sys 1080219252 23680
+1080219716 1 c sys/man/2/errstr - 664 sys sys 1080218022 1705
+1080219716 2 c sys/man/5/error - 664 sys sys 1080218022 513
+1080219716 3 c sys/src/cmd/disk/mbr.c - 664 sys sys 1080218150 4325
+1080223318 0 a sys/lib/kbmap/ee - 644 sys sys 1080222237 429

+ 163 - 35
sys/lib/kbmap/ascii

@@ -27,7 +27,7 @@
           0          26          91 
           0          27          93 
           0          28          10 
-          0          29         226 
+          0          29       63586 
           0          30          97 
           0          31         115 
           0          32         100 
@@ -40,7 +40,7 @@
           0          39          59 
           0          40          39 
           0          41          96 
-          0          42         224 
+          0          42       63584 
           0          43          92 
           0          44         122 
           0          45         120 
@@ -52,11 +52,11 @@
           0          51          44 
           0          52          46 
           0          53          47 
-          0          54         224 
+          0          54       63584 
           0          55          42 
-          0          56         227 
+          0          56       63587 
           0          57          32 
-          0          58         226 
+          0          58       63586 
           0          59       61441 
           0          60       61442 
           0          61       61443 
@@ -67,7 +67,7 @@
           0          66       61448 
           0          67       61449 
           0          68       61450 
-          0          69         229 
+          0          69       63589 
           0          70       61461 
           0          71          55 
           0          72          56 
@@ -119,7 +119,7 @@
           0         118           0 
           0         119           0 
           0         120           0 
-          0         121         128 
+          0         121       63488 
           0         122           0 
           0         123       61454 
           0         124           0 
@@ -155,7 +155,7 @@
           1          26         123 
           1          27         125 
           1          28          10 
-          1          29         226 
+          1          29       63586 
           1          30          65 
           1          31          83 
           1          32          68 
@@ -168,7 +168,7 @@
           1          39          58 
           1          40          34 
           1          41         126 
-          1          42         224 
+          1          42       63584 
           1          43         124 
           1          44          90 
           1          45          88 
@@ -180,11 +180,11 @@
           1          51          60 
           1          52          62 
           1          53          63 
-          1          54         224 
+          1          54       63584 
           1          55          42 
-          1          56         227 
+          1          56       63587 
           1          57          32 
-          1          58         226 
+          1          58       63586 
           1          59       61441 
           1          60       61442 
           1          61       61443 
@@ -195,7 +195,7 @@
           1          66       61448 
           1          67       61449 
           1          68       61450 
-          1          69         229 
+          1          69       63589 
           1          70       61461 
           1          71          55 
           1          72          56 
@@ -283,7 +283,7 @@
           2          26           0 
           2          27           0 
           2          28          10 
-          2          29         226 
+          2          29       63586 
           2          30           0 
           2          31           0 
           2          32           0 
@@ -296,7 +296,7 @@
           2          39           0 
           2          40           0 
           2          41           0 
-          2          42         224 
+          2          42       63584 
           2          43           0 
           2          44           0 
           2          45           0 
@@ -310,7 +310,7 @@
           2          53          47 
           2          54           0 
           2          55       61456 
-          2          56         231 
+          2          56       63591 
           2          57           0 
           2          58           0 
           2          59           0 
@@ -324,7 +324,7 @@
           2          67           0 
           2          68           0 
           2          69           0 
-          2          70         225 
+          2          70       63585 
           2          71       61453 
           2          72       61454 
           2          73       61455 
@@ -334,7 +334,7 @@
           2          77       61458 
           2          78           0 
           2          79       61464 
-          2          80         128 
+          2          80       63488 
           2          81       61459 
           2          82       61460 
           2          83         127 
@@ -410,8 +410,8 @@
           3          25           0 
           3          26           0 
           3          27           0 
-          3          28           0 
-          3          29           0 
+          3          28          10 
+          3          29       63586 
           3          30           0 
           3          31           0 
           3          32           0 
@@ -424,7 +424,7 @@
           3          39           0 
           3          40           0 
           3          41           0 
-          3          42           0 
+          3          42       63584 
           3          43           0 
           3          44           0 
           3          45           0 
@@ -435,10 +435,10 @@
           3          50           0 
           3          51           0 
           3          52           0 
-          3          53           0 
+          3          53          47 
           3          54           0 
-          3          55           0 
-          3          56           0 
+          3          55       61456 
+          3          56       63591 
           3          57           0 
           3          58           0 
           3          59           0 
@@ -452,20 +452,20 @@
           3          67           0 
           3          68           0 
           3          69           0 
-          3          70           0 
-          3          71           0 
-          3          72           0 
-          3          73           0 
+          3          70       63585 
+          3          71       61453 
+          3          72       61454 
+          3          73       61455 
           3          74           0 
-          3          75           0 
+          3          75       61457 
           3          76           0 
-          3          77           0 
+          3          77       61458 
           3          78           0 
-          3          79           0 
-          3          80           0 
-          3          81           0 
-          3          82           0 
-          3          83           0 
+          3          79       61464 
+          3          80       63488 
+          3          81       61459 
+          3          82       61460 
+          3          83         127 
           3          84           0 
           3          85           0 
           3          86           0 
@@ -510,3 +510,131 @@
           3         125           0 
           3         126           0 
           3         127           0 
+          4           0           0 
+          4           1          27 
+          4           2          17 
+          4           3          18 
+          4           4          19 
+          4           5          20 
+          4           6          21 
+          4           7          22 
+          4           8          23 
+          4           9          24 
+          4          10          25 
+          4          11          16 
+          4          12          13 
+          4          13          29 
+          4          14           8 
+          4          15           9 
+          4          16          17 
+          4          17          23 
+          4          18           5 
+          4          19          18 
+          4          20          20 
+          4          21          25 
+          4          22          21 
+          4          23           9 
+          4          24          15 
+          4          25          16 
+          4          26          27 
+          4          27          29 
+          4          28          10 
+          4          29       63586 
+          4          30           1 
+          4          31          19 
+          4          32           4 
+          4          33           6 
+          4          34           7 
+          4          35           8 
+          4          36          10 
+          4          37          11 
+          4          38          12 
+          4          39          27 
+          4          40           7 
+          4          41           0 
+          4          42       63584 
+          4          43          28 
+          4          44          26 
+          4          45          24 
+          4          46           3 
+          4          47          22 
+          4          48           2 
+          4          49          14 
+          4          50          13 
+          4          51          12 
+          4          52          14 
+          4          53          15 
+          4          54       63584 
+          4          55          10 
+          4          56       63587 
+          4          57           0 
+          4          58       63586 
+          4          59           5 
+          4          60           6 
+          4          61           7 
+          4          62           4 
+          4          63           5 
+          4          64           6 
+          4          65           7 
+          4          66          12 
+          4          67          13 
+          4          68          14 
+          4          69           5 
+          4          70           6 
+          4          71          23 
+          4          72          24 
+          4          73          25 
+          4          74          13 
+          4          75          20 
+          4          76          21 
+          4          77          22 
+          4          78          11 
+          4          79          17 
+          4          80          18 
+          4          81          19 
+          4          82          16 
+          4          83          14 
+          4          84           0 
+          4          85           0 
+          4          86           0 
+          4          87          15 
+          4          88          12 
+          4          89           0 
+          4          90           0 
+          4          91           0 
+          4          92           0 
+          4          93           0 
+          4          94           0 
+          4          95           0 
+          4          96           0 
+          4          97           0 
+          4          98           0 
+          4          99           0 
+          4         100           0 
+          4         101           0 
+          4         102           0 
+          4         103           0 
+          4         104           0 
+          4         105           0 
+          4         106           0 
+          4         107           0 
+          4         108           0 
+          4         109           0 
+          4         110           0 
+          4         111           0 
+          4         112           0 
+          4         113           0 
+          4         114           0 
+          4         115           0 
+          4         116           0 
+          4         117           0 
+          4         118           0 
+          4         119           0 
+          4         120           0 
+          4         121           7 
+          4         122           0 
+          4         123           8 
+          4         124           0 
+          4         125           0 
+          4         126           0 
+          4         127           0 

+ 45 - 0
sys/lib/kbmap/ee

@@ -0,0 +1,45 @@
+0 12 '+
+0 13 '´
+0 26 'ü
+0 27 'õ
+0 39 'ö
+0 40 'ä
+0 41 '^
+0 43 ''
+0 51 ',
+0 52 '.
+0 53 '-
+0 86 '<
+1 2 '!
+1 3 '"
+1 4 '#
+1 5 '¤
+1 6 '%
+1 7 '&
+1 8 '/
+1 9 '(
+1 10 ')
+1 11 '=
+1 12 '?
+1 13 '`
+1 26 'Ü
+1 27 'Õ
+1 39 'Ö
+1 40 'Ä
+1 41 '~
+1 43 '*
+1 51 ';
+1 52 ':
+1 53 '_
+1 86 '>
+3 3 '@
+3 4 '£
+3 5 '$
+3 8 '{
+3 9 '[
+3 10 ']
+3 11 '}
+3 12 '\
+3 27 '§
+3 43 '½
+3 86 '|

+ 11 - 1
sys/man/2/errstr

@@ -16,7 +16,7 @@ void rerrstr(char *err, uint nerr)
 void werrstr(char *fmt, ...)
 .SH DESCRIPTION
 When a system call fails it returns \-1 and
-records a string describing the error in a per-process buffer.
+records a null terminated string describing the error in a per-process buffer.
 .I Errstr
 swaps the contents of that buffer with the contents of the array
 .IR err .
@@ -35,6 +35,16 @@ but the exchange property provides a mechanism for
 libraries to set the return value for the next call to
 .IR errstr .
 .PP
+The per-process buffer is
+.B ERRMAX
+bytes long.  Any error string provided by the user will
+be truncated at 
+.B ERRMAX-1
+bytes.
+.B ERRMAX
+is defined in
+.BR <libc.h> .
+.PP
 If no system call has generated an error since the last call to
 .I errstr
 with an empty string,

+ 4 - 3
sys/man/5/error

@@ -20,8 +20,9 @@ It replaces the corresponding reply message
 that would accompany a successful call; its tag is that
 of the failing request.
 .PP
-By convention, clients may truncate error messages after 255 bytes,
-defined as
+By convention, clients may truncate error messages after
+.B ERRMAX-1
+bytes;
 .B ERRMAX
-in
+is defined in
 .BR <libc.h> .