home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.26 / text0030.txt < prev    next >
Encoding:
Text File  |  1992-02-21  |  3.5 KB  |  67 lines

  1. Submitted-by: jfh@rpp386.cactus.org (John F Haugh II)
  2.  
  3. In article <1991Nov29.205021.1463@uunet.uu.net> gwyn@smoke.brl.mil (Doug Gwyn) writes:
  4. >No, read what I said again.
  5.  
  6. I did read it again - and the question remains, what if I do (for some
  7. God awful reason) specify ISTRIP to my terminal handler?  In an
  8. environment where that can't POSSIBLY be a useful action, how should
  9. the system react?
  10.  
  11. >How?  I assure you that ISTRIP (or its equivalent) is not getting
  12. >mysteriously turned on on any of the systems I use; my terminal uses
  13. >an 8-bit binary packet protocol and I have never seen it broken by a
  14. >sudden shift into ISTRIP mode.  If your system has such a bad bug,
  15. >you should get the bug fixed rather than rail against the availability
  16. >of an often-useful feature.
  17.  
  18. This has nothing to do with SYSTEM supplied software.  I can control
  19. the system software to never ever turn that feature on - that's the
  20. easy part.  The hard part is doing the same for the end user.  My
  21. claim (read this real carefully) is that the USER is being given a
  22. means of shooting themselves in the foot which serves no useful
  23. purpose.  For a system which requires 8-bit data, ISTRIP is never
  24. an "often-useful feature".  It is a completely meaningless and
  25. destructive data transformation.  It isn't benign like XTABS, or
  26. XCASE or even the Model 37 carriage delays (which are completely
  27. harmless to all but the impatient).  Transforming 0x81 to 0x01 is
  28. WRONG and can't be made "right" somehow.  If you wish to reply,
  29. please address that point.
  30.  
  31. >Basically, it was one of numerous tty handler capabilities provided by
  32. >the standard implementation on which the 1003.1 specification was based;
  33. >there are several of these (ioctl bits) that aren't widely useful; if
  34. >they don't meet your needs then you should feel free to not use them.
  35. >Generally, the interface bit rate, framing, parity, etc. should not be
  36. >altered by applications; they should be left exactly as established by
  37. >the system agent that established the tty port connection.
  38.  
  39. And what do you do when they DO somehow get changed?  The standard
  40. says I am free to ignore speed, character size and parity changes
  41. if the hardware doesn't support them.  ISTRIP, which is really a
  42. function best described in terms of character size and parity bits,
  43. doesn't fall under this same privision.  It is completely obvious
  44. to me that the SYSTEM shouldn't contain any of these mistakes, but
  45. I want to know what leaway POSIX left to insure the USER doesn't
  46. commit the same blunder.  Setting an 8-bit interface to 5 bits has
  47. as escape route - ignore the change.  Same for parity changes and
  48. baud rate.  The $64M question is, why not ISTRIP?
  49.  
  50. You are reading this as though I am the programmer, not the implementor
  51. and as though the programmer (my customer) is going to smile after
  52. pointing a gun at his foot, pulling the trigger, and discovering the
  53. hole that I warned him about.  My intention is that you view this as
  54. a "Quality of Implementation" sort of issue - consider if the "privilege"
  55. required by link() for directories is "the Earth is still spinning on
  56. its axis".  How much sympathy would a user who creates a directory mess
  57. have for you, the implementor, after being bitten by this "feature"?
  58. Would you buy a POSIX-compliant system which behaved this way?
  59. -- 
  60. John F. Haugh II        | Every 56 days.   | UUCP: ...!cs.utexas.edu!rpp386!jfh
  61. Ma Bell: (512) 255-8251 | Give Blood, often.    | Domain: jfh@rpp386.cactus.org
  62. " ... expectation is the mother of disappointment."
  63.         -- Brad Konopik
  64.  
  65. Volume-Number: Volume 26, Number 31
  66.  
  67.