Lines Matching refs:pid
137 char file[strlen(uml_dir) + UMID_LEN + sizeof("/pid\0")];
138 char pid[sizeof("nnnnn\0")], *end;
141 n = snprintf(file, sizeof(file), "%s/pid", dir);
143 printk(UM_KERN_ERR "is_umdir_used - pid filename too long\n");
153 printk(UM_KERN_ERR "is_umdir_used : couldn't open pid "
160 n = read(fd, pid, sizeof(pid));
162 printk(UM_KERN_ERR "is_umdir_used : couldn't read pid file "
166 printk(UM_KERN_ERR "is_umdir_used : couldn't read pid file "
171 p = strtoul(pid, &end, 0);
172 if (end == pid) {
173 printk(UM_KERN_ERR "is_umdir_used : couldn't parse pid file "
179 printk(UM_KERN_ERR "umid \"%s\" is already in use by pid %d\n",
212 char file[strlen(uml_dir) + UMID_LEN + sizeof("/pid\0")];
213 char pid[sizeof("nnnnn\0")];
216 if (umid_file_name("pid", file, sizeof(file)))
221 printk(UM_KERN_ERR "Open of machine pid file \"%s\" failed: "
226 snprintf(pid, sizeof(pid), "%d\n", getpid());
227 n = write(fd, pid, strlen(pid));
228 if (n != strlen(pid))
229 printk(UM_KERN_ERR "Write of pid file failed - err = %d\n",
382 " The location to place the pid and umid files.\n\n"