The getopt is explicitly licensed under GNU General Public License,
version 2 terms.
The complete text of the license is available at the
Documentation/licenses/COPYING.GPLv2 file.