-h in EMXOPT: what does it mean

Hardy Griech (rgriech@ibm.net)
Sun, 22 Sep 1996 12:57:19 +0200

Hello world!

I have a problem understanding the meaning of the '-h' option of
EMXOPT. Here my examples:

--------------------------------------------------------------------------------
[D:\emx\test]nfiles -v
20 OS/2 file handles
_nfiles=40
3 5 6 8 9 10 11 12 13 14 15 16 17 18 19
15 handles
3 5 6 8 9 10 11 12 13 14 15 16 17 18 19
15 streams

[D:\emx\test]set emxopt
EMXOPT=-h20 -c -n

Rem: You will get the same, if EMXOPT is not defined....

--------------------------------------------------------------------------------
[D:\emx\test]nfiles -v
200 OS/2 file handles
_nfiles=40
3 5 6 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
35 handles
3 5 6 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
35 streams

[D:\emx\test]set emxopt
EMXOPT=-h200 -c -n
--------------------------------------------------------------------------------

I know, that the number of open files is limited during compile time
of EMX.DLL (standard: 40). But nevertheless:

- what is the difference between 'OS/2 file handles' and 'handles'?

- what is the actual limitation on OS/2 side?

- how are handles and streams related? (I suppose this is
implementation dependent)

- who is using handles/streams 4 & 7?

- and for sockets: if the program opens a socket, is it requesting a
handle too?

- to my feeling the standard setting for the handles (-h20) is too
low. Shouldn't it be increased?

-- 
Hardy Griech, Kurt-Schumacher-Str. 25/1, D-72762 Reutlingen