home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / aix / 13072 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.8 KB

  1. Path: sparky!uunet!spool.mu.edu!umn.edu!noc.msc.net!uc.msc.edu!raistlin!shamash!ems!ateam.ems.cdc.com!bguest
  2. From: bguest@ateam.ems.cdc.com (Brandon Guest)
  3. Newsgroups: comp.unix.aix
  4. Subject: Creating unique IPC keys
  5. Message-ID: <31452@nntp_server.ems.cdc.com>
  6. Date: 6 Jan 93 22:18:19 GMT
  7. Sender: sys@ems.ems.cdc.com
  8. Organization: Empros Systems International, a division of Ceridian
  9. Lines: 35
  10. Nntp-Posting-Host: ateam.ems.cdc.com
  11.  
  12. A question has come up here at my site on the 'best' way to assign
  13. keys for use in IPCs.  Being somewhat ignorant on the subject, I
  14. suggested (along with others) that we use the ftok routine and some
  15. filenaming convention.  A concern was raised that this does not 
  16. always generate unique keys.  After consulting InfoDestroyer, the 
  17. only problem that was referenced was if you used different filenames
  18. which were linked to the same underlying file.  It also reinforced 
  19. the need to have some type of convention for use in assigning or
  20. generating keys for our applications.
  21.  
  22. My questions are as follows:
  23.  
  24. 1) In AIX are there any other instances other than the one cited
  25.    (commonly linked files) where I could generate identical keys
  26.    from unique file names?
  27.  
  28. 2) What is the possibility/probability that I might generate a key
  29.    in use by some other vendors application?  What can I do to 
  30.    guard against this?
  31.  
  32. 3) Info gave an example of one other method/convention for generating
  33.    keys.  Would others be willing to share their thoughts on this
  34.    topic?
  35.  
  36. Email replies prefered.  I will summarize and post if there is enough
  37. interest.
  38.  
  39. Thanks in advance!
  40.  
  41. Brandon
  42. -- 
  43. H. Brandon Guest                | bguest@ems.cdc.com
  44. Empros Systems International    | (A division of Something)
  45. 2300 Berkshire Lane North       | Voice (612) 553-4529
  46. Plymouth, MN 55441-3694         | Fax   (612) 553-4018
  47.