+.Sh EXAMPLE
+.Bd -literal -offset indent
+
+int main (int argc, const char * argv[])
+{
+ /* The behavior of mkdir is undefined for anything other than the "permission" bits */
+ if (mkdir("/tmp/blah", 0777))
+ perror("/tmp/blah");
+
+ /* So we need to set the sticky/executable bits explicitly with chmod after calling mkdir */
+ if (chmod("/tmp/blah", 07777))
+ perror("/tmp/blah");
+}
+
+.Ed