This file is indexed.

/usr/share/doc/libucommon-dev/a00142.html is in libucommon-doc 3.2.0-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>UCommon: ucc::shell Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&nbsp;Structure&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="a00214.html">ucc</a>::<a class="el" href="a00142.html">shell</a>
  </div>
</div>
<div class="contents">
<h1>ucc::shell Class Reference</h1><!-- doxytag: class="ucc::shell" --><!-- doxytag: inherits="ucc::mempager" -->
<p>A utility class for generic shell operations.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00204_source.html">shell.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for ucc::shell:</div>
<div class="dynsection">
<div class="center"><img src="a00533.png" border="0" usemap="#ucc_1_1shell_inherit__map" alt="Inheritance graph"/></div>
<map name="ucc_1_1shell_inherit__map" id="ucc_1_1shell_inherit__map">
<area shape="rect" id="node2" href="a00081.html" title="A managed private heap for small allocations." alt="" coords="5,83,128,112"/><area shape="rect" id="node4" href="a00080.html" title="An alternate memory pager private heap manager." alt="" coords="9,5,124,35"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for ucc::shell:</div>
<div class="dynsection">
<div class="center"><img src="a00534.png" border="0" usemap="#ucc_1_1shell_coll__map" alt="Collaboration graph"/></div>
<map name="ucc_1_1shell_coll__map" id="ucc_1_1shell_coll__map">
<area shape="rect" id="node2" href="a00081.html" title="A managed private heap for small allocations." alt="" coords="5,83,128,112"/><area shape="rect" id="node4" href="a00080.html" title="An alternate memory pager private heap manager." alt="" coords="9,5,124,35"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Data Structures</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00143.html">charopt</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Character option for shell parsing.  <a href="a00143.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00144.html">errormap</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A class to redefine error messages.  <a href="a00144.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00145.html">flagopt</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Flag option for shell parsing.  <a href="a00145.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00146.html">iobuf</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Process pipe with I/O buffering.  <a href="a00146.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00147.html">numericopt</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Numeric option for shell parsing.  <a href="a00147.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00148.html">Option</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A base class used to create parsable shell options.  <a href="a00148.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00149.html">pipeio</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A class to control a process that is piped.  <a href="a00149.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00150.html">stringopt</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Text option for shell parsing.  <a href="a00150.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#a6f7ee70144bc45af94f00a08d815b7a3">errmsg_t</a> { <br/>
&nbsp;&nbsp;<b>NOARGS</b> =  0, 
<b>NOARGUMENT</b>, 
<b>INVARGUMENT</b>, 
<b>BADOPTION</b>, 
<br/>
&nbsp;&nbsp;<b>OPTION_USED</b>, 
<b>BAD_VALUE</b>
<br/>
 }</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><p>Error table index. </p>
<br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8dc921cc22415fef18aa1f248a8ea5bd"></a><!-- doxytag: member="ucc::shell::io_t" ref="a8dc921cc22415fef18aa1f248a8ea5bd" args="" -->
typedef <a class="el" href="a00146.html">iobuf</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#a8dc921cc22415fef18aa1f248a8ea5bd">io_t</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Buffered i/o type for pipes and stdio. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a398f2242af2b40f5f95d2c3b7c46c631"></a><!-- doxytag: member="ucc::shell::pid_t" ref="a398f2242af2b40f5f95d2c3b7c46c631" args="" -->
typedef int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#a398f2242af2b40f5f95d2c3b7c46c631">pid_t</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Standard type of process id for shell class. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a76c5d4fe12e1b17d0709656d7ca3b66d"></a><!-- doxytag: member="ucc::shell::pipe_t" ref="a76c5d4fe12e1b17d0709656d7ca3b66d" args="" -->
typedef <a class="el" href="a00149.html">pipeio</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#a76c5d4fe12e1b17d0709656d7ca3b66d">pipe_t</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convenience low level pipe object type. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#af7525d05d6f9ea8f71492a42de9c528c">pmode_t</a> { <b>RD</b> =  IOBuffer::BUF_RD, 
<b>WR</b> =  IOBuffer::BUF_WR, 
<b>RDWR</b> =  IOBuffer::BUF_RDWR
 }</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><p>Pipe I/O mode. </p>
<br/></td></tr>
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#a3fc5e8b1af9aa42e4837dc13d13f0d95">argc</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get saved internal argc count for items.  <a href="#a3fc5e8b1af9aa42e4837dc13d13f0d95"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char **&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#a9d2cb2cb34f0790f24c1de29f96de347">argv</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get saved internal argv count for items in this shell object.  <a href="#a9d2cb2cb34f0790f24c1de29f96de347"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae21aec71e94d5ca6d73ce6ab69121012"></a><!-- doxytag: member="ucc::shell::argv0" ref="ae21aec71e94d5ca6d73ce6ab69121012" args="() const " -->
const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#ae21aec71e94d5ca6d73ce6ab69121012">argv0</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get program name (argv0). <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#abcb2408ff705e20b96f03a49e6855a7f">detach</a> (const char *path, char **argv, char **env=NULL, fd_t *stdio=NULL)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a detached process.  <a href="#abcb2408ff705e20b96f03a49e6855a7f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#a7cac396b2da5b97fba8d41b3d127cade">operator()</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return argc count.  <a href="#a7cac396b2da5b97fba8d41b3d127cade"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#a09c61f436014f8867fc1695094bffa56">operator[]</a> (unsigned offset)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return parser argv element.  <a href="#a09c61f436014f8867fc1695094bffa56"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#a532cf9dc35fdb7384215ee38a877a66f">parse</a> (int argc, char **argv)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse the command line arguments using the option table.  <a href="#a532cf9dc35fdb7384215ee38a877a66f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char **&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#a95d58c5bed6422a6160ec8c613b5e40f">parse</a> (const char *<a class="el" href="a00157.html">string</a>)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse a string as a series of arguments for use in exec calls.  <a href="#a95d58c5bed6422a6160ec8c613b5e40f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#a4f29282b21c9a25fef0e8d3b480b2cfa">shell</a> (size_t pagesize=0)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct an empty shell parser argument list.  <a href="#a4f29282b21c9a25fef0e8d3b480b2cfa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#ad27f7d5c0e433fcd1acb5d725efe89bd">shell</a> (int argc, char **argv, size_t pagesize=0)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct a shell argument list from existing arguments.  <a href="#ad27f7d5c0e433fcd1acb5d725efe89bd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#a3e70a2ea8af17c1afeb77fcc6d19005e">shell</a> (const char *<a class="el" href="a00157.html">string</a>, size_t pagesize=0)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct a shell argument list by parsing a simple command string.  <a href="#a3e70a2ea8af17c1afeb77fcc6d19005e"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#aeb8a093e7bc8c051e2eddbe08a5086b1">cancel</a> (<a class="el" href="a00149.html">shell::pipe_t</a> <a class="el" href="a00015.html">pointer</a>)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Cancel a child pipe.  <a href="#aeb8a093e7bc8c051e2eddbe08a5086b1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#ad49336f428e17ee7b8853908b0f2a74d">cancel</a> (<a class="el" href="a00142.html#a398f2242af2b40f5f95d2c3b7c46c631">shell::pid_t</a> pid)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Cancel a child process.  <a href="#ad49336f428e17ee7b8853908b0f2a74d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#aed97198400c3c09d647c3d6d43c5d1fd">count</a> (char **argv)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get argc count for an existing array.  <a href="#aed97198400c3c09d647c3d6d43c5d1fd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#a919730cabf3f701a1e62f3e0cbf2cb81">errexit</a> (int exitcode, const char *format=NULL,...)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Print error message and exit.  <a href="#a919730cabf3f701a1e62f3e0cbf2cb81"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#a72d585982147fae7d431fb1b6397690f">errmsg</a> (<a class="el" href="a00142.html#a6f7ee70144bc45af94f00a08d815b7a3">errmsg_t</a> id, const char *text)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This is used to set internationalized error messages for the shell parser.  <a href="#a72d585982147fae7d431fb1b6397690f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#a2a9f42af136fe3bff7e008f2b9fe230b">errmsg</a> (<a class="el" href="a00142.html#a6f7ee70144bc45af94f00a08d815b7a3">errmsg_t</a> id)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This can be used to get internationalized error messages.  <a href="#a2a9f42af136fe3bff7e008f2b9fe230b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a626393469ba4236af7ef1d046a8069eb"></a><!-- doxytag: member="ucc::shell::error" ref="a626393469ba4236af7ef1d046a8069eb" args="(void)" -->
static fd_t&nbsp;</td><td class="memItemRight" valign="bottom"><b>error</b> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac0f1f89ae32736d2685f49067bb4c2d0"></a><!-- doxytag: member="ucc::shell::help" ref="ac0f1f89ae32736d2685f49067bb4c2d0" args="(void)" -->
static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#ac0f1f89ae32736d2685f49067bb4c2d0">help</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Display shell options. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a50b64e1773e95237031167674e3bf82f"></a><!-- doxytag: member="ucc::shell::input" ref="a50b64e1773e95237031167674e3bf82f" args="(void)" -->
static fd_t&nbsp;</td><td class="memItemRight" valign="bottom"><b>input</b> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aebf370eb15a4b7b69ffaa9d5c98932f1"></a><!-- doxytag: member="ucc::shell::output" ref="aebf370eb15a4b7b69ffaa9d5c98932f1" args="(void)" -->
static fd_t&nbsp;</td><td class="memItemRight" valign="bottom"><b>output</b> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static char **&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#aba697ad85eb581f917b4139b395c33bf">parse</a> (<a class="el" href="a00142.html">shell</a> &amp;args, const char *<a class="el" href="a00157.html">string</a>)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse shell arguments directly into a shell object.  <a href="#aba697ad85eb581f917b4139b395c33bf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#a70ede3064d64f9f66e25c3538998bb31">printf</a> (<a class="el" href="a00149.html">pipe_t</a> pipe, const char *format,...)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Print to a pipe object.  <a href="#a70ede3064d64f9f66e25c3538998bb31"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#abcd397f645252399148b326e891deb0b">printf</a> (const char *format,...)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Print to standard output.  <a href="#abcd397f645252399148b326e891deb0b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af7bc6fba7f521c332632eb96c871c9df"></a><!-- doxytag: member="ucc::shell::read" ref="af7bc6fba7f521c332632eb96c871c9df" args="(pipe_t pipe, String &amp;string)" -->
static size_t&nbsp;</td><td class="memItemRight" valign="bottom"><b>read</b> (<a class="el" href="a00149.html">pipe_t</a> pipe, <a class="el" href="a00157.html">String</a> &amp;<a class="el" href="a00157.html">string</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7efbb8ac1d3e10806abfc6dc01aa2fa6"></a><!-- doxytag: member="ucc::shell::read" ref="a7efbb8ac1d3e10806abfc6dc01aa2fa6" args="(String &amp;string)" -->
static size_t&nbsp;</td><td class="memItemRight" valign="bottom"><b>read</b> (<a class="el" href="a00157.html">String</a> &amp;<a class="el" href="a00157.html">string</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#a56dcaebc40a51ba89bdeba6aa3c05d7e">readln</a> (<a class="el" href="a00149.html">pipe_t</a> pipe, char *buffer, size_t size)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Read a line from a pipe object.  <a href="#a56dcaebc40a51ba89bdeba6aa3c05d7e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae0d8d4d1e496fe8d181d693a18caf519"></a><!-- doxytag: member="ucc::shell::readln" ref="ae0d8d4d1e496fe8d181d693a18caf519" args="(char *address, size_t size)" -->
static size_t&nbsp;</td><td class="memItemRight" valign="bottom"><b>readln</b> (char *address, size_t size)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="a00149.html">shell::pipe_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#a5ba26f8c415afccc26fbcdefafd2d9d1">spawn</a> (const char *path, char **argv, <a class="el" href="a00142.html#af7525d05d6f9ea8f71492a42de9c528c">pmode_t</a> mode, size_t size=512, char **env=NULL)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Spawn a child pipe.  <a href="#a5ba26f8c415afccc26fbcdefafd2d9d1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="a00142.html#a398f2242af2b40f5f95d2c3b7c46c631">shell::pid_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#ab498bb8bb1cabf815bb44bf8a56b067a">spawn</a> (const char *path, char **argv, char **env=NULL, fd_t *stdio=NULL)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Spawn a child process.  <a href="#ab498bb8bb1cabf815bb44bf8a56b067a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#a46eb43e8f4e3ea9cc026261e8d37fb05">system</a> (const char *command, const char **env=NULL)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A shell system call.  <a href="#a46eb43e8f4e3ea9cc026261e8d37fb05"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#afbb7a9f622fcd7784d9dc8a71dc89d8e">systemf</a> (const char *format,...)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A shell system call that can be issued using a formatted string.  <a href="#afbb7a9f622fcd7784d9dc8a71dc89d8e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#a8fa2595ab873d353183f404e3013a603">wait</a> (<a class="el" href="a00149.html">shell::pipe_t</a> <a class="el" href="a00015.html">pointer</a>)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Wait for a child pipe to terminate.  <a href="#a8fa2595ab873d353183f404e3013a603"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html#a9b2588c1b614e56429183a5b1a2ae79f">wait</a> (<a class="el" href="a00142.html#a398f2242af2b40f5f95d2c3b7c46c631">shell::pid_t</a> pid)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Wait for a child process to terminate.  <a href="#a9b2588c1b614e56429183a5b1a2ae79f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a99057efc2e92e02caf81950c3aed092d"></a><!-- doxytag: member="ucc::shell::write" ref="a99057efc2e92e02caf81950c3aed092d" args="(pipe_t pipe, String &amp;string)" -->
static size_t&nbsp;</td><td class="memItemRight" valign="bottom"><b>write</b> (<a class="el" href="a00149.html">pipe_t</a> pipe, <a class="el" href="a00157.html">String</a> &amp;<a class="el" href="a00157.html">string</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a74561b95fffc4ecfa489486fee1f4645"></a><!-- doxytag: member="ucc::shell::write" ref="a74561b95fffc4ecfa489486fee1f4645" args="(String &amp;string)" -->
static size_t&nbsp;</td><td class="memItemRight" valign="bottom"><b>write</b> (<a class="el" href="a00157.html">String</a> &amp;<a class="el" href="a00157.html">string</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3d7dfdd5bba91c9d8af6e1b081612f34"></a><!-- doxytag: member="ucc::shell::writes" ref="a3d7dfdd5bba91c9d8af6e1b081612f34" args="(pipe_t pipe, const char *string)" -->
static size_t&nbsp;</td><td class="memItemRight" valign="bottom"><b>writes</b> (<a class="el" href="a00149.html">pipe_t</a> pipe, const char *<a class="el" href="a00157.html">string</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a04a25cf383d808ab9a660854eaed56ed"></a><!-- doxytag: member="ucc::shell::writes" ref="a04a25cf383d808ab9a660854eaed56ed" args="(const char *string)" -->
static size_t&nbsp;</td><td class="memItemRight" valign="bottom"><b>writes</b> (const char *<a class="el" href="a00157.html">string</a>)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>A utility class for generic shell operations. </p>
<p>This includes utilities to parse and expand arguments, and to call system shell services. This also includes a common shell class to parse and process command line arguments which are managed through a local heap. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>David Sugar &lt;<a href="mailto:dyfet@gnutelephony.org">dyfet@gnutelephony.org</a>&gt; </dd></dl>

<p>Definition at line <a class="el" href="a00204_source.html#l00058">58</a> of file <a class="el" href="a00204_source.html">shell.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a3e70a2ea8af17c1afeb77fcc6d19005e"></a><!-- doxytag: member="ucc::shell::shell" ref="a3e70a2ea8af17c1afeb77fcc6d19005e" args="(const char *string, size_t pagesize=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ucc::shell::shell </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>string</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>pagesize</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct a shell argument list by parsing a simple command string. </p>
<p>This seperates a string into a list of command line arguments which can be used with exec functions. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>to parse. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pagesize</em>&nbsp;</td><td>for local heap. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ad27f7d5c0e433fcd1acb5d725efe89bd"></a><!-- doxytag: member="ucc::shell::shell" ref="ad27f7d5c0e433fcd1acb5d725efe89bd" args="(int argc, char **argv, size_t pagesize=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ucc::shell::shell </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&nbsp;</td>
          <td class="paramname"> <em>argv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>pagesize</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct a shell argument list from existing arguments. </p>
<p>This copies and on some platforms expands the argument list originally passed to main. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>argc</em>&nbsp;</td><td>from main. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>argv</em>&nbsp;</td><td>from main. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pagesize</em>&nbsp;</td><td>for local heap. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a4f29282b21c9a25fef0e8d3b480b2cfa"></a><!-- doxytag: member="ucc::shell::shell" ref="a4f29282b21c9a25fef0e8d3b480b2cfa" args="(size_t pagesize=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ucc::shell::shell </td>
          <td>(</td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>pagesize</em> = <code>0</code></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct an empty shell parser argument list. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pagesize</em>&nbsp;</td><td>for local heap. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a3fc5e8b1af9aa42e4837dc13d13f0d95"></a><!-- doxytag: member="ucc::shell::argc" ref="a3fc5e8b1af9aa42e4837dc13d13f0d95" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned ucc::shell::argc </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get saved internal argc count for items. </p>
<p>This may be items that remain after shell expansion and options have been parsed. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>count of remaining arguments. </dd></dl>

<p>Definition at line <a class="el" href="a00204_source.html#l00571">571</a> of file <a class="el" href="a00204_source.html">shell.h</a>.</p>

</div>
</div>
<a class="anchor" id="a9d2cb2cb34f0790f24c1de29f96de347"></a><!-- doxytag: member="ucc::shell::argv" ref="a9d2cb2cb34f0790f24c1de29f96de347" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char** ucc::shell::argv </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get saved internal argv count for items in this shell object. </p>
<p>This may be filename items only that remain after shell expansion and options that have been parsed. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>list of remaining arguments. </dd></dl>

<p>Definition at line <a class="el" href="a00204_source.html#l00580">580</a> of file <a class="el" href="a00204_source.html">shell.h</a>.</p>

</div>
</div>
<a class="anchor" id="aeb8a093e7bc8c051e2eddbe08a5086b1"></a><!-- doxytag: member="ucc::shell::cancel" ref="aeb8a093e7bc8c051e2eddbe08a5086b1" args="(shell::pipe_t pointer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int ucc::shell::cancel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00149.html">shell::pipe_t</a>&nbsp;</td>
          <td class="paramname"> <em>pointer</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Cancel a child pipe. </p>
<p>If the pipe io handle is dynamic, it is deleted. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pointer</em>&nbsp;</td><td>to pipe of child process to cancel. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>exit code of process, -1 if fails or pid is invalid. </dd></dl>

</div>
</div>
<a class="anchor" id="ad49336f428e17ee7b8853908b0f2a74d"></a><!-- doxytag: member="ucc::shell::cancel" ref="ad49336f428e17ee7b8853908b0f2a74d" args="(shell::pid_t pid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int ucc::shell::cancel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00142.html#a398f2242af2b40f5f95d2c3b7c46c631">shell::pid_t</a>&nbsp;</td>
          <td class="paramname"> <em>pid</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Cancel a child process. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pid</em>&nbsp;</td><td>of child process to cancel. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>exit code of process, -1 if fails or pid is invalid. </dd></dl>

</div>
</div>
<a class="anchor" id="aed97198400c3c09d647c3d6d43c5d1fd"></a><!-- doxytag: member="ucc::shell::count" ref="aed97198400c3c09d647c3d6d43c5d1fd" args="(char **argv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static unsigned ucc::shell::count </td>
          <td>(</td>
          <td class="paramtype">char **&nbsp;</td>
          <td class="paramname"> <em>argv</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get argc count for an existing array. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>argv</em>&nbsp;</td><td>to count items in. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>argc count of array. </dd></dl>

</div>
</div>
<a class="anchor" id="abcb2408ff705e20b96f03a49e6855a7f"></a><!-- doxytag: member="ucc::shell::detach" ref="abcb2408ff705e20b96f03a49e6855a7f" args="(const char *path, char **argv, char **env=NULL, fd_t *stdio=NULL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ucc::shell::detach </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&nbsp;</td>
          <td class="paramname"> <em>argv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&nbsp;</td>
          <td class="paramname"> <em>env</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">fd_t *&nbsp;</td>
          <td class="paramname"> <em>stdio</em> = <code>NULL</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a detached process. </p>
<p>This creates a new child process that is completely detached from the current process. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>path</em>&nbsp;</td><td>to executable. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>argv</em>&nbsp;</td><td>list of command arguments for the child process. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>env</em>&nbsp;</td><td>of child process can be explicity set. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>stdio</em>&nbsp;</td><td>handles for stdin, stdout, and stderr. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 if success, -1 on error. </dd></dl>

</div>
</div>
<a class="anchor" id="a919730cabf3f701a1e62f3e0cbf2cb81"></a><!-- doxytag: member="ucc::shell::errexit" ref="a919730cabf3f701a1e62f3e0cbf2cb81" args="(int exitcode, const char *format=NULL,...)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void ucc::shell::errexit </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>exitcode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>format</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&nbsp;</td>
          <td class="paramname"> <em>...</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Print error message and exit. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>exitcode</em>&nbsp;</td><td>to return to parent process. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>format</em>&nbsp;</td><td>string to use. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a72d585982147fae7d431fb1b6397690f"></a><!-- doxytag: member="ucc::shell::errmsg" ref="a72d585982147fae7d431fb1b6397690f" args="(errmsg_t id, const char *text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void ucc::shell::errmsg </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00142.html#a6f7ee70144bc45af94f00a08d815b7a3">errmsg_t</a>&nbsp;</td>
          <td class="paramname"> <em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>text</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This is used to set internationalized error messages for the shell parser. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>of message to set. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>for error message. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2a9f42af136fe3bff7e008f2b9fe230b"></a><!-- doxytag: member="ucc::shell::errmsg" ref="a2a9f42af136fe3bff7e008f2b9fe230b" args="(errmsg_t id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static const char* ucc::shell::errmsg </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00142.html#a6f7ee70144bc45af94f00a08d815b7a3">errmsg_t</a>&nbsp;</td>
          <td class="paramname"> <em>id</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This can be used to get internationalized error messages. </p>
<p>The internal text for shell parser errors are passed through here. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>of error message to use. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>published text of error message. </dd></dl>

</div>
</div>
<a class="anchor" id="a7cac396b2da5b97fba8d41b3d127cade"></a><!-- doxytag: member="ucc::shell::operator()" ref="a7cac396b2da5b97fba8d41b3d127cade" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned ucc::shell::operator() </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return argc count. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>argc count. </dd></dl>

<p>Definition at line <a class="el" href="a00204_source.html#l00661">661</a> of file <a class="el" href="a00204_source.html">shell.h</a>.</p>

</div>
</div>
<a class="anchor" id="a09c61f436014f8867fc1695094bffa56"></a><!-- doxytag: member="ucc::shell::operator[]" ref="a09c61f436014f8867fc1695094bffa56" args="(unsigned offset)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* ucc::shell::operator[] </td>
          <td>(</td>
          <td class="paramtype">unsigned&nbsp;</td>
          <td class="paramname"> <em>offset</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return parser argv element. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>offset</em>&nbsp;</td><td>into array. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>argument string. </dd></dl>

<p>Definition at line <a class="el" href="a00204_source.html#l00588">588</a> of file <a class="el" href="a00204_source.html">shell.h</a>.</p>

</div>
</div>
<a class="anchor" id="aba697ad85eb581f917b4139b395c33bf"></a><!-- doxytag: member="ucc::shell::parse" ref="aba697ad85eb581f917b4139b395c33bf" args="(shell &amp;args, const char *string)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static char** ucc::shell::parse </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00142.html">shell</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>args</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>string</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parse shell arguments directly into a shell object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>args</em>&nbsp;</td><td>table. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>to parse. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>argument array. </dd></dl>

<p>Definition at line <a class="el" href="a00204_source.html#l00511">511</a> of file <a class="el" href="a00204_source.html">shell.h</a>.</p>

</div>
</div>
<a class="anchor" id="a532cf9dc35fdb7384215ee38a877a66f"></a><!-- doxytag: member="ucc::shell::parse" ref="a532cf9dc35fdb7384215ee38a877a66f" args="(int argc, char **argv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ucc::shell::parse </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&nbsp;</td>
          <td class="paramname"> <em>argv</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parse the command line arguments using the option table. </p>
<p>File arguments will be expanded for wildcards on some platforms. The argv will be set to the first file argument after all options are parsed. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>argc</em>&nbsp;</td><td>from main. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>argv</em>&nbsp;</td><td>from main. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a95d58c5bed6422a6160ec8c613b5e40f"></a><!-- doxytag: member="ucc::shell::parse" ref="a95d58c5bed6422a6160ec8c613b5e40f" args="(const char *string)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char** ucc::shell::parse </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>string</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parse a string as a series of arguments for use in exec calls. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>to parse. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>argument array. </dd></dl>

</div>
</div>
<a class="anchor" id="a70ede3064d64f9f66e25c3538998bb31"></a><!-- doxytag: member="ucc::shell::printf" ref="a70ede3064d64f9f66e25c3538998bb31" args="(pipe_t pipe, const char *format,...)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static size_t ucc::shell::printf </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00149.html">pipe_t</a>&nbsp;</td>
          <td class="paramname"> <em>pipe</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&nbsp;</td>
          <td class="paramname"> <em>...</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Print to a pipe object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pipe</em>&nbsp;</td><td>to write to. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>format</em>&nbsp;</td><td>string to use. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>number of bytes written. </dd></dl>

</div>
</div>
<a class="anchor" id="abcd397f645252399148b326e891deb0b"></a><!-- doxytag: member="ucc::shell::printf" ref="abcd397f645252399148b326e891deb0b" args="(const char *format,...)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static size_t ucc::shell::printf </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&nbsp;</td>
          <td class="paramname"> <em>...</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Print to standard output. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>format</em>&nbsp;</td><td>string to use. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a56dcaebc40a51ba89bdeba6aa3c05d7e"></a><!-- doxytag: member="ucc::shell::readln" ref="a56dcaebc40a51ba89bdeba6aa3c05d7e" args="(pipe_t pipe, char *buffer, size_t size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static size_t ucc::shell::readln </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00149.html">pipe_t</a>&nbsp;</td>
          <td class="paramname"> <em>pipe</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>size</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Read a line from a pipe object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pipe</em>&nbsp;</td><td>to read from. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>buffer</em>&nbsp;</td><td>to save into. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>size</em>&nbsp;</td><td>of buffer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>number of bytes read. </dd></dl>

</div>
</div>
<a class="anchor" id="a5ba26f8c415afccc26fbcdefafd2d9d1"></a><!-- doxytag: member="ucc::shell::spawn" ref="a5ba26f8c415afccc26fbcdefafd2d9d1" args="(const char *path, char **argv, pmode_t mode, size_t size=512, char **env=NULL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="a00149.html">shell::pipe_t</a> ucc::shell::spawn </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&nbsp;</td>
          <td class="paramname"> <em>argv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00142.html#af7525d05d6f9ea8f71492a42de9c528c">pmode_t</a>&nbsp;</td>
          <td class="paramname"> <em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>size</em> = <code>512</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&nbsp;</td>
          <td class="paramname"> <em>env</em> = <code>NULL</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Spawn a child pipe. </p>
<p>If the executable path is a pure filename, then the $PATH will be used to find it. The argv array may be created from a string with the shell string parser. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>path</em>&nbsp;</td><td>to executable. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>argv</em>&nbsp;</td><td>list of command arguments for the child process. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>mode</em>&nbsp;</td><td>of pipe, rd only, wr only, or rdwr. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>size</em>&nbsp;</td><td>of pipe buffer. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>env</em>&nbsp;</td><td>of child process can be explicitly set. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>pipe object or NULL on failure. </dd></dl>

</div>
</div>
<a class="anchor" id="ab498bb8bb1cabf815bb44bf8a56b067a"></a><!-- doxytag: member="ucc::shell::spawn" ref="ab498bb8bb1cabf815bb44bf8a56b067a" args="(const char *path, char **argv, char **env=NULL, fd_t *stdio=NULL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="a00142.html#a398f2242af2b40f5f95d2c3b7c46c631">shell::pid_t</a> ucc::shell::spawn </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&nbsp;</td>
          <td class="paramname"> <em>argv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&nbsp;</td>
          <td class="paramname"> <em>env</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">fd_t *&nbsp;</td>
          <td class="paramname"> <em>stdio</em> = <code>NULL</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Spawn a child process. </p>
<p>This creates a new child process. If the executable path is a pure filename, then the $PATH will be used to find it. The argv array may be created from a string with the shell string parser. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>path</em>&nbsp;</td><td>to executable. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>argv</em>&nbsp;</td><td>list of command arguments for the child process. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>env</em>&nbsp;</td><td>of child process can be explicitly set. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>stdio</em>&nbsp;</td><td>handles for stdin, stdout, and stderr. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>process id of child or INVALID_PID_VALUE if fails. </dd></dl>

</div>
</div>
<a class="anchor" id="a46eb43e8f4e3ea9cc026261e8d37fb05"></a><!-- doxytag: member="ucc::shell::system" ref="a46eb43e8f4e3ea9cc026261e8d37fb05" args="(const char *command, const char **env=NULL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int ucc::shell::system </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>command</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char **&nbsp;</td>
          <td class="paramname"> <em>env</em> = <code>NULL</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A shell system call. </p>
<p>This uses the native system shell to invoke the command. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>command</em>&nbsp;</td><td>string.. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>env</em>&nbsp;</td><td>array to optionally use. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>error code of child process. </dd></dl>

</div>
</div>
<a class="anchor" id="afbb7a9f622fcd7784d9dc8a71dc89d8e"></a><!-- doxytag: member="ucc::shell::systemf" ref="afbb7a9f622fcd7784d9dc8a71dc89d8e" args="(const char *format,...)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int ucc::shell::systemf </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&nbsp;</td>
          <td class="paramname"> <em>...</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A shell system call that can be issued using a formatted string. </p>
<p>This uses the native system shell to invoke the command. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>format</em>&nbsp;</td><td>of/command string. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>error code of child process. </dd></dl>

</div>
</div>
<a class="anchor" id="a8fa2595ab873d353183f404e3013a603"></a><!-- doxytag: member="ucc::shell::wait" ref="a8fa2595ab873d353183f404e3013a603" args="(shell::pipe_t pointer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int ucc::shell::wait </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00149.html">shell::pipe_t</a>&nbsp;</td>
          <td class="paramname"> <em>pointer</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Wait for a child pipe to terminate. </p>
<p>This operation blocks. If the pipe io handle is dynamic, it is deleted. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pointer</em>&nbsp;</td><td>to pipe of child process to wait for. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>exit code of process, -1 if fails or pid is invalid. </dd></dl>

</div>
</div>
<a class="anchor" id="a9b2588c1b614e56429183a5b1a2ae79f"></a><!-- doxytag: member="ucc::shell::wait" ref="a9b2588c1b614e56429183a5b1a2ae79f" args="(shell::pid_t pid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int ucc::shell::wait </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00142.html#a398f2242af2b40f5f95d2c3b7c46c631">shell::pid_t</a>&nbsp;</td>
          <td class="paramname"> <em>pid</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Wait for a child process to terminate. </p>
<p>This operation blocks. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pid</em>&nbsp;</td><td>of process to wait for. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>exit code of process, -1 if fails or pid is invalid. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>ucommon/<a class="el" href="a00204_source.html">shell.h</a></li>
</ul>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Tue Jul 6 08:22:46 2010 for UCommon by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>