[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

X Strike Force XOrg SVN commit: r65 - in xorg-config/trunk/debian: . patches



Author: fabbione
Date: 2004-10-20 00:20:35 -0500 (Wed, 20 Oct 2004)
New Revision: 65

Added:
   xorg-config/trunk/debian/patches/008_fix_xgetpw_macro.diff
Modified:
   xorg-config/trunk/debian/CHANGESETS
Log:
* Import all xfree86/debian/patches related to xc/include top level directory.



Modified: xorg-config/trunk/debian/CHANGESETS
===================================================================
--- xorg-config/trunk/debian/CHANGESETS	2004-10-20 03:42:41 UTC (rev 64)
+++ xorg-config/trunk/debian/CHANGESETS	2004-10-20 05:20:35 UTC (rev 65)
@@ -112,4 +112,7 @@
 * Add some *cough*extra*cough* depends.
     63
 
+* Import all xfree86/debian/patches related to xc/include top level directory.
+    65
+
 vim:set ai et sts=4 sw=4 tw=80:

Added: xorg-config/trunk/debian/patches/008_fix_xgetpw_macro.diff
===================================================================
--- xorg-config/trunk/debian/patches/008_fix_xgetpw_macro.diff	2004-10-20 03:42:41 UTC (rev 64)
+++ xorg-config/trunk/debian/patches/008_fix_xgetpw_macro.diff	2004-10-20 05:20:35 UTC (rev 65)
@@ -0,0 +1,90 @@
+$Id$
+
+Fix the _XGetpwnam macro to be more consistent; this patch by Robert Millan.
+
+--- xc/include/Xos_r.h.old	2003-04-11 14:54:50.000000000 +0200
++++ xc/include/Xos_r.h	2003-04-11 12:56:19.000000000 +0200
+@@ -217,8 +217,8 @@
+  *
+  * typedef ... _Xgetpwparams;
+  *
+- * struct passwd* _XGetpwnam(const char *name, _Xgetpwparams);
+- * struct passwd* _XGetpwuid(uid_t uid, _Xgetpwparams);
++ * struct passwd* _XGetpwnam(const char *name, _Xgetpwparams, struct **dummy);
++ * struct passwd* _XGetpwuid(uid_t uid, _Xgetpwparams, struct **dummy);
+  */
+ 
+ #if defined(X_INCLUDE_PWD_H) && !defined(_XOS_INCLUDED_PWD_H)
+@@ -238,8 +238,8 @@
+ extern struct passwd *getpwuid(), *getpwnam();
+ # endif
+ typedef int _Xgetpwparams;	/* dummy */
+-# define _XGetpwuid(u,p)	getpwuid((u))
+-# define _XGetpwnam(u,p)	getpwnam((u))
++# define _XGetpwuid(u,p,s)	getpwuid((u))
++# define _XGetpwnam(u,p,s)	getpwnam((u))
+ 
+ #elif !defined(XOS_USE_MTSAFE_PWDAPI) || defined(XNO_MTSAFE_PWDAPI)
+ /* UnixWare 2.0, or other systems with thread support but no _r API. */
+@@ -316,12 +316,12 @@
+     ((p).pwp = &(p).pws), \
+     0 )
+ #endif
+-# define _XGetpwuid(u,p) \
++# define _XGetpwuid(u,p,s) \
+ ( (_Xos_processLock), \
+   (((p).pwp = getpwuid((u))) ? _Xpw_copyPasswd(p), 0 : 0), \
+   (_Xos_processUnlock), \
+   (p).pwp )
+-# define _XGetpwnam(u,p) \
++# define _XGetpwnam(u,p,s) \
+ ( (_Xos_processLock), \
+   (((p).pwp = getpwnam((u))) ? _Xpw_copyPasswd(p), 0 : 0), \
+   (_Xos_processUnlock), \
+@@ -336,21 +336,21 @@
+ } _Xgetpwparams;
+ # if defined(_POSIX_REENTRANT_FUNCTIONS) || !defined(SVR4) || defined(Lynx)
+ #  ifndef Lynx
+-#   define _XGetpwuid(u,p) \
+-((getpwuid_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws)
+-#   define _XGetpwnam(u,p) \
+-((getpwnam_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws)
++#   define _XGetpwuid(u,p,s) \
++((getpwuid_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf),(s)) == -1) ? NULL : &(p).pws)
++#   define _XGetpwnam(u,p,s) \
++((getpwnam_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf),(s)) == -1) ? NULL : &(p).pws)
+ #  else /* Lynx */
+-#   define _XGetpwuid(u,p) \
+-((getpwuid_r(&(p).pws,(u),(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws)
+-#   define _XGetpwnam(u,p) \
+-((getpwnam_r(&(p).pws,(u),(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws)
++#   define _XGetpwuid(u,p,s) \
++((getpwuid_r(&(p).pws,(u),(p).pwbuf,sizeof((p).pwbuf),(s)) == -1) ? NULL : &(p).pws)
++#   define _XGetpwnam(u,p,s) \
++((getpwnam_r(&(p).pws,(u),(p).pwbuf,sizeof((p).pwbuf),(s)) == -1) ? NULL : &(p).pws)
+ #  endif
+ # else /* SVR4 */
+-#  define _XGetpwuid(u,p) \
+-((getpwuid_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == NULL) ? NULL : &(p).pws)
+-#  define _XGetpwnam(u,p) \
+-((getpwnam_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == NULL) ? NULL : &(p).pws)
++#  define _XGetpwuid(u,p,s) \
++((getpwuid_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf),(s)) == NULL) ? NULL : &(p).pws)
++#  define _XGetpwnam(u,p,s) \
++((getpwnam_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf),(s)) == NULL) ? NULL : &(p).pws)
+ # endif /* SVR4 */
+ 
+ #else /* _POSIX_THREAD_SAFE_FUNCTIONS */
+@@ -367,10 +367,10 @@
+   struct passwd* pwp;
+ } _Xgetpwparams;
+ typedef int _Xgetpwret;
+-# define _XGetpwuid(u,p) \
++# define _XGetpwuid(u,p,s) \
+ ((getpwuid_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf),&(p).pwp) == -1) ? \
+  NULL : (p).pwp)
+-# define _XGetpwnam(u,p) \
++# define _XGetpwnam(u,p,s) \
+ ((getpwnam_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf),&(p).pwp) == -1) ? \
+  NULL : (p).pwp)
+ #endif /* X_INCLUDE_PWD_H */


Property changes on: xorg-config/trunk/debian/patches/008_fix_xgetpw_macro.diff
___________________________________________________________________
Name: svn:keywords
   + Id



Reply to: