Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getpwnam and related functions #864

Closed
wants to merge 17 commits into from

Commits on Aug 19, 2019

  1. Add Users and Group related functions

    This was a collaborative work between Johannes Schilling
    <dario@deaktualisierung.org>, Fredrick Brennan <copypaste@kittens.ph>
    and myself.
    
    Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
    otavio committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    0846f15 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2019

  1. Initial rework of code; later will be squashed

    Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
    otavio committed Aug 20, 2019
    Configuration menu
    Copy the full SHA
    072c08d View commit details
    Browse the repository at this point in the history
  2. Reduce initialization

    Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
    otavio committed Aug 20, 2019
    Configuration menu
    Copy the full SHA
    16f3cf5 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2019

  1. Use MaybeUninit

    Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
    otavio committed Aug 21, 2019
    Configuration menu
    Copy the full SHA
    a8143fb View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2019

  1. Avoid using From<*mut libc::...> using reference

    Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
    otavio committed Aug 22, 2019
    Configuration menu
    Copy the full SHA
    de1ed63 View commit details
    Browse the repository at this point in the history
  2. Reduce code duplication

    Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
    otavio committed Aug 22, 2019
    Configuration menu
    Copy the full SHA
    51d39cf View commit details
    Browse the repository at this point in the history
  3. Handle ERANGE

    Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
    otavio committed Aug 22, 2019
    Configuration menu
    Copy the full SHA
    3b75439 View commit details
    Browse the repository at this point in the history
  4. Use Result<Option<User|Group>> so it is more ergonimic

    Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
    otavio committed Aug 22, 2019
    Configuration menu
    Copy the full SHA
    b3d7716 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2019

  1. Improve from_anything definition using where clause

    Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
    otavio committed Aug 28, 2019
    Configuration menu
    Copy the full SHA
    b361db0 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2019

  1. Add a generic reserve_buffer_size method

    Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
    otavio committed Sep 4, 2019
    Configuration menu
    Copy the full SHA
    76e33fe View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2019

  1. Rework generic reserve_buffer_size code

    Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
    otavio committed Sep 5, 2019
    Configuration menu
    Copy the full SHA
    5eda92f View commit details
    Browse the repository at this point in the history
  2. Use reserve_double_buffer_size<T> as method name

    Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
    otavio committed Sep 5, 2019
    Configuration menu
    Copy the full SHA
    d0b23f3 View commit details
    Browse the repository at this point in the history
  3. Fix unused code warnings

    Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
    otavio committed Sep 5, 2019
    Configuration menu
    Copy the full SHA
    56b0cd1 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2019

  1. Drop Default from User as this should be inquired

    Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
    otavio committed Sep 11, 2019
    Configuration menu
    Copy the full SHA
    cc9f81c View commit details
    Browse the repository at this point in the history
  2. Use 16384 as limit

    Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
    otavio committed Sep 11, 2019
    Configuration menu
    Copy the full SHA
    65ba0e5 View commit details
    Browse the repository at this point in the history
  3. Rework more reservation code to use reserve_double_buffer_size

    Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
    otavio committed Sep 11, 2019
    Configuration menu
    Copy the full SHA
    9111d12 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2019

  1. Rework getgroups() according to @asomers suggestions

    Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
    otavio committed Sep 21, 2019
    Configuration menu
    Copy the full SHA
    3fe2c01 View commit details
    Browse the repository at this point in the history