[Glibc-bsd-commits] r2368 - in trunk/glibc-ports/kfreebsd: . alpha alpha/bits alpha/machine bits i386 i386/bits i386/linuxthreads linuxthreads net netinet sys x86_64 x86_64/bits x86_64/elf x86_64/linuxthreads

ps-guest at alioth.debian.org ps-guest at alioth.debian.org
Thu Feb 19 08:44:14 UTC 2009


Author: ps-guest
Date: 2009-02-19 08:44:14 +0000 (Thu, 19 Feb 2009)
New Revision: 2368

Modified:
   trunk/glibc-ports/kfreebsd/Makefile
   trunk/glibc-ports/kfreebsd/Versions
   trunk/glibc-ports/kfreebsd/alpha/README
   trunk/glibc-ports/kfreebsd/alpha/bits/kernel_time_t.h
   trunk/glibc-ports/kfreebsd/alpha/machine/pal.h
   trunk/glibc-ports/kfreebsd/alpha/msgctl.c
   trunk/glibc-ports/kfreebsd/alpha/semctl.c
   trunk/glibc-ports/kfreebsd/alpha/shmctl.c
   trunk/glibc-ports/kfreebsd/bind.c
   trunk/glibc-ports/kfreebsd/bits/errno.h
   trunk/glibc-ports/kfreebsd/bits/resource.h
   trunk/glibc-ports/kfreebsd/bits/socket.h
   trunk/glibc-ports/kfreebsd/bits/stat16.h
   trunk/glibc-ports/kfreebsd/clone.c
   trunk/glibc-ports/kfreebsd/configure.in
   trunk/glibc-ports/kfreebsd/connect.c
   trunk/glibc-ports/kfreebsd/dl-osinfo.h
   trunk/glibc-ports/kfreebsd/fhstatfs.c
   trunk/glibc-ports/kfreebsd/fhstatfs64.c
   trunk/glibc-ports/kfreebsd/getfsstat.c
   trunk/glibc-ports/kfreebsd/getfsstat64.c
   trunk/glibc-ports/kfreebsd/gethostname.c
   trunk/glibc-ports/kfreebsd/i386/bits/mcontext.h
   trunk/glibc-ports/kfreebsd/i386/dl-machine.h
   trunk/glibc-ports/kfreebsd/i386/getcontext.S
   trunk/glibc-ports/kfreebsd/i386/linuxthreads/pt-machine.h
   trunk/glibc-ports/kfreebsd/i386/linuxthreads/sysdep-cancel.h
   trunk/glibc-ports/kfreebsd/i386/linuxthreads/tls.h
   trunk/glibc-ports/kfreebsd/i386/rfork.S
   trunk/glibc-ports/kfreebsd/i386/sigcontextinfo.h
   trunk/glibc-ports/kfreebsd/i386/sys_lseek.S
   trunk/glibc-ports/kfreebsd/i386/sysdep.h
   trunk/glibc-ports/kfreebsd/ifaddrs.c
   trunk/glibc-ports/kfreebsd/kernel-features.h
   trunk/glibc-ports/kfreebsd/linuxthreads/lowlevellock.h
   trunk/glibc-ports/kfreebsd/mmap.c
   trunk/glibc-ports/kfreebsd/net/if.h
   trunk/glibc-ports/kfreebsd/netinet/if_ether.h
   trunk/glibc-ports/kfreebsd/not-cancel.h
   trunk/glibc-ports/kfreebsd/open.c
   trunk/glibc-ports/kfreebsd/openat.c
   trunk/glibc-ports/kfreebsd/pread.c
   trunk/glibc-ports/kfreebsd/pwrite.c
   trunk/glibc-ports/kfreebsd/readv.c
   trunk/glibc-ports/kfreebsd/recv.c
   trunk/glibc-ports/kfreebsd/send.c
   trunk/glibc-ports/kfreebsd/sendto.c
   trunk/glibc-ports/kfreebsd/stat16conv.c
   trunk/glibc-ports/kfreebsd/statfs64.c
   trunk/glibc-ports/kfreebsd/statfsconv.c
   trunk/glibc-ports/kfreebsd/stty.c
   trunk/glibc-ports/kfreebsd/sys/param.h
   trunk/glibc-ports/kfreebsd/sys/rfork.h
   trunk/glibc-ports/kfreebsd/syscalls-inline.h
   trunk/glibc-ports/kfreebsd/testrtsig.h
   trunk/glibc-ports/kfreebsd/x86_64/bits/mcontext.h
   trunk/glibc-ports/kfreebsd/x86_64/elf/start.S
   trunk/glibc-ports/kfreebsd/x86_64/getcontext.S
   trunk/glibc-ports/kfreebsd/x86_64/linuxthreads/pt-machine.h
   trunk/glibc-ports/kfreebsd/x86_64/linuxthreads/sysdep-cancel.h
   trunk/glibc-ports/kfreebsd/x86_64/linuxthreads/tls.h
   trunk/glibc-ports/kfreebsd/x86_64/makecontext.S
   trunk/glibc-ports/kfreebsd/x86_64/rfork.S
   trunk/glibc-ports/kfreebsd/x86_64/sigcontextinfo.h
   trunk/glibc-ports/kfreebsd/x86_64/start_thread.S
   trunk/glibc-ports/kfreebsd/x86_64/sysdep.h
Log:
* drop white-space at the end of lines



Modified: trunk/glibc-ports/kfreebsd/Makefile
===================================================================
--- trunk/glibc-ports/kfreebsd/Makefile	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/Makefile	2009-02-19 08:44:14 UTC (rev 2368)
@@ -37,7 +37,7 @@
 # For <sys/stat.h>.
 sysdep_routines += sys_fstat sys_lstat sys_mknod sys_nfstat sys_nlstat sys_nstat sys_stat
 # For <sys/statfs.h>.
-sysdep_routines += fstatfs64 statfs64 sys_fstatfs sys_statfs   
+sysdep_routines += fstatfs64 statfs64 sys_fstatfs sys_statfs
 # Other.
 sysdep_routines += lchmod
 endif

Modified: trunk/glibc-ports/kfreebsd/Versions
===================================================================
--- trunk/glibc-ports/kfreebsd/Versions	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/Versions	2009-02-19 08:44:14 UTC (rev 2368)
@@ -74,10 +74,10 @@
     # f*
     fhstat64; fhstatfs64;
     kqueue; kevent;
-    
+
     #errlist-compat     93
     _sys_errlist; sys_errlist; _sys_nerr; sys_nerr;
-    
+
     # functions used in inline functions or macros
     __libc_sa_len;
   }

Modified: trunk/glibc-ports/kfreebsd/alpha/README
===================================================================
--- trunk/glibc-ports/kfreebsd/alpha/README	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/alpha/README	2009-02-19 08:44:14 UTC (rev 2368)
@@ -5,7 +5,7 @@
 Note that on alpha glue code is used in order to use a 64-bit __time_t with a
 32-bit __kernel_time_t type. All system calls taking arguments with
 'time_t', 'struct timeval', 'struct timespec', 'struct itimerval',
-'struct rusage', 'struct msqid_ds', 'struct shmid_ds', 'struct semid_ds' need 
+'struct rusage', 'struct msqid_ds', 'struct shmid_ds', 'struct semid_ds' need
 some special handling. The benefit is that user programs will not need to switch
 from a 32-bit time_t to a 64-bit time_t in 2038.
 

Modified: trunk/glibc-ports/kfreebsd/alpha/bits/kernel_time_t.h
===================================================================
--- trunk/glibc-ports/kfreebsd/alpha/bits/kernel_time_t.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/alpha/bits/kernel_time_t.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -18,7 +18,7 @@
    02111-1307 USA.  */
 
 
-/* This header files describe the way that structures using time_t 
+/* This header files describe the way that structures using time_t
    are represented in the kernel */
 
 #ifndef _BITS_KERNEL_TIME_T_H

Modified: trunk/glibc-ports/kfreebsd/alpha/machine/pal.h
===================================================================
--- trunk/glibc-ports/kfreebsd/alpha/machine/pal.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/alpha/machine/pal.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -48,7 +48,7 @@
 #define GEN_SUBSTRERR	-16	/* substring error */
 #define GEN_RANGERR	-17	/* range error */
 #define GEN_SUBRNG	-18
-#define GEN_SUBRNG1	-19	 
+#define GEN_SUBRNG1	-19
 #define GEN_SUBRNG2	-20
 #define GEN_SUBRNG3	-21	/* these report range errors for */
 #define GEN_SUBRNG4	-22	/* subscripting (indexing) at levels 0..7 */

Modified: trunk/glibc-ports/kfreebsd/alpha/msgctl.c
===================================================================
--- trunk/glibc-ports/kfreebsd/alpha/msgctl.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/alpha/msgctl.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -41,9 +41,9 @@
   kmsqid_ds.msg_stime = msqid_ds->msg_stime;
   kmsqid_ds.msg_rtime = msqid_ds->msg_rtime;
   kmsqid_ds.msg_ctime = msqid_ds->msg_ctime;
-  
+
   retval = __syscall_msgctl (msqid, cmd, &kmsqid_ds);
-  
+
   msqid_ds->msg_perm = kmsqid_ds.msg_perm;
   msqid_ds->__msg_first = kmsqid_ds.__msg_first;
   msqid_ds->__msg_last = kmsqid_ds.__msg_last;
@@ -55,7 +55,7 @@
   msqid_ds->msg_stime = kmsqid_ds.msg_stime;
   msqid_ds->msg_rtime = kmsqid_ds.msg_rtime;
   msqid_ds->msg_ctime = kmsqid_ds.msg_ctime;
- 
+
   return retval;
 }
 

Modified: trunk/glibc-ports/kfreebsd/alpha/semctl.c
===================================================================
--- trunk/glibc-ports/kfreebsd/alpha/semctl.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/alpha/semctl.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -39,13 +39,13 @@
 {
   int result;
   va_list ap;
-  
+
   union semun semun;
   union semun semun_ptr;
-  
+
   union __kernel_semun ksemun;
-  struct __kernel_semid_ds ksemid_ds; 
-  
+  struct __kernel_semid_ds ksemid_ds;
+
   va_start (ap, cmd);
   if (cmd == GETALL || cmd == SETVAL || cmd == SETALL)
     {
@@ -61,10 +61,10 @@
       ksemid_ds.sem_nsems = semun.buf->sem_nsems;
       ksemid_ds.sem_otime = semun.buf->sem_otime;
       ksemid_ds.sem_ctime = semun.buf->sem_ctime;
-      
+
       ksemun.buf = &ksemid_ds
       semun_ptr = (semun_ptr *) &ksemun;
-    }	    
+    }
   else
     {
       semun_ptr = NULL;
@@ -81,7 +81,7 @@
       semun.buf->sem_otime = ksemid_ds.sem_otime;
       semun.buf->sem_ctime = ksemid_ds.sem_ctime;
     }
-  
+
   return result;
 }
 

Modified: trunk/glibc-ports/kfreebsd/alpha/shmctl.c
===================================================================
--- trunk/glibc-ports/kfreebsd/alpha/shmctl.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/alpha/shmctl.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -39,7 +39,7 @@
   kshmid_ds.shm_dtime = shmid_ds->shm_dtime;
   kshmid_ds.shm_ctime = shmid_ds->shm_ctime;
   kshmid_ds.__shm_internal = shmid_ds->__shm_internal;
-  
+
   retval = __syscall_shmctl (shmid, cmd, &kshmid_ds);
 
   shmid_ds->shm_perm = kshmid_ds.shm_perm;
@@ -51,7 +51,7 @@
   shmid_ds->shm_dtime = kshmid_ds.shm_dtime;
   shmid_ds->shm_ctime = kshmid_ds.shm_ctime;
   shmid_ds->__shm_internal = kshmid_ds.__shm_internal;
-  
+
   return retval;
 }
 

Modified: trunk/glibc-ports/kfreebsd/bind.c
===================================================================
--- trunk/glibc-ports/kfreebsd/bind.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/bind.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -22,13 +22,13 @@
 
 /* According to POSIX.1-2004 the len argument specifies the length of
    the sockaddr structure pointed to by the addrarg argument. However
-   the FreeBSD kernel waits the actual length of the address stored 
+   the FreeBSD kernel waits the actual length of the address stored
    there. The code below emulate this behaviour. */
 
 extern int __libc_sa_len (sa_family_t __af);
 extern int __libc_sa_len_internal (sa_family_t __af);
 
-extern int __syscall_bind (int fd, __CONST_SOCKADDR_ARG addr, 
+extern int __syscall_bind (int fd, __CONST_SOCKADDR_ARG addr,
 			   socklen_t addrlen) __THROW;
 libc_hidden_proto (__syscall_bind)
 
@@ -41,18 +41,18 @@
 __bind (int fd, __CONST_SOCKADDR_ARG addr, socklen_t addrlen)
 {
   socklen_t new_addrlen;
-  
+
 #ifndef NOT_IN_libc
   new_addrlen = INTUSE(__libc_sa_len) ((addr.__sockaddr__)->sa_family);
 #else
   new_addrlen = __libc_sa_len ((addr.__sockaddr__)->sa_family);
 #endif
-	
+
   /* Only allow a smaller size, otherwise it could lead to
     stack corruption */
   if (new_addrlen < addrlen)
     addrlen = new_addrlen;
-		
+
   /* We pass 3 arguments.  */
   return INLINE_SYSCALL (bind, 3, fd, addr, addrlen);
 }

Modified: trunk/glibc-ports/kfreebsd/bits/errno.h
===================================================================
--- trunk/glibc-ports/kfreebsd/bits/errno.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/bits/errno.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -179,4 +179,4 @@
 #define	EILSEQ		86		/* Illegal byte sequence */
 
 #endif /* !_ERRNO_H && __need_Emath */
-      
+

Modified: trunk/glibc-ports/kfreebsd/bits/resource.h
===================================================================
--- trunk/glibc-ports/kfreebsd/bits/resource.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/bits/resource.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -26,7 +26,7 @@
 /* Transmute defines to enumerations.  The macro re-definitions are
    necessary because some programs want to test for operating system
    features with #ifdef RUSAGE_SELF.  In ISO C the reflexive
-   definition is a no-op. 
+   definition is a no-op.
 
    These are the values for FreeBSD.  Earlier BSD systems have a subset of
    these kinds of resource limit.  */

Modified: trunk/glibc-ports/kfreebsd/bits/socket.h
===================================================================
--- trunk/glibc-ports/kfreebsd/bits/socket.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/bits/socket.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -193,7 +193,7 @@
 #define MSG_COMPAT MSG_COMPAT
     MSG_NOSIGNAL	= 0x20000 /* do not generate SIGPIPE on EOF */
 #if 0 /* available since FreeBSD 6.0 */
-#define MSG_NOSIGNAL MSG_NOSIGNAL 
+#define MSG_NOSIGNAL MSG_NOSIGNAL
 #endif
   };
 

Modified: trunk/glibc-ports/kfreebsd/bits/stat16.h
===================================================================
--- trunk/glibc-ports/kfreebsd/bits/stat16.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/bits/stat16.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -18,7 +18,7 @@
 
 /* This structure corresponds to the standard FreeBSD 'struct stat'
    (i.e. _STAT_VER_stat), and is used by the stat() system call family. */
-   
+
 struct stat16
   {
     __dev_t st_dev;		/* Device containing the file.  */
@@ -47,7 +47,7 @@
     __uint32_t st_gen;		/* Generation number.  */
 
     __uint32_t __unused1;
-    
+
     long int st_birthtime;	/* Time of file creation.  */
     long int st_birthtimensec;	/* Nanoseconds of file creation.  */
 

Modified: trunk/glibc-ports/kfreebsd/clone.c
===================================================================
--- trunk/glibc-ports/kfreebsd/clone.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/clone.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -47,7 +47,7 @@
 int __clone (int (*fn) (void *), void *child_stack, int flags, void *arg)
 {
   int rfork_flags = RFPROC;
-  
+
   if (fn == NULL || child_stack == NULL)
     {
       __set_errno (EINVAL);

Modified: trunk/glibc-ports/kfreebsd/configure.in
===================================================================
--- trunk/glibc-ports/kfreebsd/configure.in	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/configure.in	2009-02-19 08:44:14 UTC (rev 2368)
@@ -11,7 +11,7 @@
 # The kFreeBSD headers can be found in
 #   /usr/src/sys/
 # Check whether this directory is available.
-if test -z "$sysheaders" && 
+if test -z "$sysheaders" &&
    test "x$cross_compiling" = xno &&
    test -d /usr/src/sys/ ; then
   sysheaders="/usr/src/sys/"
@@ -47,7 +47,7 @@
   AC_MSG_ERROR([GNU libc requires kernel header files from
 kFreeBSD LIBC_KFREEBSD_VERSION or later to be installed before configuring.
 The kernel header files are found usually in /usr/src/sys/; make sure
-these directories use files from kFreeBSD LIBC_KFREEBSD_VERSION or later.  
+these directories use files from kFreeBSD LIBC_KFREEBSD_VERSION or later.
 This check uses <osreldate.h>, so
 make sure that file was built correctly when installing the kernel header
 files.  To use kernel headers not from /usr/src/sys/, use the

Modified: trunk/glibc-ports/kfreebsd/connect.c
===================================================================
--- trunk/glibc-ports/kfreebsd/connect.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/connect.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -23,13 +23,13 @@
 
 /* According to POSIX.1-2004 the len argument specifies the length of
    the sockaddr structure pointed to by the addrarg argument. However
-   the FreeBSD kernel waits the actual length of the address stored 
+   the FreeBSD kernel waits the actual length of the address stored
    there. The code below emulate this behaviour.  */
 
 extern int __libc_sa_len (sa_family_t __af);
 extern int __libc_sa_len_internal (sa_family_t __af);
 
-extern int __syscall_connect (int fd, __CONST_SOCKADDR_ARG addr, 
+extern int __syscall_connect (int fd, __CONST_SOCKADDR_ARG addr,
 			      socklen_t addrlen);
 libc_hidden_proto (__syscall_connect)
 
@@ -42,7 +42,7 @@
 __libc_connect (int fd, __CONST_SOCKADDR_ARG addr, socklen_t addrlen)
 {
   socklen_t new_addrlen;
-	
+
 #ifndef NOT_IN_libc
   new_addrlen = INTUSE(__libc_sa_len) ((addr.__sockaddr__)->sa_family);
 #else
@@ -53,11 +53,11 @@
     stack corruption */
   if (new_addrlen < addrlen)
     addrlen = new_addrlen;
-		
+
   /* We pass 3 arguments.  */
   if (SINGLE_THREAD_P)
     return INLINE_SYSCALL (connect, 3, fd, addr, addrlen);
-  
+
   int oldtype = LIBC_CANCEL_ASYNC ();
   int result = INLINE_SYSCALL (connect, 3, fd, addr, addrlen);
   LIBC_CANCEL_RESET (oldtype);

Modified: trunk/glibc-ports/kfreebsd/dl-osinfo.h
===================================================================
--- trunk/glibc-ports/kfreebsd/dl-osinfo.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/dl-osinfo.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -102,7 +102,7 @@
 _dl_setup_stack_chk_guard (void)
 {
   uintptr_t ret;
-#ifdef ENABLE_STACKGUARD_RANDOMIZE 
+#ifdef ENABLE_STACKGUARD_RANDOMIZE
   int fd = __open ("/dev/urandom", O_RDONLY);
   if (fd >= 0)
     {

Modified: trunk/glibc-ports/kfreebsd/fhstatfs.c
===================================================================
--- trunk/glibc-ports/kfreebsd/fhstatfs.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/fhstatfs.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -25,7 +25,7 @@
 fhstatfs (const fhandle_t *fhp, struct statfs *buf)
 {
   struct statfs_fbsd5 kbuf;
-   
+
   if (__syscall_fhstatfs (fhp, &kbuf) < 0)
     return -1;
 

Modified: trunk/glibc-ports/kfreebsd/fhstatfs64.c
===================================================================
--- trunk/glibc-ports/kfreebsd/fhstatfs64.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/fhstatfs64.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -25,7 +25,7 @@
 fhstatfs64 (const fhandle_t *fhp, struct statfs64 *buf)
 {
   struct statfs_fbsd5 kbuf;
-   
+
   if (__syscall_fhstatfs (fhp, &kbuf) < 0)
     return -1;
 

Modified: trunk/glibc-ports/kfreebsd/getfsstat.c
===================================================================
--- trunk/glibc-ports/kfreebsd/getfsstat.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/getfsstat.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -32,12 +32,12 @@
   if (bufsize < 0)
     bufsize = 0;
   bufcount = bufsize / sizeof (struct statfs);
-  
+
   if ((bufcount == 0) || (buf == NULL))
     tmpbuf = NULL;
-  else  
+  else
     tmpbuf = alloca(bufcount * sizeof (struct statfs_fbsd5));
-      
+
   count = __syscall_getfsstat (tmpbuf, bufcount * sizeof (struct statfs_fbsd5), flags);
   if (tmpbuf && count > 0)
     for (i = count - 1; i >= 0; i--)

Modified: trunk/glibc-ports/kfreebsd/getfsstat64.c
===================================================================
--- trunk/glibc-ports/kfreebsd/getfsstat64.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/getfsstat64.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -32,12 +32,12 @@
   if (bufsize < 0)
     bufsize = 0;
   bufcount = bufsize / sizeof (struct statfs64);
-  
+
   if ((bufcount == 0) || (buf == NULL))
     tmpbuf = NULL;
-  else  
+  else
     tmpbuf = alloca(bufcount * sizeof (struct statfs_fbsd5));
-      
+
   count = __syscall_getfsstat (tmpbuf, bufcount * sizeof (struct statfs_fbsd5), flags);
   if (tmpbuf && count > 0)
     for (i = count - 1; i >= 0; i--)

Modified: trunk/glibc-ports/kfreebsd/gethostname.c
===================================================================
--- trunk/glibc-ports/kfreebsd/gethostname.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/gethostname.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -21,7 +21,7 @@
 #include <sys/sysctl.h>
 #include <errno.h>
 
-/* Put the name of the current host in no more than LEN bytes of NAME. 
+/* Put the name of the current host in no more than LEN bytes of NAME.
    The result is null-terminated if LEN is large enough for the full
    name and the terminator.  */
 

Modified: trunk/glibc-ports/kfreebsd/i386/bits/mcontext.h
===================================================================
--- trunk/glibc-ports/kfreebsd/i386/bits/mcontext.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/i386/bits/mcontext.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -29,7 +29,7 @@
  * modification, are permitted provided that the following conditions
  * are met:
  * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer 
+ *    notice, this list of conditions and the following disclaimer
  *    in this position and unchanged.
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the

Modified: trunk/glibc-ports/kfreebsd/i386/dl-machine.h
===================================================================
--- trunk/glibc-ports/kfreebsd/i386/dl-machine.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/i386/dl-machine.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -1,4 +1,4 @@
-/* Machine-dependent ELF dynamic relocation inline functions. 
+/* Machine-dependent ELF dynamic relocation inline functions.
    FreeBSD i386 specific version of dl_platform_init()
    Copyright (C) 2006 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
@@ -79,7 +79,7 @@
 	int val, hwcap;
 
 	val = try_flip_flags(X86_EFLAGS_AC | X86_EFLAGS_ID);
-	
+
 	if (!(val & X86_EFLAGS_AC))
 	{
 		/* 386 */

Modified: trunk/glibc-ports/kfreebsd/i386/getcontext.S
===================================================================
--- trunk/glibc-ports/kfreebsd/i386/getcontext.S	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/i386/getcontext.S	2009-02-19 08:44:14 UTC (rev 2368)
@@ -21,9 +21,9 @@
 
 .text
 ENTRY(__getcontext)
-        clc  
+        clc
         movl 0(%esp), %ecx	/* save the return PC value */
- 
+
         DO_CALL (getcontext, 1)
         jb SYSCALL_ERROR_LABEL
 

Modified: trunk/glibc-ports/kfreebsd/i386/linuxthreads/pt-machine.h
===================================================================
--- trunk/glibc-ports/kfreebsd/i386/linuxthreads/pt-machine.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/i386/linuxthreads/pt-machine.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -22,10 +22,10 @@
 #ifndef _FREEBSD_PT_MACHINE_H
 #define _FREEBSD_PT_MACHINE_H   1
 
-/* 
-  some parts are common with linux/i386 version 
-  
-  linux specific parts should be in 
+/*
+  some parts are common with linux/i386 version
+
+  linux specific parts should be in
   linuxthreads/sysdeps/unix/sysv/linux/i386/
   but they are included directly in
   linuxthreads/sysdeps/i386/

Modified: trunk/glibc-ports/kfreebsd/i386/linuxthreads/sysdep-cancel.h
===================================================================
--- trunk/glibc-ports/kfreebsd/i386/linuxthreads/sysdep-cancel.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/i386/linuxthreads/sysdep-cancel.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -48,21 +48,21 @@
     jb SYSCALL_ERROR_LABEL;						      \
   L(pseudo_end):
 
-/* 
-  on FreeBSD some syscalls return result in pair edx+eax, 
+/*
+  on FreeBSD some syscalls return result in pair edx+eax,
   therefore proper way would be
 
-# define PUSHRESULT	pushl %edx; pushl %eax; pushfl		
+# define PUSHRESULT	pushl %edx; pushl %eax; pushfl
 # define POPRESULT	popfl; popl %eax; popl %edx
- 
+
   for FreeBSD 5.4 affected syscalls are
-  
+
 	lseek()
 	fork()
 	vfork()
 	rfork()
 	pipe()
-   
+
    none of them is cancelable, therefore
 */
 
@@ -163,4 +163,4 @@
   __builtin_expect (THREAD_GETMEM (THREAD_SELF, \
                                      p_header.data.multiple_threads) == 0, 1)
 #endif
-                                     
+

Modified: trunk/glibc-ports/kfreebsd/i386/linuxthreads/tls.h
===================================================================
--- trunk/glibc-ports/kfreebsd/i386/linuxthreads/tls.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/i386/linuxthreads/tls.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -2,7 +2,7 @@
    Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Modification for FreeBSD by Petr Salinger, 2005.
-   
+
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
@@ -24,7 +24,7 @@
 #include <linuxthreads/sysdeps/i386/tls.h>
 
 /* We can support TLS only if the floating-stack support is available.
-   To avoid bothering with the TLS support code at all, 
+   To avoid bothering with the TLS support code at all,
    use configure --without-tls.
 
    We need USE_TLS to be consistently defined, for ldsodefs.h conditionals.

Modified: trunk/glibc-ports/kfreebsd/i386/rfork.S
===================================================================
--- trunk/glibc-ports/kfreebsd/i386/rfork.S	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/i386/rfork.S	2009-02-19 08:44:14 UTC (rev 2368)
@@ -20,9 +20,9 @@
 
 .text;
 ENTRY (__rfork)
-	/* save the return PC value into ECX, 
+	/* save the return PC value into ECX,
 	   preserve stack frame with argument  */
-	movl 0(%esp), %ecx; 
+	movl 0(%esp), %ecx;
 	DO_CALL (rfork, 1)
 	jb SYSCALL_ERROR_LABEL;
 	/* R1 is now 0 for the parent and 1 for the child.  Decrement it to

Modified: trunk/glibc-ports/kfreebsd/i386/sigcontextinfo.h
===================================================================
--- trunk/glibc-ports/kfreebsd/i386/sigcontextinfo.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/i386/sigcontextinfo.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -17,14 +17,14 @@
    02111-1307 USA.  */
 
 /*
-native FreeBSD: 
+native FreeBSD:
         sighandler(int signum, int code,       struct sigcontext * sg, void * fault_ip)
-posix like: 
+posix like:
         sighandler(int signum, siginfo_t * si, struct sigcontext * sg, void * fault_ip)
 */
 
 #define SIGCONTEXT long _code, struct sigcontext * _sg, void *
-#define SIGCONTEXT_EXTRA_ARGS _code, _sg, 
+#define SIGCONTEXT_EXTRA_ARGS _code, _sg,
 
 /* really, really, rest of glibc expects that struct sigcontext is the last argument */
 #define GET_PC(ctx)	((void *) (_sg)->sc_eip)

Modified: trunk/glibc-ports/kfreebsd/i386/sys_lseek.S
===================================================================
--- trunk/glibc-ports/kfreebsd/i386/sys_lseek.S	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/i386/sys_lseek.S	2009-02-19 08:44:14 UTC (rev 2368)
@@ -24,7 +24,7 @@
 PSEUDO_NOERRNO(__syscall_freebsd6_lseek, freebsd6_lseek, 4)
         jnb L(no_error)
 	call SYSCALL_ERROR_LABEL;
-	orl $-1, %edx; 
+	orl $-1, %edx;
 L(pseudo_end):
 L(no_error):
 	ret

Modified: trunk/glibc-ports/kfreebsd/i386/sysdep.h
===================================================================
--- trunk/glibc-ports/kfreebsd/i386/sysdep.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/i386/sysdep.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -147,7 +147,7 @@
 # endif	/* _LIBC_REENTRANT */
 #endif	/* PIC */
 
-/* 
+/*
     FreeBSD expects the system call arguments on the stack,
    syscall number is in %eax.
    return value is in %eax + %edx

Modified: trunk/glibc-ports/kfreebsd/ifaddrs.c
===================================================================
--- trunk/glibc-ports/kfreebsd/ifaddrs.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/ifaddrs.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -134,7 +134,7 @@
 			}
 			free(buf);
 			buf = NULL;
-		} 
+		}
 	} while (buf == NULL);
 
 	for (next = buf; next < buf + needed; next += rtm->rtm_msglen) {

Modified: trunk/glibc-ports/kfreebsd/kernel-features.h
===================================================================
--- trunk/glibc-ports/kfreebsd/kernel-features.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/kernel-features.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -24,8 +24,8 @@
 #endif
 
 /* We assume for __KFREEBSD_KERNEL_VERSION the same encoding used in
-   osreldate.h.  I.e., the major, minor, and subminor are all 
-   concatenated, with two digits for each.  This means we can do 
+   osreldate.h.  I.e., the major, minor, and subminor are all
+   concatenated, with two digits for each.  This means we can do
    numeric comparisons.
 
    In the following we will define certain symbols depending on

Modified: trunk/glibc-ports/kfreebsd/linuxthreads/lowlevellock.h
===================================================================
--- trunk/glibc-ports/kfreebsd/linuxthreads/lowlevellock.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/linuxthreads/lowlevellock.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -26,7 +26,7 @@
   volatile void *	uv;	/* in fact struct umtx from <sys/umtx.h> */
   volatile int		iv;
   volatile long		lv;
-  
+
 } __rtld_mrlock_t;
 
 #define UMTX_OP_WAIT	2	/*  <sys/umtx.h> */

Modified: trunk/glibc-ports/kfreebsd/mmap.c
===================================================================
--- trunk/glibc-ports/kfreebsd/mmap.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/mmap.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -29,7 +29,7 @@
 			     int __flags, int __fd, int __unused1,
 			     __off_t __offset) __THROW;
 libc_hidden_proto (__syscall_freebsd6_mmap)
-			     
+
 extern ssize_t __syscall_freebsd6_pread (int __fd, void *__buf, size_t __nbytes,
                                 int __unused1, __off_t __offset) __THROW;
 

Modified: trunk/glibc-ports/kfreebsd/net/if.h
===================================================================
--- trunk/glibc-ports/kfreebsd/net/if.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/net/if.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -327,7 +327,7 @@
 	void            *ifd_data;
 };
 
-/* 
+/*
  * Structure used to retrieve aux status data from interfaces.
  * Kernel suppliers to this interface should respect the formatting
  * needed by ifconfig(8): each line starts with a TAB and ends with

Modified: trunk/glibc-ports/kfreebsd/netinet/if_ether.h
===================================================================
--- trunk/glibc-ports/kfreebsd/netinet/if_ether.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/netinet/if_ether.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -91,7 +91,7 @@
 	unsigned short sin_other;
 #define SIN_PROXY 1
 };
-                                                                                                         
+
 /*
  * IP and ethernet specific routing flags
  */

Modified: trunk/glibc-ports/kfreebsd/not-cancel.h
===================================================================
--- trunk/glibc-ports/kfreebsd/not-cancel.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/not-cancel.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -65,7 +65,7 @@
 
 /* Uncancelable writev.  */
 #define writev_not_cancel_no_status(fd, iov, n) \
-  INLINE_SYSCALL (writev, 3, (fd), (iov), (n)) 
+  INLINE_SYSCALL (writev, 3, (fd), (iov), (n))
 
 /* Uncancelable fcntl.  */
 #define fcntl_not_cancel(fd, cmd, val) \

Modified: trunk/glibc-ports/kfreebsd/open.c
===================================================================
--- trunk/glibc-ports/kfreebsd/open.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/open.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -38,9 +38,9 @@
       mode = va_arg (arg, int);
       va_end (arg);
     }
-  
+
   if (SINGLE_THREAD_P)
-  { 
+  {
     fd = INLINE_SYSCALL (open, 3, file, oflag, mode);
   }
   else

Modified: trunk/glibc-ports/kfreebsd/openat.c
===================================================================
--- trunk/glibc-ports/kfreebsd/openat.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/openat.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -39,13 +39,13 @@
       /* Check FD is associated with a directory.  */
       struct stat64 st;
       if (__fxstat64 (_STAT_VER, fd, &st) != 0)
-	/* errno is already set correctly.  */ 
+	/* errno is already set correctly.  */
         return -1;
 
       if (!S_ISDIR (st.st_mode))
 	__set_errno (ENOTDIR);
       else
-	__set_errno (ENOSYS);	
+	__set_errno (ENOSYS);
       return -1;
     }
   return INLINE_SYSCALL (open, 3, file, oflag, mode);

Modified: trunk/glibc-ports/kfreebsd/pread.c
===================================================================
--- trunk/glibc-ports/kfreebsd/pread.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/pread.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -38,7 +38,7 @@
   int oldtype = LIBC_CANCEL_ASYNC ();
   ssize_t result = INLINE_SYSCALL (freebsd6_pread, 5, fd, buf, nbytes, 0, offset);
   LIBC_CANCEL_RESET (oldtype);
-  return result; 
+  return result;
 }
 
 strong_alias (__libc_pread, __pread)

Modified: trunk/glibc-ports/kfreebsd/pwrite.c
===================================================================
--- trunk/glibc-ports/kfreebsd/pwrite.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/pwrite.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -38,7 +38,7 @@
   int oldtype = LIBC_CANCEL_ASYNC ();
   ssize_t result = INLINE_SYSCALL (freebsd6_pwrite, 5, fd, buf, nbytes, 0, offset);
   LIBC_CANCEL_RESET (oldtype);
-  return result; 
+  return result;
 }
 
 strong_alias (__libc_pwrite, __pwrite)

Modified: trunk/glibc-ports/kfreebsd/readv.c
===================================================================
--- trunk/glibc-ports/kfreebsd/readv.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/readv.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -45,7 +45,7 @@
     ssize_t result = INLINE_SYSCALL (readv, 3, fd, CHECK_N (vector, count), count);
     LIBC_CANCEL_RESET (oldtype);
     return result;
-    
+
   }
   else
     return __atomic_readv_replacement (fd, vector, count);

Modified: trunk/glibc-ports/kfreebsd/recv.c
===================================================================
--- trunk/glibc-ports/kfreebsd/recv.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/recv.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -24,7 +24,7 @@
 #define __syscall_recvfrom __libc_recvfrom
 ssize_t __libc_recvfrom(int s, void *buf, size_t len, int flags,
                         struct sockaddr *from, socklen_t *fromlen);
-libc_hidden_proto (__libc_recvfrom)                          
+libc_hidden_proto (__libc_recvfrom)
 
 /* Read N bytes into BUF from socket FD.
    Return the number of bytes read or -1 for error.  */

Modified: trunk/glibc-ports/kfreebsd/send.c
===================================================================
--- trunk/glibc-ports/kfreebsd/send.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/send.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -20,9 +20,9 @@
 #include <sysdep.h>
 #include <sysdep-cancel.h>
 
-extern ssize_t __syscall_sendto (int fd, __const __ptr_t buf, 
-		                 size_t n, int flags, 
-				 __CONST_SOCKADDR_ARG addr, 
+extern ssize_t __syscall_sendto (int fd, __const __ptr_t buf,
+		                 size_t n, int flags,
+				 __CONST_SOCKADDR_ARG addr,
 				 socklen_t addrlen);
 libc_hidden_proto (__syscall_sendto)
 
@@ -34,7 +34,7 @@
 {
   if (SINGLE_THREAD_P)
     return INLINE_SYSCALL (sendto, 6, fd, buf, n, flags, NULL, 0);
-  
+
   int oldtype = LIBC_CANCEL_ASYNC ();
   int result = INLINE_SYSCALL (sendto, 6, fd, buf, n, flags, NULL, 0);
   LIBC_CANCEL_RESET (oldtype);

Modified: trunk/glibc-ports/kfreebsd/sendto.c
===================================================================
--- trunk/glibc-ports/kfreebsd/sendto.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/sendto.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -23,15 +23,15 @@
 
 /* According to POSIX.1-2004 the len argument specifies the length of
    the sockaddr structure pointed to by the addrarg argument. However
-   the FreeBSD kernel waits the actual length of the address stored 
+   the FreeBSD kernel waits the actual length of the address stored
    there. The code below emulate this behaviour.  */
 
 extern int __libc_sa_len (sa_family_t __af);
 extern int __libc_sa_len_internal (sa_family_t __af);
 
-extern ssize_t __syscall_sendto (int fd, __const void * buf, 
-		                 size_t n, int flags, 
-				 __CONST_SOCKADDR_ARG addr, 
+extern ssize_t __syscall_sendto (int fd, __const void * buf,
+		                 size_t n, int flags,
+				 __CONST_SOCKADDR_ARG addr,
 				 socklen_t addrlen);
 libc_hidden_proto (__syscall_sendto)
 
@@ -55,11 +55,11 @@
     stack corruption */
   if (new_addrlen < addrlen)
     addrlen = new_addrlen;
-		
+
   /* We pass 6 arguments.  */
   if (SINGLE_THREAD_P)
     return INLINE_SYSCALL (sendto, 6, fd, buf, n, flags, addr, addrlen);
-  
+
   int oldtype = LIBC_CANCEL_ASYNC ();
   int result = INLINE_SYSCALL (sendto, 6, fd, buf, n, flags, addr, addrlen);
   LIBC_CANCEL_RESET (oldtype);

Modified: trunk/glibc-ports/kfreebsd/stat16conv.c
===================================================================
--- trunk/glibc-ports/kfreebsd/stat16conv.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/stat16conv.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -50,9 +50,9 @@
   q->st_blksize = p16->st_blksize;
   q->st_flags = p16->st_flags;
   q->st_gen = p16->st_gen;
-#if 0  
+#if 0
   memcpy (q->__unused1, p16->__unused2, sizeof (p16->__unused2));
-#endif  
+#endif
 }
 
 /* Convert a 'struct stat16' to 'struct stat64'.  */
@@ -74,7 +74,7 @@
   q->st_blksize = p16->st_blksize;
   q->st_flags = p16->st_flags;
   q->st_gen = p16->st_gen;
-#if 0  
+#if 0
   memcpy (q->__unused1, p16->__unused2, sizeof (p16->__unused2));
-#endif  
+#endif
 }

Modified: trunk/glibc-ports/kfreebsd/statfs64.c
===================================================================
--- trunk/glibc-ports/kfreebsd/statfs64.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/statfs64.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -27,7 +27,7 @@
 statfs64 (const char *file, struct statfs64 *buf)
 {
   struct statfs_fbsd5 kbuf;
- 
+
   if (__syscall_statfs (file, &kbuf) < 0)
     return -1;
 

Modified: trunk/glibc-ports/kfreebsd/statfsconv.c
===================================================================
--- trunk/glibc-ports/kfreebsd/statfsconv.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/statfsconv.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -96,7 +96,7 @@
 
   p32->f_namemax	= MIN(pk->f_namemax, USHRT_MAX);
 
-  memcpy(p32->f_fstypename, pk->f_fstypename, sizeof (p32->f_fstypename));	
+  memcpy(p32->f_fstypename, pk->f_fstypename, sizeof (p32->f_fstypename));
   memcpy(p32->f_mntonname,  pk->f_mntonname,  sizeof (p32->f_mntonname));
   memcpy(p32->f_mntfromname,pk->f_mntfromname,sizeof (p32->f_mntfromname));
 }
@@ -133,7 +133,7 @@
 
   p64->f_namemax	= MIN(pk->f_namemax, USHRT_MAX);
 
-  memcpy(p64->f_fstypename, pk->f_fstypename, sizeof (p64->f_fstypename));	
+  memcpy(p64->f_fstypename, pk->f_fstypename, sizeof (p64->f_fstypename));
   memcpy(p64->f_mntonname,  pk->f_mntonname,  sizeof (p64->f_mntonname));
   memcpy(p64->f_mntfromname,pk->f_mntfromname,sizeof (p64->f_mntfromname));
 }
@@ -156,9 +156,9 @@
   p32->f_files		= MIN(pk->f_files,  ULONG_MAX);
   p32->f_ffree		= MIN(pk->f_ffree,  ULONG_MAX);
   p32->f_favail		= MIN(pk->f_ffree,  ULONG_MAX); /* Hmm.	 May be filesystem dependent.  */
-  
+
   memcpy(&(p32->f_fsid), &(pk->f_fsid), sizeof(__fsid_t));
-  
+
   p32->f_flag		=
       (pk->f_flags & MNT_RDONLY ? ST_RDONLY : 0)
     | (pk->f_flags & MNT_NOSUID ? ST_NOSUID : 0)
@@ -188,9 +188,9 @@
   p64->f_files		= pk->f_files;
   p64->f_ffree		= pk->f_ffree;
   p64->f_favail		= pk->f_ffree; /* Hmm.	May be filesystem dependent.  */
-  
+
   memcpy(&(p64->f_fsid), &(pk->f_fsid), sizeof(__fsid_t));
-  
+
   p64->f_flag		=
       (pk->f_flags & MNT_RDONLY ? ST_RDONLY : 0)
     | (pk->f_flags & MNT_NOSUID ? ST_NOSUID : 0)

Modified: trunk/glibc-ports/kfreebsd/stty.c
===================================================================
--- trunk/glibc-ports/kfreebsd/stty.c	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/stty.c	2009-02-19 08:44:14 UTC (rev 2368)
@@ -1,2 +1,2 @@
-/* use stub only variant */                                   
-#include <misc/stty.c>                                 
+/* use stub only variant */
+#include <misc/stty.c>

Modified: trunk/glibc-ports/kfreebsd/sys/param.h
===================================================================
--- trunk/glibc-ports/kfreebsd/sys/param.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/sys/param.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -101,7 +101,7 @@
 
 /* Machine type dependent parameters. */
 #include <machine/param.h>
-				 
+
 #ifndef DEV_BSHIFT
 #define DEV_BSHIFT	9               /* log2(DEV_BSIZE) */
 #endif
@@ -197,13 +197,13 @@
  *
  * BKVASIZE -	Nominal buffer space per buffer, in bytes.  BKVASIZE is the
  *		minimum KVM memory reservation the kernel is willing to make.
- *		Filesystems can of course request smaller chunks.  Actual 
+ *		Filesystems can of course request smaller chunks.  Actual
  *		backing memory uses a chunk size of a page (PAGE_SIZE).
  *
  *		If you make BKVASIZE too small you risk seriously fragmenting
  *		the buffer KVM map which may slow things down a bit.  If you
- *		make it too big the kernel will not be able to optimally use 
- *		the KVM memory reserved for the buffer cache and will wind 
+ *		make it too big the kernel will not be able to optimally use
+ *		the KVM memory reserved for the buffer cache and will wind
  *		up with too-few buffers.
  *
  *		The default is 16384, roughly 2x the block size used by a
@@ -229,7 +229,7 @@
 
 #define dbtoc(db)			/* calculates devblks to pages */ \
 	((db + (ctodb(1) - 1)) >> (PAGE_SHIFT - DEV_BSHIFT))
- 
+
 #define ctodb(db)			/* calculates pages to devblks */ \
 	((db) << (PAGE_SHIFT - DEV_BSHIFT))
 

Modified: trunk/glibc-ports/kfreebsd/sys/rfork.h
===================================================================
--- trunk/glibc-ports/kfreebsd/sys/rfork.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/sys/rfork.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -64,7 +64,7 @@
 #define RFNOTEG		(1<<3)  /* UNIMPL create new plan9 `note group' */
 #define RFPROC		(1<<4)  /* change child (else changes curproc) */
 #define RFMEM		(1<<5)  /* share `address space' */
-#define RFNOWAIT	(1<<6)  /* parent need not wait() on child */ 
+#define RFNOWAIT	(1<<6)  /* parent need not wait() on child */
 #define RFCNAMEG	(1<<10) /* UNIMPL zero plan9 `name space' */
 #define RFCENVG		(1<<11) /* UNIMPL zero plan9 `env space' */
 #define RFCFDG		(1<<12) /* zero fd table */

Modified: trunk/glibc-ports/kfreebsd/syscalls-inline.h
===================================================================
--- trunk/glibc-ports/kfreebsd/syscalls-inline.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/syscalls-inline.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -35,7 +35,7 @@
 
 ssize_t __syscall_read(int fd, void *buf, size_t nbyte);
 ssize_t __syscall_write(int fd, const void *buf, size_t nbyte);
-ssize_t __syscall_writev(int fd, const struct iovec *iovp, int iovcnt); 
+ssize_t __syscall_writev(int fd, const struct iovec *iovp, int iovcnt);
 libc_hidden_proto (__syscall_read)
 libc_hidden_proto (__syscall_write)
 libc_hidden_proto (__syscall_writev)

Modified: trunk/glibc-ports/kfreebsd/testrtsig.h
===================================================================
--- trunk/glibc-ports/kfreebsd/testrtsig.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/testrtsig.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -39,6 +39,6 @@
       return 0;
   if ( val < 700050) /* FreeBSD 7.0 is 700055 */
       return 0;
-  return 1;    
+  return 1;
 #endif
 }

Modified: trunk/glibc-ports/kfreebsd/x86_64/bits/mcontext.h
===================================================================
--- trunk/glibc-ports/kfreebsd/x86_64/bits/mcontext.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/x86_64/bits/mcontext.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -30,7 +30,7 @@
  * modification, are permitted provided that the following conditions
  * are met:
  * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer 
+ *    notice, this list of conditions and the following disclaimer
  *    in this position and unchanged.
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the

Modified: trunk/glibc-ports/kfreebsd/x86_64/elf/start.S
===================================================================
--- trunk/glibc-ports/kfreebsd/x86_64/elf/start.S	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/x86_64/elf/start.S	2009-02-19 08:44:14 UTC (rev 2368)
@@ -55,7 +55,7 @@
 		...
 					NULL
 
-   But on amd64 %rsp also have to be 16-byte aligned, 
+   But on amd64 %rsp also have to be 16-byte aligned,
    standard C calling convention already passes arguments in registers.
 
    FreeBSD uses %edi as pointer to arguments and environment, %rsp is passed aligned.

Modified: trunk/glibc-ports/kfreebsd/x86_64/getcontext.S
===================================================================
--- trunk/glibc-ports/kfreebsd/x86_64/getcontext.S	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/x86_64/getcontext.S	2009-02-19 08:44:14 UTC (rev 2368)
@@ -21,9 +21,9 @@
 
 .text
 ENTRY(__getcontext)
-        clc	
+        clc
         movq 0(%rsp), %rsi	/* save the return PC value */
- 
+
         DO_CALL (getcontext, 1)
         jb SYSCALL_ERROR_LABEL
 

Modified: trunk/glibc-ports/kfreebsd/x86_64/linuxthreads/pt-machine.h
===================================================================
--- trunk/glibc-ports/kfreebsd/x86_64/linuxthreads/pt-machine.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/x86_64/linuxthreads/pt-machine.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -17,12 +17,12 @@
    License along with the GNU C Library; if not, write to the Free
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
-               
+
 #ifndef _FREEBSD_PT_MACHINE_H
 #define _FREEBSD_PT_MACHINE_H   1
 
-/* 
-  almost all parts are common with linux version 
+/*
+  almost all parts are common with linux version
  */
 
 #include <linuxthreads/sysdeps/x86_64/pt-machine.h>

Modified: trunk/glibc-ports/kfreebsd/x86_64/linuxthreads/sysdep-cancel.h
===================================================================
--- trunk/glibc-ports/kfreebsd/x86_64/linuxthreads/sysdep-cancel.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/x86_64/linuxthreads/sysdep-cancel.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -2,7 +2,7 @@
    This file is part of the GNU C Library.
    Contributed by Jakub Jelinek <jakub at redhat.com>, 2002.
    Modification for FreeBSD contributed by Petr Salinger, 2006.
- 
+
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either

Modified: trunk/glibc-ports/kfreebsd/x86_64/linuxthreads/tls.h
===================================================================
--- trunk/glibc-ports/kfreebsd/x86_64/linuxthreads/tls.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/x86_64/linuxthreads/tls.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -2,7 +2,7 @@
    Copyright (C) 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Modification for FreeBSD by Petr Salinger, 2006.
-   
+
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either

Modified: trunk/glibc-ports/kfreebsd/x86_64/makecontext.S
===================================================================
--- trunk/glibc-ports/kfreebsd/x86_64/makecontext.S	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/x86_64/makecontext.S	2009-02-19 08:44:14 UTC (rev 2368)
@@ -1,4 +1,4 @@
-/* makecontext() for FreeBSD/amd64. 
+/* makecontext() for FreeBSD/amd64.
    Copyright (C) 2006 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Petr Salinger, 2006.
@@ -21,7 +21,7 @@
 #include <sysdep.h>
 #include <ucontext_i.h>
 
-/* 
+/*
    void makecontext(ucontext_t *ucp, void *func(), int argc, ...);
 
 
@@ -36,13 +36,13 @@
     8(%rsp)	arg4	-> ucp.rcx
    16(%rsp)	arg5	-> ucp.r8
    24(%rsp)	arg6	-> ucp.r9
-   i*8+24(%rsp) arg(6+i)-> future stack	
+   i*8+24(%rsp) arg(6+i)-> future stack
 
 */
-	
+
 ENTRY(__makecontext)
 
-	/* Compute the address of the stack.  
+	/* Compute the address of the stack.
 	   The information comes from us_stack element. */
 	movq	oSS_SP(%rdi), %rax
 	addq	oSS_SIZE(%rdi), %rax
@@ -53,7 +53,7 @@
 	/* properly align future stack */
 	andq $-16, %rax
 	subq   $8, %rax
-	
+
 	/* Put the next context into preserved ucp.rbx
 	   (from the uc_link element).  */
 	movq	oLINK(%rdi), %rsi

Modified: trunk/glibc-ports/kfreebsd/x86_64/rfork.S
===================================================================
--- trunk/glibc-ports/kfreebsd/x86_64/rfork.S	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/x86_64/rfork.S	2009-02-19 08:44:14 UTC (rev 2368)
@@ -20,8 +20,8 @@
 
 .text;
 ENTRY (__rfork)
-	/* save the return PC value into RSI */ 
-	movq 0(%rsp), %rsi; 
+	/* save the return PC value into RSI */
+	movq 0(%rsp), %rsi;
 	DO_CALL (rfork, 1)
 	jb SYSCALL_ERROR_LABEL;
 	/* R1 is now 0 for the parent and 1 for the child.  Decrement it to

Modified: trunk/glibc-ports/kfreebsd/x86_64/sigcontextinfo.h
===================================================================
--- trunk/glibc-ports/kfreebsd/x86_64/sigcontextinfo.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/x86_64/sigcontextinfo.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -17,14 +17,14 @@
    02111-1307 USA.  */
 
 /*
-native FreeBSD: 
+native FreeBSD:
         sighandler(int signum, int code,       struct sigcontext * sg, void * fault_ip)
-posix like: 
+posix like:
         sighandler(int signum, siginfo_t * si, struct sigcontext * sg, void * fault_ip)
 */
 
 #define SIGCONTEXT long _code, struct sigcontext * _sg, void *
-#define SIGCONTEXT_EXTRA_ARGS _code, _sg, 
+#define SIGCONTEXT_EXTRA_ARGS _code, _sg,
 
 /* really, really, rest of glibc expects that struct sigcontext is the last argument */
 #define GET_PC(ctx)	((void *) (_sg)->sc_rip)

Modified: trunk/glibc-ports/kfreebsd/x86_64/start_thread.S
===================================================================
--- trunk/glibc-ports/kfreebsd/x86_64/start_thread.S	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/x86_64/start_thread.S	2009-02-19 08:44:14 UTC (rev 2368)
@@ -129,7 +129,7 @@
 
         subq    $16,%rsi
         movq    16(%rsp),%rcx
-        movq    24(%rsp),%rdx  
+        movq    24(%rsp),%rdx
         movq    %rcx, 0(%rsi)
         movq    %rdx, 8(%rsi)
 

Modified: trunk/glibc-ports/kfreebsd/x86_64/sysdep.h
===================================================================
--- trunk/glibc-ports/kfreebsd/x86_64/sysdep.h	2009-02-19 08:18:55 UTC (rev 2367)
+++ trunk/glibc-ports/kfreebsd/x86_64/sysdep.h	2009-02-19 08:44:14 UTC (rev 2368)
@@ -142,13 +142,13 @@
 	stack pointer			rsp
 	C preserved			rbx, rbp, r12-r15
 	some input params		rdi, rsi
-	    
+
     destroyed:
 	return value(s)			rax, rdx, eflags
 	return address from syscall	rcx
 	eflags from syscall		r11
 	used internally			r8-r10
-    
+
     Normal function call, including calls to the system call stub
     functions in the libc, get the first six parameters passed in
     registers and the seventh parameter and later on the stack.  The




More information about the Glibc-bsd-commits mailing list