OSSP CVS Repository

ossp - Difference in ossp-pkg/pth/pthread.c versions 1.54 and 1.55
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/pth/pthread.c 1.54 -> 1.55

--- pthread.c    2001/03/24 14:51:05     1.54
+++ pthread.c    2001/03/24 15:46:32     1.55
@@ -107,7 +107,7 @@
     return_errno(ENOSYS, ENOSYS);
 }
 
-int pthread_attr_getinheritsched(pthread_attr_t *attr, int *inheritsched)
+int pthread_attr_getinheritsched(const pthread_attr_t *attr, int *inheritsched)
 {
     if (attr == NULL || inheritsched == NULL)
         return_errno(EINVAL, EINVAL);
@@ -123,7 +123,7 @@
     return_errno(ENOSYS, ENOSYS);
 }
 
-int pthread_attr_getschedparam(pthread_attr_t *attr, struct sched_param *schedparam)
+int pthread_attr_getschedparam(const pthread_attr_t *attr, struct sched_param *schedparam)
 {
     if (attr == NULL || schedparam == NULL)
         return_errno(EINVAL, EINVAL);
@@ -139,7 +139,7 @@
     return_errno(ENOSYS, ENOSYS);
 }
 
-int pthread_attr_getschedpolicy(pthread_attr_t *attr, int *schedpolicy)
+int pthread_attr_getschedpolicy(const pthread_attr_t *attr, int *schedpolicy)
 {
     if (attr == NULL || schedpolicy == NULL)
         return_errno(EINVAL, EINVAL);
@@ -155,7 +155,7 @@
     return_errno(ENOSYS, ENOSYS);
 }
 
-int pthread_attr_getscope(pthread_attr_t *attr, int *scope)
+int pthread_attr_getscope(const pthread_attr_t *attr, int *scope)
 {
     if (attr == NULL || scope == NULL)
         return_errno(EINVAL, EINVAL);
@@ -172,7 +172,7 @@
     return OK;
 }
 
-int pthread_attr_getstacksize(pthread_attr_t *attr, size_t *stacksize)
+int pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stacksize)
 {
     if (attr == NULL || stacksize == NULL)
         return_errno(EINVAL, EINVAL);
@@ -190,7 +190,7 @@
     return OK;
 }
 
-int pthread_attr_getstackaddr(pthread_attr_t *attr, void **stackaddr)
+int pthread_attr_getstackaddr(const pthread_attr_t *attr, void **stackaddr)
 {
     if (attr == NULL || stackaddr == NULL)
         return_errno(EINVAL, EINVAL);
@@ -216,7 +216,7 @@
     return OK;
 }
 
-int pthread_attr_getdetachstate(pthread_attr_t *attr, int *detachstate)
+int pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate)
 {
     int s;
 
@@ -231,6 +231,22 @@
     return OK;
 }
 
+int pthread_attr_setguardsize(pthread_attr_t *attr, int stacksize)
+{
+    if (attr == NULL || stacksize < 0)
+        return_errno(EINVAL, EINVAL);
+    /* not supported */
+    return_errno(ENOSYS, ENOSYS);
+}
+
+int pthread_attr_getguardsize(const pthread_attr_t *attr, int *stacksize)
+{
+    if (attr == NULL || stacksize == NULL)
+        return_errno(EINVAL, EINVAL);
+    /* not supported */
+    return_errno(ENOSYS, ENOSYS);
+}
+
 int pthread_attr_setname_np(pthread_attr_t *attr, char *name)
 {
     if (attr == NULL || name == NULL)
@@ -240,7 +256,7 @@
     return OK;
 }
 
-int pthread_attr_getname_np(pthread_attr_t *attr, char **name)
+int pthread_attr_getname_np(const pthread_attr_t *attr, char **name)
 {
     if (attr == NULL || name == NULL)
         return_errno(EINVAL, EINVAL);
@@ -258,7 +274,7 @@
     return OK;
 }
 
-int pthread_attr_getprio_np(pthread_attr_t *attr, int *prio)
+int pthread_attr_getprio_np(const pthread_attr_t *attr, int *prio)
 {
     if (attr == NULL || prio == NULL)
         return_errno(EINVAL, EINVAL);

CVSTrac 2.0.1