Giter Site home page Giter Site logo

lib_mysqludf_getpwuid's People

Contributors

atombaby avatar

Stargazers

 avatar

lib_mysqludf_getpwuid's Issues

function only returns "name" portion of passwd structure

Would be nice for this to return complete data from the passwd structure:

       struct passwd {
           char   *pw_name;       /* username */
           char   *pw_passwd;     /* user password */
           uid_t   pw_uid;        /* user ID */
           gid_t   pw_gid;        /* group ID */
           char   *pw_gecos;      /* user information */
           char   *pw_dir;        /* home directory */
           char   *pw_shell;      /* shell program */
       };

I think the only way it would work would be to have multiple functions:

lib_mysqludf_getpwuid_name( 101 )
lib_mysqludf_getpwuid_uid( 101 )
lib_mysqludf_getpwuid_gid( 101 )
lib_mysqludf_getpwuid_gecos( 101 )

etc. etc.

I had considered two arguments, vis:

    lib_mysqludf_getpwuid( 'name', 101 )

But I dont' think that will work because we have to structure the function differently based on return type (name is string, uid is int, etc.)

rename function

Rename to "lib_mysqludf_getpwnam" to make it consistent with Unix documentation

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.