OSSP CVS Repository

ossp - Check-in [4699]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4699
Date: 2004-Sep-12 11:28:04 (local)
2004-Sep-12 09:28:04 (UTC)
User:rse
Branch:
Comment: Fixed prototype for pthread_attr_setschedparam(3) from to use a "const struct sched_param *" argument to comply with SUSv2/v3.

Submitted by: Rafael Ávila de Espíndola <rafael.espindola@ic.unicamp.br>

Tickets:
Inspections:
Files:
ossp-pkg/pth/ChangeLog      1.615 -> 1.616     4 inserted, 0 deleted
ossp-pkg/pth/THANKS      1.92 -> 1.93     1 inserted, 0 deleted
ossp-pkg/pth/pthread.c      1.65 -> 1.66     1 inserted, 1 deleted
ossp-pkg/pth/pthread.h.in      1.68 -> 1.69     1 inserted, 1 deleted

ossp-pkg/pth/ChangeLog 1.615 -> 1.616

--- ChangeLog    2004/08/11 19:36:32     1.615
+++ ChangeLog    2004/09/12 09:28:04     1.616
@@ -21,6 +21,10 @@
                   
   Changes between 2.0.1 and 2.0.2 (13-Jul-2003 to xx-XXX-2004)
 
+   *) Fixed prototype for pthread_attr_setschedparam(3) from
+      to use a "const struct sched_param *" argument.
+      [Rafael Ávila de Espíndola <rafael.espindola@ic.unicamp.br>]
+
    *) Upgraded build environment to GNU libtool 1.5.8
       and GNU shtool 2.0.1.
       [Ralf S. Engelschall]


ossp-pkg/pth/THANKS 1.92 -> 1.93

--- THANKS       2003/04/03 18:09:05     1.92
+++ THANKS       2004/09/12 09:28:05     1.93
@@ -29,6 +29,7 @@
     o  Philippe Defert             <Philippe.Defert@cern.ch>
     o  David Dureau                <david.dureau@cea.fr>
     o  Lars Eilebrecht             <lars@hyperreal.org>
+    o  Rafael Ávila de Espíndola   <rafael.espindola@ic.unicamp.br>
     o  Jason Evans                 <jasone@canonware.com>
     o  Alex Fiori                  <alex@linuxbr.com>
     o  Flux                        <flux@iae.nl>


ossp-pkg/pth/pthread.c 1.65 -> 1.66

--- pthread.c    2004/07/13 10:50:49     1.65
+++ pthread.c    2004/09/12 09:28:04     1.66
@@ -115,7 +115,7 @@
     return pth_error(ENOSYS, ENOSYS);
 }
 
-int pthread_attr_setschedparam(pthread_attr_t *attr, struct sched_param *schedparam)
+int pthread_attr_setschedparam(pthread_attr_t *attr, const struct sched_param *schedparam)
 {
     if (attr == NULL)
         return pth_error(EINVAL, EINVAL);


ossp-pkg/pth/pthread.h.in 1.68 -> 1.69

--- pthread.h.in 2004/07/13 10:50:49     1.68
+++ pthread.h.in 2004/09/12 09:28:05     1.69
@@ -324,7 +324,7 @@
 extern int       pthread_attr_destroy(pthread_attr_t *);
 extern int       pthread_attr_setinheritsched(pthread_attr_t *, int);
 extern int       pthread_attr_getinheritsched(const pthread_attr_t *, int *);
-extern int       pthread_attr_setschedparam(pthread_attr_t *, struct sched_param *);
+extern int       pthread_attr_setschedparam(pthread_attr_t *, const struct sched_param *);
 extern int       pthread_attr_getschedparam(const pthread_attr_t *, struct sched_param *);
 extern int       pthread_attr_setschedpolicy(pthread_attr_t *, int);
 extern int       pthread_attr_getschedpolicy(const pthread_attr_t *, int *);

CVSTrac 2.0.1