posix shell: print list of environment variable names (without values)

In a posix-compatible way that works with multiple implementations, how can I print the list of currently defined environment variable without their values? On some implementations (mksh, freebsd ...