Sponsored Content
Full Discussion: Posting on a forum
The Lounge What is on Your Mind? Posting on a forum Post 59452 by woofie on Monday 20th of December 2004 05:00:57 PM
Old 12-20-2004
Neo, instead of maybe getting a developer to make something like that. Start a unix.com comp! Smilie
 

4 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Posting in teh incorrect Forum

As i am going through the board today i noticed alot of questions out of place. and quite a few of them were rather redundent to stuff that has already been coverd. I know that talking about stuff that has already been coverd will always happen BUT comeone people. Dosent anyone read the FAQ... (1 Reply)
Discussion started by: Optimus_P
1 Replies

2. Emergency UNIX and Linux Support

User Guide: Posting in the Emergency Forum

Emergency UNIX and Linux Support !! Help Me! Forum (Request Urgent Help) README FIRST: How to Request Emergency or Urgent Help: You may post emergency work-related questions in the emergency forum. To post in this forum you will need to use your Bits. All questions answered on a "best... (0 Replies)
Discussion started by: Neo
0 Replies

3. Post Here to Contact Site Administrators and Moderators

Emergency Forum Posting Problem

Regarding this thread: it's not possible for me to reply to it. According to the guide, the only official restriction is placed on posting new threads, not replies. Bug or undocumented "feature"? (4 Replies)
Discussion started by: pludi
4 Replies

4. Post Here to Contact Site Administrators and Moderators

Forum posting help

How do some posters get just a simple little text box in the middle of a sentence or paragragh? I have seen many threads where posters aren't using code tags or quote tags, because both of those take up an entire line on the screen. It looks like a code tag, but has no header and no newline... (3 Replies)
Discussion started by: AlphaLexman
3 Replies
wsreg_set_instance(3WSREG)			    Product Install Registry Library Functions				wsreg_set_instance(3WSREG)

NAME
wsreg_set_instance, wsreg_get_instance - set or get the instance of a component SYNOPSIS
cc [flag ...] file ...-lwsreg [library ...] #include <wsreg.h> int wsreg_set_instance(Wsreg_component *comp, int instance); int wsreg_get_instance(Wsreg_component *comp); DESCRIPTION
The wsreg_set_instance() function sets the instance number specified by instance of the component specified by comp. The instance number and uuid are used to uniquely identify any component in the product install registry. The wsreg_get_instance() function determines the instance number associated with the component specified by comp. RETURN VALUES
The wsreg_set_instance() function returns a non-zero value if the instance was set correctly; otherwise 0 is returned. The wsreg_get_instance() function returns the instance number associated with the specified component. EXAMPLES
Example 1: Get the instance value of a registered component. The following example demonstrates how how to get the instance value of a registered component. #include <fcntl.h> #include <wsreg.h> int main (int argc, char **argv) { char *uuid = "d6cf2869-1dd1-11b2-9fcb-080020b69971"; Wsreg_component *comp = NULL; /* Initialize the registry */ wsreg_initialize(WSREG_INIT_NORMAL, NULL); if (!wsreg_can_access_registry(O_RDWR)) { printf("No permission to modify the registry. "); return 1; } /* Create a component */ comp = wsreg_create_component(uuid); wsreg_set_unique_name(comp, "wsreg_example_1"); wsreg_set_version(comp, "1.0"); wsreg_add_display_name(comp, "en", "Example 1 component"); wsreg_set_type(comp, WSREG_COMPONENT); wsreg_set_location(comp, "/usr/local/example1_component"); /* Register */ wsreg_register(comp); printf("Instance %d was assigned ", wsreg_get_instance(comp)); wsreg_free_component(comp); return 0; } USAGE
Upon component registration with the wsreg_register(3WSREG) function, the instance number is set automatically. The instance number of 0 (the default) indicates to the wsreg_register() function that an instance number should be looked up and assigned during registration. If a component with the same uuid and location is already registered in the product install registry, that component's instance number will be used during registration. After registration of a component, the wsreg_get_instance() function can be used to determine what instance value was assigned. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
wsreg_create_component(3WSREG), wsreg_register(3WSREG), attributes(5) SunOS 5.10 22 Sep 2000 wsreg_set_instance(3WSREG)
All times are GMT -4. The time now is 07:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy