|
|
|
getpw(3c) -- get name from UID
|
|
getpw searches the password file for a user id number that equals uid, copies the line of the password file in which uid was found into the array pointed to by buf, and returns 0. getpw returns non-zero if uid cannot be found. This routine is included only for compatibility with prior systems and should not be used; see getpwent(3C) for routines to use instead. |
|
getpwent(3c) -- get password file entry
|
|
getpwent, getpwuid , getpwnam and their reentrant counterparts each return a pointer to an object with the following structure containing the broken-out fields of a line in the /etc/passwd file or some other backend database. Each line in the file contains a ``passwd'' structure, declared in the header file: struct passwd { char *pw_name; char *pw_passwd; uid_t pw_uid; gid_t pw_gid; char *pw_age; char *pw_comment; char *pw_gecos; char *pw_dir; char *pw_shell; }; Page 1 GETPWENT(3C) GET... |
|
|
Tk/getrelief(3) -- translate between strings and relief values
|
|
Tcl_Interp *interp (in) Interpreter to use for error reporting. char *name (in) String containing relief name (one of ``flat'', ``groove'', ``raised'', ``ridge'', or ``sunken''). int *reliefPtr (out) Pointer to location in which to store relief value corresponding to name. int relief (in) Relief value (one of TK_RELIEF_FLAT, TK_RELIEF_RAISED, TK_RELIEF_SUNKEN, TK_RELIEF_GROOVE, or TK_RELIEF_RIDGE).... |
|
standard/getresetls(3) -- returns the state of linestyle reset mode
|
|
none FUNCTION RETURN VALUE The returned value of this function is the current state of linestyle reset mode. |
|
Tk/getrootcrd(3) -- Compute root-window coordinates of window
|
|
Tk_Window tkwin (in) Token for window. int *xPtr (out) Pointer to location in which to store root-window x-coordinate corresponding to left edge of tkwin's border. int *yPtr (out) Pointer to location in which to store root-window y-coordinate corresponding to top edge of tkwin's border. |
|
getrpcent(3c) -- get RPC entry
|
|
Getrpcent, getrpcbyname, getrpcbynumber and their reentrant counterparts each return a pointer to an object with the following structure containing the broken-out fields of a line in the Sun RPC program number data base, /etc/rpc, or some other back-end database. struct rpcent { char *r_name; /* name of server for this rpc program */ char **r_aliases; /* alias list */ long r_number; /* rpc program number */ }; The members of this structure are: r_name The name of the server for this rpc program.... |
|
getrpcpor(3c) -- get RPC port number
|
|
Getrpcport returns the port number for version versnum of the RPC program prognum running on host and using protocol proto. It returns 0 if it cannot contact the portmapper, or if prognum is not registered. If prognum is registered but not with version versnum, it will still return a port number (for some version of the program) indicating that the program is indeed registered. The version mismatch will be detected upon the first call to the service.... |
|
getrusage(3) -- get information about resource utilization
|
|
Getrusage returns information describing the resources utilized by the current process, or all its terminated child processes. This routine is provided for compatibility with 4.3BSD. The who parameter is one of RUSAGE_SELF or RUSAGE_CHILDREN. The buffer to which rusage points will be filled in with the following structure: struct rusage { struct timeval ru_utime;/* user time used */ struct timeval ru_stime;/* system time used */ long ru_maxrss; long ru_ixrss; /* integral shared memory size */ lo... |
|
Tcl/gets(3) -- Read a line from a file
|
|
This command reads the next line from the file given by fileId and discards the terminating newline character. If varName is specified then the line is placed in the variable by that name and the return value is a count of the number of characters read (not including the newline). If the end of the file is reached before reading any characters then -1 is returned and varName is set to an empty string. If varName is not specified then the return value will be the line (minus the newline character... |
|
gets(3s) -- get a string from a stream
|
|
gets reads characters from the standard input stream, stdin, into the array pointed to by s, until a new-line character is read or an end-offile condition is encountered. The new-line character is discarded and the string is terminated with a null character. fgets reads characters from the stream into the array pointed to by s, until n-1 characters are read, or a new-line character is read and transferred to s, or an end-of-file condition is encountered. The string is then terminated with a null... |
|
standard/getscrbox(3) -- read back the current computed screen bounding box
|
|
left returns the window coordinate of the left-most pixel drawn while scrbox has been tracking. right returns the window coordinate of the right-most pixel drawn while scrbox has been tracking. bottom returns the window coordinate of the lowest pixel drawn while scrbox has been tracking. top returns the window coordinate of the highest pixel drawn while scrbox has been tracking. |
|
standard/getscrmask(3) -- returns the current screen mask
|
|
left expects a pointer to a location into which the system should copy the x coordinate (in pixels) of the left side of the current screen mask. right expects a pointer to a location into which the system should copy the x coordinate (in pixels) of the right side of the current screen mask. bottom expects a pointer to a location into which the system should copy the y coordinate (in pixels) of the bottom side of the current screen mask. top expects a pointer to a location into which the system s... |
|
Tk/getscroll(3) -- parse arguments for scrolling commands
|
|
Tcl_Interp *interp (in) Interpreter to use for error reporting. int argc (in) Number of strings in argv array. char *argv[] (in) Argument strings. These represent the entire widget command, of which the first word is typically the widget name and the second word is typically xview or yview. This procedure parses arguments starting with argv[2]. double *dblPtr (out) Filled in with fraction from moveto option, if any. int *intPtr (out) Filled in with line or page count from scroll option, if any. ... |
|
Tk/getselect(3) -- retrieve the contents of a selection
|
|
Tcl_Interp *interp (in) Interpreter to use for reporting errors. Tk_Window tkwin (in) Window on whose behalf to retrieve the selection (determines display from which to retrieve). Atom selection (in) The name of the selection to be | retrieved. Atom target (in) Form in which to retrieve selection. Tk_GetSelProc *proc (in) Procedure to invoke to process pieces of the selection as they are retrieved. ClientData clientData (in) Arbitrary one-word value to pass to proc.... |
|
getservent(3c) -- get service entry
|
|
getservent, getservbyname, getservbyport and their reentrant counterparts each return a pointer to an object with the following structure containing the broken-out fields of a line in the file /etc/services, or some other back-end database. struct servent { char *s_name; /* official name of service */ char **s_aliases; /* alias list */ int s_port; /* port service resides at */ char *s_proto; /* protocol to use */ }; The members of this structure are: s_name The official name of the service. s_al... |