Skip to content

Commit

Permalink
Add name for a release
Browse files Browse the repository at this point in the history
  • Loading branch information
OlliV committed Apr 6, 2015
1 parent 6c22146 commit be38616
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/src/tish/tish_sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ static int tish_uname(char ** args)
char * arg = strtok_r(0, DELIMS, args);
int mib[2];
int len;
char str[20];
char str[40];
char buf1[40];
char buf2[40];
size_t str_len = sizeof(str);
Expand Down
5 changes: 4 additions & 1 deletion kern/kern_mib.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ SYSCTL_NODE(, OID_AUTO, security, CTLFLAG_RW, 0,
#ifndef KERNEL_VERSION
#define KERNEL_VERSION "0.0.0"
#endif
static const char osrelease[] = KERNEL_VERSION;
#ifndef KERNEL_RELENAME
#define KERNEL_RELENAME ""
#endif
static const char osrelease[] = KERNEL_RELENAME" "KERNEL_VERSION;
SYSCTL_STRING(_kern, KERN_OSRELEASE, osrelease, CTLFLAG_RD | CTLFLAG_MPSAFE,
(char *)osrelease, 0,
"Operating system release");
Expand Down
1 change: 1 addition & 0 deletions tools/aconf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ for conffile in "$@"; do
sed 's/^/#define /' >>"$HFILE"
done
echo "#define KERNEL_VERSION \"$(git describe)\"" >>"$HFILE"
echo "#define KERNEL_RELENAME \"Tanforan\"" >>"$HFILE"
echo "#endif" >>"$HFILE"

0 comments on commit be38616

Please sign in to comment.