atombaby / lib_mysqludf_getpwuid Goto Github PK
View Code? Open in Web Editor NEWImplements getpwuid() in a MySQL UDF
License: GNU Lesser General Public License v2.1
Implements getpwuid() in a MySQL UDF
License: GNU Lesser General Public License v2.1
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 to "lib_mysqludf_getpwnam" to make it consistent with Unix documentation
Implement the getpwnam() function
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.