~ubuntu-branches/debian/experimental/sysvinit/experimental

« back to all changes in this revision

Viewing changes to .pc/93_run_initctl.patch/src/initreq.h

  • Committer: Package Import Robot
  • Author(s): Roger Leigh, Roger Leigh, Steve Langasek
  • Date: 2012-04-21 12:11:45 UTC
  • mfrom: (9.1.33 sid)
  • Revision ID: package-import@ubuntu.com-20120421121145-tcyy57v1j6gx946d
Tags: 2.88dsf-23
[ Roger Leigh ]
* Acknowledge NMU for translation updates.  Thanks to Christian
  Perrier.
* debian/control:
  - Upgrade to Standards-Version 3.9.3.
  - Build-Depend on debhelper v9.
  - Correct Vcs-Git URL.
* debian/rules:
  - Use DEB_HOST_ARCH_OS = hurd rather than
    DEB_HOST_ARCH = hurd-i386.   Thanks to Pino Toscano.
* debian/patches:
  - 11_lfs_cflags.patch: Add patch for enabling large file support,
    needed on GNU/Hurd, but useful for all platforms.
  - 73_lfs_cflags.patch: Add patch for enabling large file support
    in startpar.
* initscripts:
  - Moved RAM* settings from /etc/default/rcS to /etc/default/tmpfs.
    This ensures that the settings are equivalent for upgrades and
    new installations, but will require manual configuration of the
    settings for upgrades (no migration from /etc/default/rcS to
    /etc/default/tmpfs will take place, due to tmpfs being a
    conffile).  tmpf(5) manual page added to document all aspects
    of tmpfs configuration, including the existing documentation in
    rcS(5).
  - Drop the use of .ramfs dotfiles in /run and /run/lock.  These
    were a legacy of /lib/init/rw and were not actually used by
    anything.  Closes: #403863.
  - Drop /etc/init.d/mountoverflowtmp.  This has been merged into
    the general tmpfs on /tmp handling functions.  This means the
    generic RAMTMP configuration is used for the overflowtmp.
    Closes: #567539.
  - It is now possible to configure a tmpfs mount size limit as a
    percentage of the total VM size (%VM) as well as a percentage
    of the RAM size (%).  This is computed by tmpfs.sh and the
    tmpfs mounts are remounted with the updated size limit after
    swap becomes available.
  - An fstab entry for /tmp overrides RAMTMP.  Document tmpfs
    override and tmpfs defaults in tmpfs(5), also undeprecating the
    tmpfs settings.  Closes: #585540, #665995.
  - An fstab entry for /run/lock or /run/shm overrides RAMLOCK and
    RAMSHM.
  - bootclean cleans /tmp, /run and /run/lock before any filesystems
    are mounted as well as after local and network mounts.  This
    permits cleaning of directories which would otherwise be hidden
    by mountpoints later in the boot process.
    Closes: #55707, #558000, #666871.  Additionally clean up
    /lib/init/rw in case any files were hidden by the (now removed)
    tmpfs mount at this location.  Closes: #652625.
  - Removed last trace of the long-removed EDITMOTD from the
    postinst.  Closes: #438895.
  - Removed documentation of #346342 in rcS(5).  This is no longer
    an issue now tzdata keeps a copy of the data on the rootfs.
    Closes: #385172.
  - Correct description of TMPTIME in rcS(5).  Thanks to Alan J.
    Greenberger.  Closes: #562500.
  - urandom: Applied a series of patches from John Denker to
    improve the integrity of random number generation.  Many thanks.
    Closes: #596479, #596480, #596481, #596482, #596483.
* sysv-rc:
  - Remove old upgrade logic from maintainer scripts not required
    for wheezy.
  - Migrate users of obsolete static boot ordering to dynamic boot
    ordering.
  - Remove use of /etc/init.d/.legacy-bootordering.  Closes: #668312.
  - Improve help text of debconf message when it is not possible to
    automatically enable dynamic boot ordering.  Provide explicit
    instructions for how to purge obsolete init scripts.
    Closes: #550425.
  - etc/init.d/rc: Ensure linprocfs is mounted on kFreeBSD.  Thanks
    to Robert Millan.  Closes: #659480.
  - Drop undocumented CONCURRENCY setting from /etc/init.d/rc.
    Closes: #518249, #540448, #539261.  Note that this still contains
    internal fallbacks to support non-insserv booting, which may be
    removed at a later date.
  - invoke-rc.d:
    + Minor manual page corrections.  Thanks to Anthony Fiumara.
      Closes: #664816.
    + Remove mention of the "dpkg Programmers' Manual" and replace
      with references to Debian Policy.  Closes: #543793.
  - update-rc.d:
    + Correctly warn about non-LSB standard runlevels.  Thanks to
      Chris Hiestand for this patch.  Closes: #614895.
    + Remove obsolete documentation of
      /var/lib/sysv-rc/legacy-bootsequence.  Thanks to Thomas Hood.
      Closes: #623051.
* sysvinit:
  - Minor corrections for halt(8) manual page.  Thanks to
    Christoph Anton Mitterer.  Closes: #587923.
  - Installation with debootstrap --variant=fakechroot now works, due
    to only migrating the old control channel when it is still
    present.  Thanks to Michael Gilbert.  Closes: #596284.
* sysvinit-utils:
  - Recommend bootlogd.  Closes: #659490.  This means that booklogd
    will be installed by default, but will be removable.
    Closes: #232569.
  - Correct documentation of the startpar -i option.  Closes: #545438.
  - Correct startpar(8) SEE ALSO section.  Closes: #634146.
  - Correct wording in service(8).  Thanks to Joey Hess and Regid
    Ichira.  Closes: #545401, #667745.

[ Steve Langasek ]
* debian/service/service: fix upstart compatibility to not try to use the
  upstart commands when init isn't upstart.  Closes: #636054.
* debian/rules: pass CFLAGS when building startpar.
* Fix startpar to not run init scripts that have matching upstart jobs,
  instead waiting for a signal from upstart.  Closes: #660824.
    to Robert Millan.  (Closes: #659480)
* sysvinit:
  - Don't restart or perform initctl migration if systemd is
    running.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * initreq.h    Interface to talk to init through /dev/initctl.
 
3
 *
 
4
 *              Copyright (C) 1995-2004 Miquel van Smoorenburg
 
5
 *
 
6
 *              This program is free software; you can redistribute it and/or modify
 
7
 *              it under the terms of the GNU General Public License as published by
 
8
 *              the Free Software Foundation; either version 2 of the License, or
 
9
 *              (at your option) any later version.
 
10
 *
 
11
 *              This program is distributed in the hope that it will be useful,
 
12
 *              but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 *              MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 *              GNU General Public License for more details.
 
15
 *
 
16
 *              You should have received a copy of the GNU General Public License
 
17
 *              along with this program; if not, write to the Free Software
 
18
 *              Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
19
 *
 
20
 * Version:     @(#)initreq.h  1.28  31-Mar-2004 MvS
 
21
 *
 
22
 */
 
23
#ifndef _INITREQ_H
 
24
#define _INITREQ_H
 
25
 
 
26
#include <sys/param.h>
 
27
 
 
28
#if defined(__FreeBSD_kernel__)
 
29
#  define INIT_FIFO  "/etc/.initctl"
 
30
#else
 
31
#  define INIT_FIFO  "/dev/initctl"
 
32
#endif
 
33
 
 
34
#define INIT_MAGIC 0x03091969
 
35
#define INIT_CMD_START          0
 
36
#define INIT_CMD_RUNLVL         1
 
37
#define INIT_CMD_POWERFAIL      2
 
38
#define INIT_CMD_POWERFAILNOW   3
 
39
#define INIT_CMD_POWEROK        4
 
40
#define INIT_CMD_BSD            5
 
41
#define INIT_CMD_SETENV         6
 
42
#define INIT_CMD_UNSETENV       7
 
43
 
 
44
#ifdef MAXHOSTNAMELEN
 
45
#  define INITRQ_HLEN   MAXHOSTNAMELEN
 
46
#else
 
47
#  define INITRQ_HLEN   64
 
48
#endif
 
49
 
 
50
/*
 
51
 *      This is what BSD 4.4 uses when talking to init.
 
52
 *      Linux doesn't use this right now.
 
53
 */
 
54
struct init_request_bsd {
 
55
        char    gen_id[8];              /* Beats me.. telnetd uses "fe" */
 
56
        char    tty_id[16];             /* Tty name minus /dev/tty      */
 
57
        char    host[INITRQ_HLEN];      /* Hostname                     */
 
58
        char    term_type[16];          /* Terminal type                */
 
59
        int     signal;                 /* Signal to send               */
 
60
        int     pid;                    /* Process to send to           */
 
61
        char    exec_name[128];         /* Program to execute           */
 
62
        char    reserved[128];          /* For future expansion.        */
 
63
};
 
64
 
 
65
 
 
66
/*
 
67
 *      Because of legacy interfaces, "runlevel" and "sleeptime"
 
68
 *      aren't in a seperate struct in the union.
 
69
 *
 
70
 *      The weird sizes are because init expects the whole
 
71
 *      struct to be 384 bytes.
 
72
 */
 
73
struct init_request {
 
74
        int     magic;                  /* Magic number                 */
 
75
        int     cmd;                    /* What kind of request         */
 
76
        int     runlevel;               /* Runlevel to change to        */
 
77
        int     sleeptime;              /* Time between TERM and KILL   */
 
78
        union {
 
79
                struct init_request_bsd bsd;
 
80
                char                    data[368];
 
81
        } i;
 
82
};
 
83
 
 
84
#endif