home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / alt / hackers / 1637 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.6 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!destroyer!cs.ubc.ca!maximus.cs.ubc.ca!not-for-mail
  2. From: hassan@cs.ubc.ca (Moustafa Hassan)
  3. Newsgroups: alt.hackers
  4. Subject: Magic constants
  5. Date: 10 Nov 1992 01:10:19 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Lines: 26
  8. Approved: yes
  9. Message-ID: <1dnu9rINNt2k@maximus.cs.ubc.ca>
  10. NNTP-Posting-Host: maximus.cs.ubc.ca
  11. Summary: Help!
  12.  
  13. I'm trying to port code (not sure which unix system it was originally
  14. for) to a SPARC 2 (System V).  The code I have uses the <sys/quota.h>
  15. which I had to change to <ufs/quota.h> on the sparcs, but I'm still
  16. getting unknown constant errors.  The constants that are causing 
  17. problems are:
  18.  
  19. Q_SETUID
  20. Q_DOWARN
  21. UT_NAMESIZE
  22.  
  23. The first two are used as the first argument to quota().  To make my
  24. problems worse, I can't find any manual entries for the quota() C 
  25. function call.  UT_NAMESIZE is merely used as a constant for defining
  26. the size of an array and incrementing a pointer.  If you have any clue
  27. what these values should be, please let me know.  Thanks.
  28.  
  29. ObTinyHack: Sending anonymous mail to one of my professors to complain about
  30.             the unethical conduct of some TA's (ya, I'm an undergrad).
  31.             Alas, an ethically pleasing hack... 8^)
  32.  
  33. Cheers,
  34. ********************************************************************
  35. * Moustafa Hassan          |                                       *
  36. * hassan@cs.ubc.ca         |  Political correctness is a euphemism *  
  37. * TEL/FAX: (604) 535-2826  |  for intellectual stagnation.         *
  38. ********************************************************************
  39.