getegid.c 172 B

123456789
  1. #include "lib.h"
  2. PUBLIC gid getegid()
  3. {
  4. int k;
  5. k = callm1(MM, GETGID, 0, 0, 0, NIL_PTR, NIL_PTR, NIL_PTR);
  6. if (k < 0) return ( (gid) k);
  7. return( (gid) M.m2_i1);
  8. }