home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / misc / 3001 < prev    next >
Encoding:
Text File  |  1992-07-23  |  2.0 KB  |  54 lines

  1. Xref: sparky comp.unix.misc:3001 comp.unix.xenix.sco:2558 comp.unix.programmer:3867 comp.unix.questions:9342
  2. Newsgroups: comp.unix.misc,comp.unix.xenix.sco,comp.unix.programmer,comp.unix.questions
  3. Path: sparky!uunet!gatech!cc.gatech.edu!news
  4. From: goldsman@cc.gatech.edu (Michael G. Goldsman)
  5. Subject: Question about Attaching to Shared Memory Segs--shmat
  6. Message-ID: <1992Jul23.171524.18330@cc.gatech.edu>
  7. Sender: news@cc.gatech.edu
  8. Reply-To: goldsman@cc.gatech.edu
  9. Organization: Georgia Institute of Technology, College of Computing
  10. Date: Thu, 23 Jul 1992 17:15:24 GMT
  11. Lines: 41
  12.  
  13. I was wondering if the system imposed limit of the max
  14. # of shared memory segments a process may attach at one
  15. time, may be changed at all...
  16.  
  17.  
  18. I am running SCO Open Desktop on a 486, and
  19. am using the operations: shmget, shmctl, shmat etc...
  20. from the shm library.
  21.  
  22.  
  23. In shm.h, I noticed this stucture:
  24.  
  25.  
  26. struct  shminfo {
  27.         int     shmmax,         /* max shared memory segment size */
  28.                 shmmin,         /* min shared memory segment size */
  29.                 shmmni,         /* # of shared memory identifiers */
  30.                 shmseg,         /* max attached shared memory     */
  31.                                 /* segments per process           */
  32.                 shmall;         /* max total shared memory system */
  33.                                 /* wide (in clicks)               */
  34. };
  35.  
  36.  
  37.  
  38. I would just love to be able to access shmseg and up the number
  39. by a few....   Am I out of luck?
  40. Who uses this structure? I can seem to find a ref to it anywhere...
  41.  
  42.  
  43. -Mike
  44. ------------------------------------------------------------------------
  45. Mike Goldsman              __o          o__      o__      o__      o__    
  46. 36004 Ga Tech Station    _ \<,_        _.>/ _   _.>/ _   _.>/ _   _.>/ _   
  47. Atlanta, Georgia 30332  (_)/ (_)      (_) \(_) (_) \(_) (_) \(_) (_) \(_)
  48. begin 600 mikeskey.pub
  49. MF8X ZAA:*@AG;VQD<VUA;MX#Y\YJH.AUL%\6;SRX-DN*(L=DZ6B)L]FK,"W=
  50. M=M*D*SE]!5CAMC<7T Y5ZMO CV_L/*A+P!L"CE>F4E6K1P.[)Z%6I)@$M_I<
  51. M2-L>:-]*PXH 70_R)Z^HD:Q!1LA;$DL6\I3SJZ/%TB& )A]%NL$2UI.R;@'W
  52. *;AEF;KPY+P4 $0_R
  53. end
  54.