* [gentoo-commits] gentoo-projects commit in portage-utils/libq: compat.c
@ 2009-03-27 20:59 Fabian Groffen (grobian)
0 siblings, 0 replies; 5+ messages in thread
From: Fabian Groffen (grobian) @ 2009-03-27 20:59 UTC (permalink / raw
To: gentoo-commits
grobian 09/03/27 20:59:05
Modified: compat.c
Log:
don't define strcasestr static, that conflicts with gnulib's definition
Revision Changes Path
1.3 portage-utils/libq/compat.c
file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/portage-utils/libq/compat.c?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/portage-utils/libq/compat.c?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/portage-utils/libq/compat.c?r1=1.2&r2=1.3
Index: compat.c
===================================================================
RCS file: /var/cvsroot/gentoo-projects/portage-utils/libq/compat.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- compat.c 12 Apr 2008 17:25:59 -0000 1.2
+++ compat.c 27 Mar 2009 20:59:05 -0000 1.3
@@ -9,7 +9,7 @@
#define S_BLKSIZE DK_DEVID_BLKSIZE
/* strcasestr is a GNU extention */
-static char* strcasestr(const char *big, const char *little) {
+char* strcasestr(const char *big, const char *little) {
char* b = alloca((strlen(big) + 1) * sizeof(char));
char* l = alloca((strlen(little) + 1) * sizeof(char));
char* off;
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-commits] gentoo-projects commit in portage-utils/libq: compat.c
@ 2009-09-08 17:21 Fabian Groffen (grobian)
0 siblings, 0 replies; 5+ messages in thread
From: Fabian Groffen (grobian) @ 2009-09-08 17:21 UTC (permalink / raw
To: gentoo-commits
grobian 09/09/08 17:21:51
Modified: compat.c
Log:
Add support for HPUX and FreeMiNT by Michael Haubenwallner and Alan Hourihane
Revision Changes Path
1.4 portage-utils/libq/compat.c
file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/portage-utils/libq/compat.c?rev=1.4&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/portage-utils/libq/compat.c?rev=1.4&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/portage-utils/libq/compat.c?r1=1.3&r2=1.4
Index: compat.c
===================================================================
RCS file: /var/cvsroot/gentoo-projects/portage-utils/libq/compat.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- compat.c 27 Mar 2009 20:59:05 -0000 1.3
+++ compat.c 8 Sep 2009 17:21:50 -0000 1.4
@@ -30,6 +30,8 @@
*strp = xstrdup(str); \
} while (0)
+#elif defined(__hpux__) || defined(__MINT__)
+ /* must not include both dir.h and dirent.h on hpux11..11 & FreeMiNT */
#else /* __sun__ */
# include <sys/dir.h>
#endif
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-commits] gentoo-projects commit in portage-utils/libq: compat.c
@ 2009-09-26 21:02 Fabian Groffen (grobian)
0 siblings, 0 replies; 5+ messages in thread
From: Fabian Groffen (grobian) @ 2009-09-26 21:02 UTC (permalink / raw
To: gentoo-commits
grobian 09/09/26 21:02:02
Modified: compat.c
Log:
move S_BLKSIZE definitions into libq/compat.c per solar's suggestion
Revision Changes Path
1.5 portage-utils/libq/compat.c
file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/portage-utils/libq/compat.c?rev=1.5&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/portage-utils/libq/compat.c?rev=1.5&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/portage-utils/libq/compat.c?r1=1.4&r2=1.5
Index: compat.c
===================================================================
RCS file: /var/cvsroot/gentoo-projects/portage-utils/libq/compat.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- compat.c 8 Sep 2009 17:21:50 -0000 1.4
+++ compat.c 26 Sep 2009 21:02:02 -0000 1.5
@@ -35,3 +35,20 @@
#else /* __sun__ */
# include <sys/dir.h>
#endif
+
+/* AIX */
+#ifdef _AIX
+# include <sys/stat.h>
+# define S_BLKSIZE DEV_BSIZE
+#endif
+
+/* Windows Interix */
+#ifdef __INTERIX
+# define S_BLKSIZE S_BLOCK_SIZE
+#endif
+
+/* HP-UX */
+#ifdef __hpux
+# define S_BLKSIZE st.st_blksize
+#endif
+
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-commits] gentoo-projects commit in portage-utils/libq: compat.c
@ 2011-04-15 23:09 Mike Frysinger (vapier)
0 siblings, 0 replies; 5+ messages in thread
From: Mike Frysinger (vapier) @ 2011-04-15 23:09 UTC (permalink / raw
To: gentoo-commits
vapier 11/04/15 23:09:56
Modified: compat.c
Log:
add O_CLOEXEC fallback define #363271
Revision Changes Path
1.7 portage-utils/libq/compat.c
file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/libq/compat.c?rev=1.7&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/libq/compat.c?rev=1.7&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/libq/compat.c?r1=1.6&r2=1.7
Index: compat.c
===================================================================
RCS file: /var/cvsroot/gentoo-projects/portage-utils/libq/compat.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- compat.c 17 Mar 2011 03:54:53 -0000 1.6
+++ compat.c 15 Apr 2011 23:09:56 -0000 1.7
@@ -51,3 +51,8 @@
#ifdef __hpux
# define S_BLKSIZE st.st_blksize
#endif
+
+/* Older systems */
+#ifndef O_CLOEXEC
+# define O_CLOEXEC 0
+#endif
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-commits] gentoo-projects commit in portage-utils/libq: compat.c
@ 2014-01-07 19:19 Mike Frysinger (vapier)
0 siblings, 0 replies; 5+ messages in thread
From: Mike Frysinger (vapier) @ 2014-01-07 19:19 UTC (permalink / raw
To: gentoo-commits
vapier 14/01/07 19:19:17
Modified: compat.c
Log:
delete O_CLOEXEC fallback logic as porting.h already does this
Revision Changes Path
1.8 portage-utils/libq/compat.c
file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/libq/compat.c?rev=1.8&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/libq/compat.c?rev=1.8&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/libq/compat.c?r1=1.7&r2=1.8
Index: compat.c
===================================================================
RCS file: /var/cvsroot/gentoo-projects/portage-utils/libq/compat.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- compat.c 15 Apr 2011 23:09:56 -0000 1.7
+++ compat.c 7 Jan 2014 19:19:17 -0000 1.8
@@ -51,8 +51,3 @@
#ifdef __hpux
# define S_BLKSIZE st.st_blksize
#endif
-
-/* Older systems */
-#ifndef O_CLOEXEC
-# define O_CLOEXEC 0
-#endif
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-01-07 19:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-27 20:59 [gentoo-commits] gentoo-projects commit in portage-utils/libq: compat.c Fabian Groffen (grobian)
-- strict thread matches above, loose matches on Subject: below --
2009-09-08 17:21 Fabian Groffen (grobian)
2009-09-26 21:02 Fabian Groffen (grobian)
2011-04-15 23:09 Mike Frysinger (vapier)
2014-01-07 19:19 Mike Frysinger (vapier)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox