summaryrefslogtreecommitdiffstats
path: root/move/runlevel_set.c
blob: 94f7b5933cf1519a0ea50999dce2dd96728437c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <utmp.h>

int main(int argc, char **argv)
{
	struct utmp utmp;

        if (argc <= 1) {
                fprintf(stderr, "need an argument\n");
                return 1;
        }

	memset(&utmp, 0, sizeof(utmp));
	utmp.ut_type = RUN_LVL;
        utmp.ut_pid = argv[1][0];

	setutent();
	pututline(&utmp);
	endutent();

        return 0;
}
li> <LI> <B>Messages sorted by:</B> <a href="date.html#529">[ date ]</a> <a href="thread.html#529">[ thread ]</a> <a href="subject.html#529">[ subject ]</a> <a href="author.html#529">[ author ]</a> </LI> </UL> <HR> <!--beginarticle--> <PRE>Glad to see that you and your cat and your belongings have safely made it halfway across the globe. :D On Mon, Feb 27, 2012 at 10:27 PM, Patricia Fraser &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-marketing">trish at thefrasers.org</A>&gt;wrote: &gt;<i> Hi all, </I>&gt;<i> </I>&gt;<i> Sorry I haven't been around and available for the last little while - </I>&gt;<i> I'm in the process of moving still, so this week I'll still be </I>&gt;<i> unavailable for meetings. However, I'm in my house, cat and all, from </I>&gt;<i> Sunday, so next week I'll be back on deck! </I>&gt;<i> </I>&gt;<i> If I can grab a connected half-hour before the end of the week to look </I>&gt;<i> at the texts for the install screens, I will, but I can't promise. So </I>&gt;<i> if anyone else has suggestions for the texts, please do make them! </I>&gt;<i> </I>&gt;<i> Cheers, </I>&gt;<i> </I>&gt;<i> -- </I>&gt;<i> Trish Fraser, VVMZ4 91L2V </I>&gt;<i> -35.67896, 142.66637 </I>&gt;<i> Tue Feb 28 07:24:47 EST 2012 </I>&gt;<i> GNU/Linux 1997-2011 #283226 linuxcounter.net </I>&gt;<i> hermes up 0 hour(s), 26 min. </I>&gt;<i> kernel 2.6.38.8-desktop-10.mga </I>&gt;<i> -- </I>&gt;<i> </I>&gt;<i> _______________________________________________ </I>&gt;<i> Mageia-artwork mailing list </I>&gt;<i> <A HREF="https://www.mageia.org/mailman/listinfo/mageia-marketing">Mageia-artwork at mageia.org</A> </I>&gt;<i> <A HREF="https://www.mageia.org/mailman/listinfo/mageia-artwork">https://www.mageia.org/mailman/listinfo/mageia-artwork</A> </I>&gt;<i> </I>&gt;<i> </I>-------------- next part -------------- An HTML attachment was scrubbed... URL: &lt;/pipermail/mageia-marketing/attachments/20120227/a72cafe9/attachment.html&gt; </PRE> <!--endarticle--> <HR> <P><UL> <!--threads--> <LI>Previous message: <A HREF="000528.html">[Mageia-marketing] Apologies </A></li> <LI>Next message: <A HREF="000530.html">[Mageia-marketing] Mageia IRC cloaks and @mageia.org email addresses </A></li> <LI> <B>Messages sorted by:</B> <a href="date.html#529">[ date ]</a> <a href="thread.html#529">[ thread ]</a> <a href="subject.html#529">[ subject ]</a> <a href="author.html#529">[ author ]</a> </LI> </UL> <hr> <a href="https://www.mageia.org/mailman/listinfo/mageia-marketing">More information about the Mageia-marketing mailing list</a><br> </body></html>