Knowledgebase

Portal Home > Knowledgebase > Articles Database > Is /usr/bin/c99 is OK?


Is /usr/bin/c99 is OK?




Posted by caisc, 10-16-2011, 01:13 AM
On our server in dir - /usr/bin there are two files named as - c89 and c99 their content are as below - ====== c99======== #!/bin/sh fl="-std=c99" for opt; do case "$opt" in -std=c99|-std=iso9899:1999) fl="";; -std=*) echo "`basename $0` called with non ISO C99 option $opt" >&2 exit 1;; esac done exec gcc $fl ${1+"$@"} ====== c99======== and ====== c89======== #!/bin/sh fl="-std=c89" for opt; do case "$opt" in -ansi|-std=c89|-std=iso9899:1990) fl="";; -std=*) echo "`basename $0` called with non ANSI/ISO C option $opt" >&2 exit 1;; esac done exec gcc $fl ${1+"$@"} ====== c89======== Is it ok or suspicious ? Thanks

Posted by MrBumblebee, 10-16-2011, 04:44 AM
Should be legit... [root@server ~]# rpm -qf /usr/bin/c99 gcc-4.1.2-51.el5 [root@server ~]# rpm -qf /usr/bin/c89 gcc-4.1.2-51.el5 [root@server ~]# cat /usr/bin/c99 #!/bin/sh fl="-std=c99" for opt; do case "$opt" in -std=c99|-std=iso9899:1999) fl="";; -std=*) echo "`basename $0` called with non ISO C99 option $opt" >&2 exit 1;; esac done exec gcc $fl ${1+"$@"} [root@server ~]# cat /usr/bin/c89 #!/bin/sh fl="-std=c89" for opt; do case "$opt" in -ansi|-std=c89|-std=iso9899:1990) fl="";; -std=*) echo "`basename $0` called with non ANSI/ISO C option $opt" >&2 exit 1;; esac done exec gcc $fl ${1+"$@"}



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
netstat -an or -tln (Views: 539)


Language:

Contact us