This file is indexed.

/usr/share/slsh/local-packages/help/pvm.hlp is in slang-pvm 0.1.5-12.1.

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
pvm_send_obj

 SYNOPSIS
  Pack and send data objects

 USAGE
  pvm_send (Int_Type tid, Int_Type msgid, object [,...])

 DESCRIPTION
  This function is much like `pvm_psend' except that it
  sends additional type information with each object. Using
  this function paired with `pvm_recv_obj' simplifies
  sending aggregate data objects such as structures and removes
  the need for the receiver to specify datatypes explicitly.

 EXAMPLE

  To send a S-Lang structure to another process:

  variable obj = struct {name, x, y, data};
  ...
  pvm_send_obj (tid, msgid, obj);


 SEE ALSO
  pvm_recv_obj, pvm_psend, pvm_unpack

--------------------------------------------------------------

pvm_recv_obj

 SYNOPSIS
  Receive data objects from `pvm_send_obj'

 USAGE
  obj = pvm_recv_obj ()

 DESCRIPTION
  This function receives an object sent by `pvm_send_obj'
  and returns a slang object of the same type that was sent.
  It simplifies sending aggregate data types such as structures.

 EXAMPLE

  To receive a S-Lang object sent by another process
  via `pvm_send_obj':

  obj = pvm_recv_obj ();


 SEE ALSO
  pvm_send_obj, pvm_psend, pvm_unpack

--------------------------------------------------------------

pvm_config

 SYNOPSIS
  Returns information about the present virtual machine configuration

 USAGE
  Struct_Type = pvm_config ()

 DESCRIPTION
  See the PVM documentation.

 EXAMPLE

  h = pvm_config ();


 SEE ALSO
  pvm_kill

--------------------------------------------------------------

pvm_kill

 SYNOPSIS
  Terminates a specified PVM process

 USAGE
  pvm_kill (Int_Type tid)

 DESCRIPTION
  See the PVM documentation.

 EXAMPLE

  pvm_kill (tid);


 SEE ALSO
  pvm_config

--------------------------------------------------------------

pvm_initsend

 SYNOPSIS
  Clear default send buffer and specify message encoding

 USAGE
  bufid = pvm_initsend (Int_Type encoding)

 DESCRIPTION
  See the PVM documentation.

 EXAMPLE

  bufid = pvm_initsend (PvmDataDefault);


 SEE ALSO
  pvm_send

--------------------------------------------------------------

pvm_pack

 SYNOPSIS
  Pack the active message buffer with arrays of prescribed data type

 USAGE
  pvm_pack (object)

 DESCRIPTION
  See the PVM documentation.

 EXAMPLE

  pvm_pack (x);


 SEE ALSO
  pvm_unpack

--------------------------------------------------------------

pvm_send

 SYNOPSIS
  Immediately sends the data in the active message buffer

 USAGE
  pvm_send (Int_Type, tid, Int_Type msgid)

 DESCRIPTION
  See the PVM documentation.

 EXAMPLE

  pvm_send (tid, msgid);


 SEE ALSO
  pvm_recv

--------------------------------------------------------------

pvm_recv

 SYNOPSIS
  Receive a message

 USAGE
  bufid = pvm_recv (Int_Type tid, Int_Type msgtag)

 DESCRIPTION
  See the PVM documentation.

 EXAMPLE

   bufid = pvm_recv (tid, msgtag);


 SEE ALSO
  pvm_send

--------------------------------------------------------------

pvm_unpack

 SYNOPSIS
  Unpack the active message buffer into arrays of prescribed data type

 USAGE
  item = pvm_unpack (Int_Type type_id, Int_Type num)

 DESCRIPTION
  See the PVM documentation.

 EXAMPLE

  item = pvm_unpack (type, num);


 SEE ALSO
  pvm_pack

--------------------------------------------------------------

pvm_psend

 SYNOPSIS
  Pack and send data

 USAGE
  pvm_psend (Int_Type tid, Int_Type msgid, object [,...])

 DESCRIPTION
  See the PVM documentation.

 EXAMPLE

  pvm_psend (tid, msgid, data);


 NOTES
  Unlike the `pvm_send' function in the PVM library, this function
  does not operate asynchronously.

 SEE ALSO
  pvm_send, pvm_initsend, pvm_pack, pvm_recv

--------------------------------------------------------------

pvm_addhosts

 SYNOPSIS
  Add one or more hosts to the PVM server

 USAGE
  Int_Type[] = pvm_addhosts (String_Type[] hosts)

 DESCRIPTION
  See the PVM documentation.

 EXAMPLE

  tids = pvm_addhosts (["vex", "verus", "aluche"]);


 SEE ALSO
  pvm_addhosts, pvm_config, pvm_delhosts

--------------------------------------------------------------

pvm_delhosts

 SYNOPSIS
  Delete one or more hosts from the PVM server

 USAGE
  pvm_delhosts (String_Type[] hosts)

 DESCRIPTION
  See the PVM documentation.

 EXAMPLE

  pvm_delhosts (["vex", "verus"]);


 SEE ALSO
  pvm_delhosts, pvm_config, pvm_kill

--------------------------------------------------------------

pvm_ms_kill

 SYNOPSIS
  Send a "task complete" message to a specific task

 USAGE
  pvm_ms_kill (Int_Type mtid, Int_Type stid)

 DESCRIPTION
  This function may be used to send a "task complete" message
  to a specific PVM process.  The first argument gives
  the task identifier of the destination process.  The second
  argument gives the task identifier of the sending process.

 EXAMPLE

  tid = pvm_mytid ();
  ptid = pvm_parent ();
  pvm_ms_kill (ptid, tid);


 SEE ALSO
  pvm_ms_slave_exit

--------------------------------------------------------------

pvm_ms_set_num_processes_per_host

 SYNOPSIS
  Set the maximum number of simultaneous processes per host

 USAGE
  pvm_ms_set_num_processes_per_host (Int_Type num_processes)

 DESCRIPTION
  This function is used to set the maximum number of simultaneous
  processes per host.  The master process normally runs as many
  simultaneous processes as possible;  by setting the maximum
  number of simultaneous processes per host, one can limit the
  processing load per host.

 EXAMPLE

  pvm_ms_set_num_processes_per_host (2);


 SEE ALSO
  pvm_ms_run_master

--------------------------------------------------------------

pvm_ms_set_debug

 SYNOPSIS
  Set the debug flag

 USAGE
  pvm_ms_set_debug (Int_Type debug)

 DESCRIPTION
  This function may be used to control whether debugging
  information is printed out during execution.  Debugging
  information is printed if the flag is non-zero.

 EXAMPLE

  pvm_ms_set_debug (1);


 SEE ALSO
  pvm_ms_set_num_processes_per_host

--------------------------------------------------------------

pvm_ms_slave_exit

 SYNOPSIS
  Cause a normal exit of a slave process from the PVM

 USAGE
  pvm_ms_slave_exit (Int_Type exit_status)

 DESCRIPTION
  To exit the PVM, a slave process calls this function to
  send its exit status to the parent process and to notify
  the local <code>pvmd</code> of its exit.

 EXAMPLE

    pvm_ms_slave_exit (exit_status);


 SEE ALSO
  pvm_ms_run_slave

--------------------------------------------------------------

pvm_ms_run_slave

 SYNOPSIS
  Execute the slave's assigned task in a subshell, then exit the PVM

 USAGE
  pvm_ms_run_slave (String_Type argv[])

 DESCRIPTION
   A slave process calls this function to run a command in a
   subshell and then exit the PVM.  The command line is
   constructed by concatenting the elements of an array of
   strings, `argv', delimited by spaces. The integer return
   value from the `system' call provides the exit status
   for the slave process.  After sending this value to its
   parent process, the slave notifies the PVM and exits.

 EXAMPLE

   pvm_ms_run_slave (argv);


 SEE ALSO
  pvm_ms_slave_exit

--------------------------------------------------------------

pvm_ms_run_master

 SYNOPSIS
  Submit a list of tasks to the PVM

 USAGE
  Struct_Type exit_status[] = pvm_ms_run_master (String_Type pgms[])

 DESCRIPTION
  This function is used to submit a managed list of tasks to
  the PVM.  The task list manager will try to ensure that all
  tasks are completed and, upon completion of the task list,
  will return an array of structures containing information
  about the results of each task.

 EXAMPLE
  To run the Unix command <it>ps xu</it> on a number of different
  hosts:

    variable slave_argv = Array_Type[n];
    slave_argv[*] = ["ps", "axu"];
    exit_status = pvm_ms_run_master (slave_argv);


 SEE ALSO
  pvm_ms_add_new_slave

--------------------------------------------------------------

pvm_ms_add_new_slave

 SYNOPSIS
  Add a new slave to the managed list

 USAGE
  pvm_ms_add_new_slave (String_Type argv[])

 DESCRIPTION
 This function may be used to add a new slave process
 while pvm_ms_run_master() is running, usually as a result
 of handling a message.

 EXAMPLE

    pvm_ms_add_new_slave ("vex");


 SEE ALSO
  pvm_ms_run_master

--------------------------------------------------------------

pvm_ms_set_message_callback

 SYNOPSIS
  Set a callback for handling user-defined messages

 USAGE
  pvm_ms_set_message_callback (Ref_Type func)

 DESCRIPTION
 This function may be used to handle user-defined messages
 be sent from slave processes back to the master process.

 EXAMPLE


 static define handle_user_message (msgid, tid)
 {
    switch (msgid)
      {
       case USER_SLAVE_RESULT:
           recv_results (tid);
           start_task (tid);
      }
      {
       case USER_SLAVE_READY:
           start_task (tid);
      }
      {
         % default:
           return 0;
      }
    return 1;
 }

 pvm_ms_set_message_callback (&handle_user_message);



 SEE ALSO
  pvm_ms_set_idle_host_callback, pvm_ms_set_slave_exit_failed_callback

--------------------------------------------------------------

pvm_ms_set_slave_exit_failed_callback

 SYNOPSIS
  Set a hook to be called when a slave exits on failure

 USAGE
  pvm_ms_set_slave_exit_failed_callback (Ref_Type func)

 DESCRIPTION

 This function may be used to have the master process perform a
 specified action whenever a slave process exits without having
 completed its assigned task.

 This is primarily useful in the context where each command-line
 submitted to `pvm_ms_run_master' represents a task which
 itself communicates with the PVM, performing potentially many
 additional tasks which are independently managed by the
 process that called `pvm_ms_run_master'.

 For example, consider a case in which initialization of slave
 processes is very expensive but, once initialized, a single
 slave process may perform many tasks.  In this case, the
 master process may spawn a small number of slaves and then
 repeatedly send each slave a task to perform.  Each slave
 performs its task, sends the result to the master, and then
 waits for another task. The managing process must keep track
 of which tasks have been completed and which remain. If a
 slave exits while working on a task, it is important that the
 manager process be notified that that task in progress was not
 completed and that it should be reassigned to another slave.

 EXAMPLE


   static define slave_exit_failed_callback (msgid, tid)
   {
      variable t = find_task_tid (tid);

      if (orelse {t == NULL} {t.status == FINISHED})
        return;

      % mark the unfinished task "READY" so that it will
      % be assigned to another slave

      t.tid = -1;
      t.status = READY;
   }

   pvm_ms_set_slave_exit_failed_callback (&slave_exit_failed_callback);


 SEE ALSO
  pvm_ms_set_message_callback

--------------------------------------------------------------

pvm_ms_set_slave_spawned_callback

 SYNOPSIS
  Set the slave spawned callback hook

 USAGE
  pvm_ms_set_slave_spawned_callback (Ref_Type func)

 DESCRIPTION

 This function may be used to specify a callback function to be
 called whenever a slave process has been spawned.  The callback
 function will be called with three arguments: the slave task
 id, the name of the host running the slave process, and an
 array of strings representing the argument list passed to the
 slave.

 EXAMPLE


   static define slave_spawned_callback (tid, host, argv)
   {
      vmessage ("Slave running %s spawned on %s with task-id %d",
                argv[0], host, tid);
   }
   pvm_ms_set_slave_spawned_callback (&slave_spawned_callback);


 SEE ALSO
  pvm_ms_set_message_callback

--------------------------------------------------------------

pvm_ms_set_idle_host_callback

 SYNOPSIS
  Set the idle host hook

 USAGE
  pvm_ms_set_idle_host_callback (Ref_Type func)

 DESCRIPTION
 This function may be used to specify a callback function to be
 called whenever a new host is added to the virtual machine.

 EXAMPLE


 static define idle_host_callback ()
 {
    loop (Max_Num_Processes_Per_Host)
      {
         variable slave_argv = build_slave_argv (0);
         pvm_ms_add_new_slave (slave_argv);
      }
 }
 pvm_ms_set_idle_host_callback (&idle_host_callback);


 SEE ALSO
  pvm_ms_set_message_callback

--------------------------------------------------------------

pvm_ms_set_hosts

 SYNOPSIS
  Set list of hosts to use

 USAGE
  pvm_ms_set_hosts (String_Type hosts[])

 DESCRIPTION
  This function may be used to specify which hosts will be used
  to perform distributed calculations.  The default is to use
  all hosts in the current PVM.

 EXAMPLE

      pvm_ms_set_hosts (["vex", "pirx", "aluche"]);


 SEE ALSO
  pvm_addhosts

--------------------------------------------------------------