This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Update MIPS poll.h


On 3/28/06, Niklaus <niklaus@gmail.com> wrote:
> On 3/28/06, Niklaus <niklaus@gmail.com> wrote:
> > On 3/28/06, Daniel Jacobowitz <drow@false.org> wrote:
> > > Checked in.
> > >
> > > 2006-03-27  Daniel Jacobowitz  <dan@codesourcery.com>
> > >
> > >         * sysdeps/unix/sysv/linux/mips/bits/poll.h (POLLREMOVE, POLLRDHUP):
> > >         Define.
> > >
> > > Index: sysdeps/unix/sysv/linux/mips/bits/poll.h
> > > ===================================================================
> > > RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/mips/bits/poll.h,v
> > > retrieving revision 1.5
> > > diff -u -p -r1.5 poll.h
> > > --- sysdeps/unix/sysv/linux/mips/bits/poll.h    31 Jul 2001 07:46:05 -0000      1.5
> > > +++ sysdeps/unix/sysv/linux/mips/bits/poll.h    28 Mar 2006 04:25:12 -0000
> > > @@ -1,4 +1,4 @@
> > > -/* Copyright (C) 1997, 2001 Free Software Foundation, Inc.
> > > +/* Copyright (C) 1997, 2001, 2006 Free Software Foundation, Inc.
> > >     This file is part of the GNU C Library.
> > >
> > >     The GNU C Library is free software; you can redistribute it and/or
> > > @@ -36,8 +36,10 @@
> > >  #endif
> > >
> > >  #ifdef __USE_GNU
> > > -/* This is an extension for Linux.  */
> > > +/* These are extensions for Linux.  */
> > >  # define POLLMSG       0x400
> > > +# define POLLREMOVE    0x1000
> > > +# define POLLRDHUP     0x2000
> > >  #endif
> > >
> > >  /* Event types always implicitly polled for.  These bits need not be set in
> > >
> >
> > diff -urN sysdepsold/unix/sysv/linux/m68k/bits/poll.h
> > sysdeps/unix/sysv/linux/m68k/bits/poll.h
> > --- sysdepsold/unix/sysv/linux/m68k/bits/poll.h 2001-07-31
> > 13:16:06.000000000 +0530
> > +++ sysdeps/unix/sysv/linux/m68k/bits/poll.h    2006-03-28
> > 19:58:15.000000000 +0530
> > @@ -26,6 +26,8 @@
> >  #define POLLIN         0x001           /* There is data to read.  */
> >  #define POLLPRI                0x002           /* There is urgent
> > data to read.  */
> >  #define POLLOUT                0x004           /* Writing now will
> > not block.  */
> > +#define POLLREMOVE     0x1000
> > +#define POLLRDHUP      0x2000
> >
> >
> > Can we do the same for m68k ?
> >
> and sparc
> diff -urN sysdepsold/unix/sysv/linux/sparc/bits/poll.h
> sysdeps/unix/sysv/linux/sparc/bits/poll.h
> --- sysdepsold/unix/sysv/linux/sparc/bits/poll.h        2006-03-28
> 20:07:19.000000000 +0530
> +++ sysdeps/unix/sysv/linux/sparc/bits/poll.h   2006-03-28
> 20:14:18.000000000 +0530
> @@ -26,7 +26,8 @@
>  #define POLLIN         0x001           /* There is data to read.  */
>  #define POLLPRI                0x002           /* There is urgent
> data to read.  */
>  #define POLLOUT                0x004           /* Writing now will
> not block.  */
> -
> +#define POLLREMOVE     1024
> +#define POLLRDHUP      2048
>  #ifdef __USE_XOPEN
>  /* These values are defined in XPG4.2.  */
>  # define POLLRDNORM    0x040           /* Normal data may be read.  */
>
>
I am not sure if it is 100% correct. Please do review.
Main tree. I forgot the __USE_GNU

diff -urpN sysdepsold/unix/sysv/linux/sparc/bits/poll.h
sysdeps/unix/sysv/linux/sparc/bits/poll.h
--- sysdepsold/unix/sysv/linux/sparc/bits/poll.h        2006-03-28
20:07:19.000000000 +0530
+++ sysdeps/unix/sysv/linux/sparc/bits/poll.h   2006-03-28
20:30:51.000000000 +0530
@@ -27,6 +27,12 @@
 #define POLLPRI                0x002           /* There is urgent
data to read.  */
 #define POLLOUT                0x004           /* Writing now will
not block.  */

+#ifdef __USE_GNU
+/* These are for linux */
+#define POLLREMOVE     1024
+#define POLLRDHUP      2048
+#endif
+
 #ifdef __USE_XOPEN
 /* These values are defined in XPG4.2.  */
 # define POLLRDNORM    0x040           /* Normal data may be read.  */



Ports tree.I forgot the __USE_GNU
diff -urpN sysdepsold/unix/sysv/linux/m68k/bits/poll.h
sysdeps/unix/sysv/linux/m68k/bits/poll.h
--- sysdepsold/unix/sysv/linux/m68k/bits/poll.h 2001-07-31
13:16:06.000000000 +0530
+++ sysdeps/unix/sysv/linux/m68k/bits/poll.h    2006-03-28
20:22:05.000000000 +0530
@@ -27,6 +27,12 @@
 #define POLLPRI                0x002           /* There is urgent
data to read.  */
 #define POLLOUT                0x004           /* Writing now will
not block.  */

+#ifdef __USE_GNU
+/* These  are for linux */
+#define POLLREMOVE     0x1000
+#define POLLRDHUP      0x2000
+#endif
+
 #ifdef __USE_XOPEN
 /* These values are defined in XPG4.2.  */
 # define POLLRDNORM    0x040           /* Normal data may be read.  */




> > > --
> > > Daniel Jacobowitz
> > > CodeSourcery
> > >
> > >
> >
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]