toaruos/userspace/uname.c
Kevin Lange c88d6dcb4f Add or update the heading comments for user apps.
Adds useful descriptions to ones that were lacking them, updates ones
that were innacurate, etc.
2012-07-06 21:08:28 -07:00

18 lines
321 B
C

/* vim: tabstop=4 shiftwidth=4 noexpandtab
*
* uname
*
* Prints the kernel version information.
*/
#include <stdio.h>
#include <syscall.h>
DEFN_SYSCALL1(kernel_string_XXX, 25, char *);
int main(int argc, char * argv[]) {
char _uname[1024];
syscall_kernel_string_XXX(_uname);
fprintf(stdout, "%s\n", _uname);
}