priv_getbyname man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

priv_getbyname(3)					     priv_getbyname(3)

NAME
       priv_getbyname() - convert privilege name to privilege ID

SYNOPSIS

   Parameters
       priv_name      pointer to the string containing the privilege name.

DESCRIPTION
       converts	 the external (string) representation of the privilege name to
       the internal (numeric) privilege representation.

RETURN VALUE
       returns the following values:

	      Successful completion.
		     The value of the privilege ID is returned.

	      Function failed.
		     is set to indicate the error.

ERRORS
       sets to the following value if the corresponding condition occurs.

       Invalid privilege name.

EXAMPLES
	      #include <sys/privileges.h>
	      #include <sys/types.h>

	      main()
	      {
		      priv_t privid;
		      char *privname = "SYSNFS";

		      privid = priv_getbyname(privname);
		      if (privid == -1) {
			      printf("\nError getting privilege ID\n");
		      } else {
			      printf("\nPrivilege ID : %d\n",privid);
		      }
	      }

SEE ALSO
       priv_getbynum(3),   priv_set_to_str(3),	 priv_str_to_set(3),	priviā€
       leges(5).

							     priv_getbyname(3)
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net