This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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]

[COMMITTED PATCH] Adjust generic swapon prototype to match Linux version.


Commit d39baad11e5092b56621902f8406c64c092a90dc:

	2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>

		* misc/swapon.c (swapon): Update definition, adding FLAGS
		parameter to match prototype.

broke all non-Linux builds.  I didn't notice the patch go by, but I imagine
it was motivated by some new Linux port that lacks the system call.  Yet
the stub definition was for the original signature of swapon (from 4.2BSD)
and went with the stub (sysdeps/generic) version of sys/swap.h, not the
Linux one.  

I don't really expect any new ports to any system to actually define a
swapon function, so it doesn't much matter which prototype it has.

2013-11-21  Roland McGrath  <roland@hack.frob.com>

	* sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.

--- a/sysdeps/generic/sys/swap.h
+++ b/sysdeps/generic/sys/swap.h
@@ -24,7 +24,7 @@
 
 /* Make the block special device PATH available to the system for swapping.
    This call is restricted to the super-user.  */
-extern int swapon (const char *__path) __THROW;
+extern int swapon (const char *__path, int __flags) __THROW;
 
 /* Stop using block special device PATH for swapping.  */
 extern int swapoff (const char *__path) __THROW;


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