Email List: Xaustin-review-lX
[All Lists]

Defect in XSH posix_fadvise()

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XSH posix_fadvise()
From: yyyyyyy@xxxxxxxxxx
Date: Fri, 8 Aug 2003 10:44:23 +0100 (BST)
        Defect report from : Ulrich Drepper , Red Hat, Inc.

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 864 line 28122 section posix_fadvise() objection {ud-fadvise}

Problem:

Edition of Specification (Year): 2003

Defect code :  1. Error

The prototype for posix_fadvise() today is:

  int posix_fadvise(int fd, off_t offset, size_t len, int advice);

The problem is the type of the 'len' parameter.  This is no value related to 
any memory object, it's the length of the affected area on disk.

This is especially problematic for platforms implementing the LFS extension.  
On a 32-bit system, giving advise for a multi-terabyte file would require many 
calls.

Action:

Change XSH 864, l 28122 to:

  int posix_fadvise(int fd, off_t offset, off_t len, int advice);

Change XBD 223, l 7897 to:

ADV int posix_fadvise(int, off_t, off_t, int);

<Prev in Thread] Current Thread [Next in Thread>
  • Defect in XSH posix_fadvise(), drepper <=