m68knommu: remove local gettimeofday code
[wrt350n-kernel.git] / arch / um / kernel / umid.c
blob039e16efcd5571a7a520f051cf5efa1c61c61b54
1 /*
2 * Copyright (C) 2001, 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
4 */
6 #include "asm/errno.h"
7 #include "init.h"
8 #include "os.h"
9 #include "kern.h"
10 #include "linux/kernel.h"
12 /* Changed by set_umid_arg */
13 static int umid_inited = 0;
15 static int __init set_umid_arg(char *name, int *add)
17 int err;
19 if(umid_inited){
20 printf("umid already set\n");
21 return 0;
24 *add = 0;
25 err = set_umid(name);
26 if(err == -EEXIST)
27 printf("umid '%s' already in use\n", name);
28 else if(!err)
29 umid_inited = 1;
31 return 0;
34 __uml_setup("umid=", set_umid_arg,
35 "umid=<name>\n"
36 " This is used to assign a unique identity to this UML machine and\n"
37 " is used for naming the pid file and management console socket.\n\n"