home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / c / 13144 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  1.5 KB

  1. Xref: sparky comp.lang.c:13144 comp.unix.programmer:4528 comp.sys.sun.misc:4058
  2. Newsgroups: comp.lang.c,comp.unix.programmer,comp.sys.sun.misc
  3. Path: sparky!uunet!ferkel.ucsb.edu!piggy!chupchup
  4. From: chupchup@ferkel.ucsb.edu (Robert Earl)
  5. Subject: Re: SunOS 4.1.2: Increasing per process file pointers
  6. Message-ID: <chupchup.715507712@piggy>
  7. Followup-To: comp.unix.programmer,comp.sys.sun.misc
  8. Organization: (EVIL!)
  9. References: <1992Sep1.214828.3927@europa.asd.contel.com> <fpwyg5h@rpi.edu>
  10. Date: Thu, 3 Sep 1992 08:08:32 GMT
  11. Lines: 22
  12.  
  13. fitzgb@mml0.meche.rpi.edu (Brian Fitzgerald) writes:
  14.  
  15. | Hugh Warren writes:
  16. | >How can you increase the number of open file pointers allowable
  17. | >per process under SunOS 4.1.2?  I'm hitting a limit of 60 using
  18. | >fopen() right now.  Thanks for any help...
  19.  
  20. | To increase your descriptor limit to 256:
  21. | ... [rlimit solutions deleted] ...
  22.  
  23. Unfortunately, since the poster was using fopen() and SunOS, he's out
  24. of luck past fd #127, since the Sun library was compiled with signed
  25. chars and only a "char" allocated for the fileno field of a FILE
  26. object, thus it may return a pointer just fine, but will crap out on
  27. any I/O done on the (converted and sign-extended to int) value of the
  28. file descriptor.   Oh well.
  29.  
  30. -- 
  31. "If you've got a pig that likes jumping fences, | robert earl
  32. you have to make its fence a lot higher all at  | rearl@ucsd.edu
  33. once -- if you do it by increments, all you're  | rearl@piggy.ucsb.edu
  34. doing is training a jumping pig." -Henry Spencer|
  35.