Fix a documentation about group ID get fuction 87/35987/3
authorSuchang Woo <suchang.woo@samsung.com>
Fri, 27 Feb 2015 07:22:21 +0000 (16:22 +0900)
committerSuchang Woo <suchang.woo@samsung.com>
Wed, 4 Mar 2015 01:36:43 +0000 (10:36 +0900)
tzplatform_getgid() and tzplatform_context_getgid() returns the group ID of
the given user name not the given group name. The parameter 'id' should
match a user within the enumeration.

Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Change-Id: I2305e54037581671f87bd8d869d1da7bdea8dc94

src/tzplatform_config.h

index 35bafe1..ab998b0 100644 (file)
@@ -197,15 +197,15 @@ extern
 uid_t tzplatform_getuid(enum tzplatform_variable id);
 
 /*
- Return the gid for a given group name, stored in variable <id>
+ Return the gid for a given user name, stored in variable <id>
  Retun -1 in case of error.
 
  Example:
-    if TZ_USER_GROUP=="app" then calling:
+    if TZ_USER_NAME=="app" then calling:
 
-       tzplatform_getuid(TZ_USER_GROUP)
+       tzplatform_getuid(TZ_USER_NAME)
 
-    will return the gid of the group 'app'
+    will return the gid of the user 'app'
 */
 extern
 gid_t tzplatform_getgid(enum tzplatform_variable id);
@@ -368,15 +368,15 @@ extern
 uid_t tzplatform_context_getuid(struct tzplatform_context *context, enum tzplatform_variable id);
 
 /*
- Return the gid for a given group name, stored in variable <id>
+ Return the gid for a given user name, stored in variable <id>
  Retun -1 in case of error.
 
  Example:
-    if TZ_USER_GROUP=="app" then calling:
+    if TZ_USER_NAME=="app" then calling:
 
-       tzplatform_context_getuid(context, TZ_USER_GROUP)
+       tzplatform_context_getuid(context, TZ_USER_NAME)
 
-    will return the gid of the group 'app'
+    will return the gid of the user 'app'
 */
 extern
 gid_t tzplatform_context_getgid(struct tzplatform_context *context, enum tzplatform_variable id);