+2008-09-28 Bruno Haible <bruno@clisp.org>
+
+ New module 'sched'.
+ * modules/sched: New file.
+ * lib/sched.in.h: New file.
+ * m4/sched_h.m4: New file.
+ * doc/posix-headers/sched.texi: Mention the new module.
+
2008-09-27 Eric Blake <ebb9@byu.net>
Fix previous patch, and tweak references to $0.
POSIX specification: @url{http://www.opengroup.org/susv3xbd/sched.h.html}
-Gnulib module: ---
+Gnulib module: sched
Portability problems fixed by Gnulib:
@itemize
+@item
+This header file is missing on some platforms:
+mingw, BeOS.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
-@item
-This header file is missing on some platforms:
-mingw, BeOS.
@end itemize
--- /dev/null
+/* Replacement <sched.h> for platforms that lack it.
+ Copyright (C) 2008 Free Software Foundation, Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+#ifndef _GL_SCHED_H
+#define _GL_SCHED_H
+
+struct sched_param
+{
+ int sched_priority;
+};
+
+#endif /* _GL_SCHED_H */
--- /dev/null
+# sched_h.m4 serial 1
+dnl Copyright (C) 2008 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl Written by Bruno Haible.
+
+AC_DEFUN([gl_SCHED_H],
+[
+ AC_CHECK_HEADERS_ONCE([sched.h])
+ if test $ac_cv_header_sched_h = yes; then
+ SCHED_H=''
+ else
+ SCHED_H='sched.h'
+ fi
+ AC_SUBST([SCHED_H])
+])
--- /dev/null
+Description:
+A <sched.h> include file.
+
+Files:
+lib/sched.in.h
+m4/sched_h.m4
+
+Depends-on:
+
+configure.ac:
+gl_SCHED_H
+
+Makefile.am:
+BUILT_SOURCES += $(SPAWN_H)
+
+# We need the following in order to create a replacement for <sched.h> when
+# the system doesn't have one.
+sched.h: sched.in.h
+ rm -f $@-t $@
+ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+ cat < $(srcdir)/sched.in.h; \
+ } > $@-t
+ mv $@-t $@
+MOSTLYCLEANFILES += sched.h sched.h-t
+
+Include:
+<sched.h>
+
+License:
+LGPL
+
+Maintainer:
+Bruno Haible
+