This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nis/3975] New: initgroups_dyn


I am trying to implement my own initgroups_dyn function to plug into glibc. 
However, I am not sure how to implement this properly.  Looking at other code
(_nss_compat_initgroups_dyn), I am guessing that I need to realloc (or
extend_alloca) groupsp if size - start is not big enough to hold my groups.  Is
that correct?  Do I need to change both size and start?  If I call extend_alloca
will it be backwards compatable as far back as glibc 2.3.3?

If initgroups_dyn functions are suppose to reallocate memory then that should be
documented at the internal_getgrouplist or getgrouplist functions so that
implementers know what to pass.  This is confusing because getgrent_r is similar
to this function but implemented completely different.

Thank you for your help!

-- 
           Summary: initgroups_dyn
           Product: glibc
           Version: 2.4
            Status: NEW
          Severity: normal
          Priority: P1
         Component: nis
        AssignedTo: kukuk at suse dot de
        ReportedBy: cscholes0 at yahoo dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=3975

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]