Ask a Question related to UNIX Programming, Design and Development.

  1. #1

    Default handle file > 2GB

    Hi there,
    Anyone know how to handle file size > 2GB in SUN? I called stat but it
    fail with EOVERFLOW if the file > 2GB. TIA


    cc Guest

  2. Similar Questions and Discussions

    1. Handle file download
      I wanna write a little flash, that downloads an mp3 file from the server; then the user can download the file on his coputer. Can flash do this ? ...
    2. Multiple Handle on same file for appending
      Hi, Is it possible to open multiple textstream on a same file for appending lines ? I would like to manage a logfile for my application that...
    3. How to handle empty file field in the form
      I have got the form that insert data into database. But if you leave file field in the form empty it gives an error " The form field "img" did not...
    4. NFS file problem: maybe a stale/stuck handle?
      This has me stumped. My apologies if the subject line misses the mark. I've recently migrated some directories from one NFS file server (SunOS...
    5. OO file handle for stdout
      -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 "Oxygene" <NOSPAM@bigpond.com> wrote in news:bgn1dd$q9nps$1@ID- 202028.news.uni-berlin.de: ...
  3. #2

    Default Re: handle file > 2GB


    "cc" <ultraman@rogers.com> wrote in message
    news:TyXMa.33358$PD3.111305@nnrp1.uunet.ca...
    > Hi there,
    > Anyone know how to handle file size > 2GB in SUN? I called stat but it
    > fail with EOVERFLOW if the file > 2GB. TIA
    >
    >
    The answer you're looking for can be found in the following direct
    quote from the stat() man page:

    USAGE
    The stat(), fstat(), and lstat() functions have transitional
    interfaces for 64-bit file offsets. See lf64(5).


    --
    Fletcher Glenn
    to reply remove NOSPAM from my reply address


    Fletcher Glenn Guest

  4. #3

    Default Re: handle file > 2GB

    cc wrote:
    > Hi there,
    > Anyone know how to handle file size > 2GB in SUN? I called stat but it
    > fail with EOVERFLOW if the file > 2GB. TIA
    >
    >
    man largefile

    Also, go to docs.sun.com. There's a document there that describes how
    to build 32 bit large file aware programs.

    Or build 64 bit programs.

    -- ced

    --
    Chuck Dillon
    Senior Software Engineer
    NimbleGen Systems Inc.

    Chuck Dillon Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139