_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c172500 | validation | // Sets environment variables and a null logger. | {
"resource": ""
} | ||
c172501 | validation | // StartLogger initializes the log file. | {
"resource": ""
} | ||
c172502 | validation | // openDBFile opens a file. | {
"resource": ""
} | ||
c172503 | validation | // backup does a backup of a file. | {
"resource": ""
} | ||
c172504 | validation | // New returns the interface to handle the package manager. | {
"resource": ""
} | ||
c172505 | validation | // RegisterCrypt registers a function that returns a new instance of the given
// crypt function. This is intended to be called from the init function in
// packages that implement crypt functions. | {
"resource": ""
} | ||
c172506 | validation | // New returns a new crypter. | {
"resource": ""
} | ||
c172507 | validation | // Text returns the most recents tokens generated by a call to Scan as a newly
// allocated string holding its bytes. | {
"resource": ""
} | ||
c172508 | validation | // Exec executes a command setting both standard input, output and error. | {
"resource": ""
} | ||
c172509 | validation | // ExecSudo executes a command under "sudo". | {
"resource": ""
} | ||
c172510 | validation | // nextUID returns the next free user id to use, according to whether it is a
// system's user. | {
"resource": ""
} | ||
c172511 | validation | // nextGUID returns the next free group id to use, according to whether it is a
// system's group. | {
"resource": ""
} | ||
c172512 | validation | // NextSystemUID returns the next free system user id to use. | {
"resource": ""
} | ||
c172513 | validation | // NextSystemGID returns the next free system group id to use. | {
"resource": ""
} | ||
c172514 | validation | // NextUID returns the next free user id to use. | {
"resource": ""
} | ||
c172515 | validation | // NextGID returns the next free group id to use. | {
"resource": ""
} | ||
c172516 | validation | // NewShadow returns a structure Shadow with fields "Min", "Max" and "Warn"
// got from the system configuration, and enabling the features of password aging. | {
"resource": ""
} | ||
c172517 | validation | // parseShadow parses the row of a shadowed password. | {
"resource": ""
} | ||
c172518 | validation | // LookupShadow looks for the entry for the given user name. | {
"resource": ""
} | ||
c172519 | validation | // == Editing
//
// Add adds a new shadowed user.
// If the key is not nil, generates a hashed password.
//
// It is created a backup before of modify the original file. | {
"resource": ""
} | ||
c172520 | validation | // Copy copies file in source to file in dest preserving the mode attributes. | {
"resource": ""
} | ||
c172521 | validation | // Create creates a new file with b bytes. | {
"resource": ""
} | ||
c172522 | validation | // loadConfig loads user configuration.
// It has to be loaded before of edit some file. | {
"resource": ""
} | ||
c172523 | validation | // NewEdit opens a file to edit; it is created a backup. | {
"resource": ""
} | ||
c172524 | validation | // AppendString is like Append, but writes the contents of string s rather than
// an array of bytes. | {
"resource": ""
} | ||
c172525 | validation | // Comment inserts the comment character in lines that mach any regular expression
// in reLine. | {
"resource": ""
} | ||
c172526 | validation | // CommentOut removes the comment character of lines that mach any regular expression
// in reLine. | {
"resource": ""
} | ||
c172527 | validation | // CommentM inserts the comment character in lines that mach any regular expression
// in reLine, in the named file. | {
"resource": ""
} | ||
c172528 | validation | // CommentOutM removes the comment character of lines that mach any regular expression
// in reLine, in the named file. | {
"resource": ""
} | ||
c172529 | validation | // ReplaceN replaces a number of regular expressions mathed in r for the named
// file. | {
"resource": ""
} | ||
c172530 | validation | // ReplaceAtLine replaces all regular expressions mathed in r for the named
// file, if the line is matched at the first. | {
"resource": ""
} | ||
c172531 | validation | // ReplaceAtLineN replaces a number of regular expressions mathed in r for the
// named file, if the line is matched at the first. | {
"resource": ""
} | ||
c172532 | validation | // Sets the settings files of the caller. | {
"resource": ""
} | ||
c172533 | validation | // getSettingsForUid returns the settings files of the given user id. | {
"resource": ""
} | ||
c172534 | validation | // == Set variables
//
// _Set sets the value named by the key in the given filename. | {
"resource": ""
} | ||
c172535 | validation | // _MSet sets multiple values named by the keys in the given filename. | {
"resource": ""
} | ||
c172536 | validation | // == Set session-wide variables
// Set sets the value of the environment variable named by the key that
// affects the current user.
// It returns an error, if any. | {
"resource": ""
} | ||
c172537 | validation | // MSet sets multiple values of the environment variables named by the keys
// that affects the current user.
// It returns an error, if any. | {
"resource": ""
} | ||
c172538 | validation | // SetForUid sets the value of the environment variable named by the key that
// affects a particular user.
// It returns an error, if any. | {
"resource": ""
} | ||
c172539 | validation | // MSetForUid sets multiple values of the environment variables named by the
// keys that affects a particular user.
// It returns an error, if any. | {
"resource": ""
} | ||
c172540 | validation | // == Set system-wide variables
// Setsys sets the value of the environment variable named by the key that
// affects the system as a whole. You must be Root.
// It returns an error, if any. | {
"resource": ""
} | ||
c172541 | validation | // MSetsys sets multiple values of the environment variables named by the keys
// that affects the system as a whole. You must be Root.
// It returns an error, if any. | {
"resource": ""
} | ||
c172542 | validation | // SetsysForUid sets the value of the environment variable named by the key that
// affects the system as a whole. You must be Root.
// It returns an error, if any. | {
"resource": ""
} | ||
c172543 | validation | // MSetsysForUid sets multiple values of the environment variables named by the
// keys that affects the system as a whole. You must be Root.
// It returns an error, if any. | {
"resource": ""
} | ||
c172544 | validation | // NewGShadow returns a new GShadow. | {
"resource": ""
} | ||
c172545 | validation | // parseGShadow parses the row of a group shadow. | {
"resource": ""
} | ||
c172546 | validation | // == Lookup
//
// lookUp parses the shadowed group line searching a value into the field.
// Returns nil if it isn't found. | {
"resource": ""
} | ||
c172547 | validation | // LookupGShadow looks up a shadowed group by name. | {
"resource": ""
} | ||
c172548 | validation | // == Editing
//
// Add adds a new shadowed group.
// If the key is not nil, generates a hashed password.
//
// It is created a backup before of modify the original file. | {
"resource": ""
} | ||
c172549 | validation | // NewUser returns a new User with both fields "Dir" and "Shell" got from
// the system configuration. | {
"resource": ""
} | ||
c172550 | validation | // NewSystemUser returns a new system user. | {
"resource": ""
} | ||
c172551 | validation | // IsOfSystem indicates whether it is a system user. | {
"resource": ""
} | ||
c172552 | validation | // parseUser parses the row of an user. | {
"resource": ""
} | ||
c172553 | validation | // == Lookup
//
// lookUp parses the user line searching a value into the field.
// Returns nil if is not found. | {
"resource": ""
} | ||
c172554 | validation | // LookupUID looks up an user by user ID. | {
"resource": ""
} | ||
c172555 | validation | // LookupUser looks up an user by name. | {
"resource": ""
} | ||
c172556 | validation | // GetUsername returns the user name from the password database for the actual
// process.
// It panics whther there is an error at searching the UID. | {
"resource": ""
} | ||
c172557 | validation | // GetUsernameFromEnv returns the user name from the environment variable
// for the actual process. | {
"resource": ""
} | ||
c172558 | validation | // == Editing
//
// AddUser adds an user to both user and shadow files. | {
"resource": ""
} | ||
c172559 | validation | // AddSystemUser adds a system user to both user and shadow files. | {
"resource": ""
} | ||
c172560 | validation | // Add adds a new user.
// Whether UID is < 0, it will choose the first id available in the range set
// in the system configuration. | {
"resource": ""
} | ||
c172561 | validation | // DelUser removes an user from the system. | {
"resource": ""
} | ||
c172562 | validation | // ParseFile creates a new Config and parses the file configuration from the
// named file. | {
"resource": ""
} | ||
c172563 | validation | // Print outputs the keys and values parsed. | {
"resource": ""
} | ||
c172564 | validation | // Getbool returns the boolean value for a given key. | {
"resource": ""
} | ||
c172565 | validation | // Getint returns the integer value for a given key. | {
"resource": ""
} | ||
c172566 | validation | // Getuint returns the unsigned integer value for a given key. | {
"resource": ""
} | ||
c172567 | validation | // Getfloat returns the float value for a given key. | {
"resource": ""
} | ||
c172568 | validation | // Run executes external commands just like RunWithMatch, but does not return
// the boolean `match`. | {
"resource": ""
} | ||
c172569 | validation | // NewInfo returns a info describing the named file. | {
"resource": ""
} | ||
c172570 | validation | // OwnerHas reports whether the owner has all given permissions. | {
"resource": ""
} | ||
c172571 | validation | // GroupHas reports whether the group has all given permissions. | {
"resource": ""
} | ||
c172572 | validation | // OthersHave reports whether the others have all given permissions. | {
"resource": ""
} | ||
c172573 | validation | // OwnerHas reports whether the named file has all given permissions for the owner. | {
"resource": ""
} | ||
c172574 | validation | // lookupCrypter returns the first crypt function found in shadowed passwd file. | {
"resource": ""
} | ||
c172575 | validation | // Passwd sets a hashed passwd for the actual user.
// The passwd must be supplied in clear-text. | {
"resource": ""
} | ||
c172576 | validation | // Passwd sets a hashed passwd for the actual group.
// The passwd must be supplied in clear-text. | {
"resource": ""
} | ||
c172577 | validation | // == Change passwd
// ChPasswd updates passwd.
// The passwd must be supplied in clear-text. | {
"resource": ""
} | ||
c172578 | validation | // ChGPasswd updates group passwd.
// The passwd must be supplied in clear-text. | {
"resource": ""
} | ||
c172579 | validation | // == Locking
// LockUser locks the passwd of the given user. | {
"resource": ""
} | ||
c172580 | validation | // AddGroup returns a new Group. | {
"resource": ""
} | ||
c172581 | validation | // NewSystemGroup adds a system group. | {
"resource": ""
} | ||
c172582 | validation | // IsOfSystem indicates whether it is a system group. | {
"resource": ""
} | ||
c172583 | validation | // parseGroup parses the row of a group. | {
"resource": ""
} | ||
c172584 | validation | // == Lookup
//
// lookUp parses the group line searching a value into the field.
// Returns nil if it is not found. | {
"resource": ""
} | ||
c172585 | validation | // LookupGID looks up a group by group ID. | {
"resource": ""
} | ||
c172586 | validation | // LookupGroup looks up a group by name. | {
"resource": ""
} | ||
c172587 | validation | // Getgroups returns a list of the numeric ids of groups that the caller
// belongs to. | {
"resource": ""
} | ||
c172588 | validation | // GetgroupsName returns a list of the groups that the caller belongs to. | {
"resource": ""
} | ||
c172589 | validation | // == Editing
//
// AddGroup adds a group. | {
"resource": ""
} | ||
c172590 | validation | // AddSystemGroup adds a system group. | {
"resource": ""
} | ||
c172591 | validation | // Add adds a new group.
// Whether GID is < 0, it will choose the first id available in the range set
// in the system configuration. | {
"resource": ""
} | ||
c172592 | validation | // DelGroup removes a group from the system. | {
"resource": ""
} | ||
c172593 | validation | // AddUsersToGroup adds the members to a group. | {
"resource": ""
} | ||
c172594 | validation | // DelUsersInGroup removes the specific members from a group. | {
"resource": ""
} | ||
c172595 | validation | // == Utility
//
// checkGroup indicates if a value is into a group. | {
"resource": ""
} | ||
c172596 | validation | // Detect returns the Linux distribution. | {
"resource": ""
} | ||
c172597 | validation | // AddSystem adds the given System to the World, sorted by priority. | {
"resource": ""
} | ||
c172598 | validation | // AddSystemInterface adds a system to the world, but also adds a filter that allows
// automatic adding of entities that match the provided in interface, and excludes any
// that match the provided ex interface, even if they also match in. in and ex must be
// pointers to the interface or else this panics. | {
"resource": ""
} | ||
c172599 | validation | // AddEntity adds the entity to all systems that have been added via
// AddSystemInterface. If the system was added via AddSystem the entity will not be
// added to it. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.