bugGNU roff - Bugs: bug #61833, gnulib module...

 
 

bug #61833: gnulib module "posixcheck" reveals some defects

Submitter:  Bjarni Ingi Gislason <bjarniig>
Submitted:  Sun 16 Jan 2022 06:20:00 PM UTC
   
 
Category:  General Severity:  1 - Wish
Item Group:  Lint Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 16 Jan 2022 11:07:28 PM UTC, comment #1: 

The interesting thing about "portability libraries" is that they always seem to become replacement libcs.  See apr, nspr, ...

These will need to be looked at on a case-by-case basis.  Picking an item out of the list, evaluating it, and supplying a patch for it might be a good way for a newcomer to start contributing to groff.

I would not start with the very first item.  I don't think any program distributed with groff opens any sockets at any time for any reason.  ("Change my mind", as the meme goes, while I sip coffee.)

G. Branden Robinson <gbranden>
Group administrator
Sun 16 Jan 2022 06:20:00 PM UTC, original submission:  

Subject: gnulib module "posixcheck" reveals some defects

  All warnings are in the attachment.

  The revealed types are

call to 'close' declared with attribute warning: close does not
portably work on sockets - use gnulib module close for portability
[-Wattribute-warning]

call to 'dup' declared with attribute warning: dup is unportable - use
gnulib module dup for portability [-Wattribute-warning]

call to 'execvp' declared with attribute warning: execvp behaves very
differently on mingw - use gnulib module execvp for portability
[-Wattribute-warning]

call to 'fclose' declared with attribute warning: fclose is not always
POSIX compliant - use gnulib module fclose for portable POSIX
compliance [-Wattribute-warning]

call to 'fdopen' declared with attribute warning: fdopen on native
Windows platforms is not POSIX compliant - use gnulib module fdopen for
portability [-Wattribute-warning]

call to 'fflush' declared with attribute warning: fflush is not always
POSIX compliant - use gnulib module fflush for portable POSIX
compliance [-Wattribute-warning]

call to 'fopen' declared with attribute warning: fopen on native
Windows platforms is not POSIX compliant - use gnulib module fopen for
portability [-Wattribute-warning]

call to 'freopen' declared with attribute warning: freopen on native
Windows platforms is not POSIX compliant - use gnulib module freopen
for portability [-Wattribute-warning]

call to 'fseek' declared with attribute warning: fseek cannot handle
files larger than 4 GB on 32-bit platforms - use fseeko function for
handling of large files [-Wattribute-warning]

call to 'ftell' declared with attribute warning: ftell cannot handle
files larger than 4 GB on 32-bit platforms - use ftello function for
handling of large files [-Wattribute-warning]

call to 'malloc' declared with attribute warning: malloc is not POSIX
compliant everywhere - use gnulib module malloc-posix for portability
[-Wattribute-warning]

call to 'nl_langinfo' declared with attribute warning: nl_langinfo is
not portable - use gnulib module nl_langinfo for portability
[-Wattribute-warning]

call to 'pclose' declared with attribute warning: pclose is unportable
- use gnulib module pclose for more portability [-Wattribute-warning]

call to 'perror' declared with attribute warning: perror is not always
POSIX compliant - use gnulib module perror for portability
[-Wattribute-warning]

call to 'pipe' declared with attribute warning: pipe is unportable -
use gnulib module pipe-posix for portability [-Wattribute-warning]

call to 'popen' declared with attribute warning: popen is buggy on some
platforms - use gnulib module popen or pipe for more portability
[-Wattribute-warning]

call to 'realloc' declared with attribute warning: realloc is not POSIX
compliant everywhere - use gnulib module realloc-posix for portability
[-Wattribute-warning]

call to 'strchr' declared with attribute warning: strchr cannot work
correctly on character strings in some multibyte locales - use mbschr
if you care about internationalization [-Wattribute-warning]

call to 'strerror' declared with attribute warning: strerror is
unportable - use gnulib module strerror to guarantee non-NULL result
[-Wattribute-warning]

call to 'strrchr' declared with attribute warning: strrchr cannot work
correctly on character strings in some multibyte locales - use mbsrchr
if you care about internationalization [-Wattribute-warning]

call to 'strsignal' declared with attribute warning: strsignal is
unportable - use gnulib module strsignal for portability
[-Wattribute-warning]

call to 'strtol' declared with attribute warning: strtol is unportable
- use gnulib module strtol for portability [-Wattribute-warning]

call to 'tmpfile' declared with attribute warning: tmpfile is not
usable on mingw - use gnulib module tmpfile for portability
[-Wattribute-warning]

Bjarni Ingi Gislason <bjarniig>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #52670:  posixcheck.bug added by bjarniig (45KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gbranden (Posted a comment)
  • -email is unavailable- added by bjarniig (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-01-16 gbranden CategoryNone General
        Severity3 - Normal 1 - Wish
        Item GroupNone Lint
    2022-01-16 bjarniig Attached File- Added posixcheck.bug, #52670

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code