~hamo/ubuntu/precise/grub2/grub2.hi_res

« back to all changes in this revision

Viewing changes to grub-core/gnulib/sys_wait.in.h

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson, Colin Watson, Robert Millan, Updated translations
  • Date: 2010-11-22 12:24:56 UTC
  • mfrom: (1.26.4 upstream) (17.3.36 sid)
  • mto: (17.3.43 sid)
  • mto: This revision was merged to the branch mainline in revision 89.
  • Revision ID: james.westby@ubuntu.com-20101122122456-y82z3sfb7k4zfdcc
Tags: 1.99~20101122-1
[ Colin Watson ]
* New Bazaar snapshot.  Too many changes to list in full, but some of the
  more user-visible ones are as follows:
  - GRUB script:
    + Function parameters, "break", "continue", "shift", "setparams",
      "return", and "!".
    + "export" command supports multiple variable names.
    + Multi-line quoted strings support.
    + Wildcard expansion.
  - sendkey support.
  - USB hotunplugging and USB serial support.
  - Rename CD-ROM to cd on BIOS.
  - Add new --boot-directory option to grub-install, grub-reboot, and
    grub-set-default; the old --root-directory option is still accepted
    but was often confusing.
  - Basic btrfs detection/UUID support (but no file reading yet).
  - bash-completion for utilities.
  - If a device is listed in device.map, always assume that it is
    BIOS-visible rather than using extra layers such as LVM or RAID.
  - Add grub-mknetdir script (closes: #550658).
  - Remove deprecated "root" command.
  - Handle RAID devices containing virtio components.
  - GRUB Legacy configuration file support (via grub-menulst2cfg).
  - Keyboard layout support (via grub-mklayout and grub-kbdcomp).
  - Check generated grub.cfg for syntax errors before saving.
  - Pause execution for at most ten seconds if any errors are displayed,
    so that the user has a chance to see them.
  - Support submenus.
  - Write embedding zone using Reed-Solomon, so that it's robust against
    being partially overwritten (closes: #550702, #591416, #593347).
  - GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY merged
    into a single GRUB_DISABLE_RECOVERY variable.
  - Fix loader memory allocation failure (closes: #551627).
  - Don't call savedefault on recovery entries (closes: #589325).
  - Support triple-indirect blocks on ext2 (closes: #543924).
  - Recognise DDF1 fake RAID (closes: #603354).

[ Robert Millan ]
* Use dpkg architecture wildcards.

[ Updated translations ]
* Slovenian (Vanja Cvelbar).  Closes: #604003
* Dzongkha (dawa pemo via Tenzin Dendup).  Closes: #604102

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* A POSIX-like <sys/wait.h>.
 
2
   Copyright (C) 2001-2003, 2005-2010 Free Software Foundation, Inc.
 
3
 
 
4
   This program is free software; you can redistribute it and/or modify
 
5
   it under the terms of the GNU General Public License as published by
 
6
   the Free Software Foundation; either version 3, or (at your option)
 
7
   any later version.
 
8
 
 
9
   This program is distributed in the hope that it will be useful,
 
10
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
   GNU General Public License for more details.
 
13
 
 
14
   You should have received a copy of the GNU General Public License
 
15
   along with this program; if not, write to the Free Software Foundation,
 
16
   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
17
 
 
18
 
 
19
#ifndef _GL_SYS_WAIT_H
 
20
 
 
21
#if __GNUC__ >= 3
 
22
@PRAGMA_SYSTEM_HEADER@
 
23
#endif
 
24
 
 
25
/* The include_next requires a split double-inclusion guard.  */
 
26
#if !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
 
27
# @INCLUDE_NEXT@ @NEXT_SYS_WAIT_H@
 
28
#endif
 
29
 
 
30
#ifndef _GL_SYS_WAIT_H
 
31
#define _GL_SYS_WAIT_H
 
32
 
 
33
#if !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
 
34
/* Unix API.  */
 
35
 
 
36
/* The following macros apply to an argument x, that is a status of a process,
 
37
   as returned by waitpid().
 
38
   On nearly all systems, including Linux/x86, WEXITSTATUS are bits 15..8 and
 
39
   WTERMSIG are bits 7..0, while BeOS uses the opposite.  Therefore programs
 
40
   have to use the abstract macros.  */
 
41
 
 
42
/* For valid x, exactly one of WIFSIGNALED(x), WIFEXITED(x), WIFSTOPPED(x)
 
43
   is true.  */
 
44
# ifndef WIFSIGNALED
 
45
#  define WIFSIGNALED(x) (WTERMSIG (x) != 0 && WTERMSIG(x) != 0x7f)
 
46
# endif
 
47
# ifndef WIFEXITED
 
48
#  define WIFEXITED(x) (WTERMSIG (x) == 0)
 
49
# endif
 
50
# ifndef WIFSTOPPED
 
51
#  define WIFSTOPPED(x) (WTERMSIG (x) == 0x7f)
 
52
# endif
 
53
 
 
54
/* The termination signal. Only to be accessed if WIFSIGNALED(x) is true.  */
 
55
# ifndef WTERMSIG
 
56
#  define WTERMSIG(x) ((x) & 0x7f)
 
57
# endif
 
58
 
 
59
/* The exit status. Only to be accessed if WIFEXITED(x) is true.  */
 
60
# ifndef WEXITSTATUS
 
61
#  define WEXITSTATUS(x) (((x) >> 8) & 0xff)
 
62
# endif
 
63
 
 
64
/* True if the process dumped core.  Not standardized by POSIX.  */
 
65
# ifndef WCOREDUMP
 
66
#  define WCOREDUMP(x) ((x) & 0x80)
 
67
# endif
 
68
 
 
69
# ifdef __cplusplus
 
70
extern "C" {
 
71
# endif
 
72
 
 
73
/* Declarations of functions.  */
 
74
 
 
75
# ifdef __cplusplus
 
76
}
 
77
# endif
 
78
 
 
79
#else
 
80
/* Native Windows API.  */
 
81
 
 
82
# include <process.h>
 
83
 
 
84
# define waitpid(pid,statusp,options) _cwait (statusp, pid, WAIT_CHILD)
 
85
 
 
86
/* The following macros apply to an argument x, that is a status of a process,
 
87
   as returned by waitpid() or, equivalently, _cwait() or GetExitCodeProcess().
 
88
   This value is simply an 'int', not composed of bit fields.  */
 
89
 
 
90
/* When an unhandled fatal signal terminates a process, the exit code is 3.  */
 
91
# define WIFSIGNALED(x) ((x) == 3)
 
92
# define WIFEXITED(x) ((x) != 3)
 
93
# define WIFSTOPPED(x) 0
 
94
 
 
95
/* The signal that terminated a process is not known posthum.  */
 
96
# define WTERMSIG(x) SIGTERM
 
97
 
 
98
# define WEXITSTATUS(x) (x)
 
99
 
 
100
/* There are no core dumps.  */
 
101
# define WCOREDUMP(x) 0
 
102
 
 
103
#endif
 
104
 
 
105
#endif /* _GL_SYS_WAIT_H */
 
106
#endif /* _GL_SYS_WAIT_H */