GNOME Bugzilla – Bug 669024
goption: implement platform_get_argv0() for OpenBSD
Last modified: 2012-01-30 15:22:40 UTC
Created attachment 206417 [details] [review] implement platform_get_argv0() for OpenBSD Hi. This patch adds support for platform_get_argv0() on OpenBSD using the sysctl(3) interface. Regression test is happy and return value is the same as in Linux. Ok to push?
Review of attachment 206417 [details] [review]: Coding style, looks fine to commit after fixing that. ::: glib/goption.c @@ +1701,3 @@ + cmdline = (char **)realloc(cmdline, len); + + if (sysctl(mib, nitems(mib), cmdline, &len, NULL, 0) == -1) { GLib coding style is GNU - space between identifier and paren, brace on a new line.
Thanks Colin. I've fixed the style and pushed as e43a98c00091f5e293d2d9d72df2c04081802abe