Lines Matching refs:cmdline
120 * \param cmdline returns the command line string
121 * \param size size of the cmdline buffer
125 os_get_command_line(char *cmdline, size_t size)
130 strncpy(cmdline, args, size);
132 cmdline[size - 1] = 0;
136 int f = open("/proc/self/cmdline", O_RDONLY);
138 const int n = read(f, cmdline, size - 1);
143 if (cmdline[i] == 0) {
144 cmdline[i] = ' ';
148 cmdline[n] = 0;
156 cmdline[0] = 0;