Professional Web Applications Themes

porting UNIX file utilities to OS X? (HFS+ questions) - Mac Programming

Hi all, I'm interested in porting some file synchronization code from Linux (basically, entirely ANSI C/POSIX) to OS X. However, I want to enable my code to deal gracefully with multiple forks and any other idiosyncracies of HFS+. (That is, if I copy a file with resource forks to a Linux machine using my tools and then copy it back to OS X, I want the forks to be preserved by my tools.) Therefore, I have three questions: where's the best place to start looking for doentation to get up to speed on these issues and the relevant parts, I ...

  1. #1

    Default porting UNIX file utilities to OS X? (HFS+ questions)

    Hi all,

    I'm interested in porting some file synchronization code from Linux
    (basically, entirely ANSI C/POSIX) to OS X. However, I want to enable
    my code to deal gracefully with multiple forks and any other
    idiosyncracies of HFS+. (That is, if I copy a file with resource
    forks to a Linux machine using my tools and then copy it back to OS X,
    I want the forks to be preserved by my tools.) Therefore, I have
    three questions: where's the best place to start looking for
    doentation to get up to speed on these issues and the relevant
    parts, I assume, of the Carbon API? Is there any good example code?
    What else do I need to know about HFS+?




    thanks,
    wb
    Will Benton Guest

  2. #2

    Default Re: porting UNIX file utilities to OS X? (HFS+ questions)

    Will Benton wrote:
    >I'm interested in porting some file synchronization code from Linux
    >(basically, entirely ANSI C/POSIX) to OS X. However, I want to enable
    >my code to deal gracefully with multiple forks and any other
    >idiosyncracies of HFS+.
    Aren't there PD utilities to deal with Mac files already?
    Maybe look at the implementation of Rez / DeRez and CpMac / MvMac
    (if they're available... darwin vs. os x, I guess, sorry)

    Mike Hall Guest

Similar Threads

  1. Unix Questions
    By winwin in forum Linux / Unix Administration
    Replies: 8
    Last Post: September 9th, 10:59 AM
  2. New to mac, not to UNIX. Questions regarding x11 installation
    By Jack Mackrel in forum Mac Programming
    Replies: 5
    Last Post: September 22nd, 04:18 AM
  3. Create but not delete a file in unix ?
    By ChrisC in forum Linux / Unix Administration
    Replies: 7
    Last Post: August 11th, 08:17 PM
  4. porting perl scripts from NT to UNIX
    By Sisyphus in forum PERL Miscellaneous
    Replies: 0
    Last Post: July 29th, 01:15 PM
  5. Unix alias command in script file
    By Christine Leseigneur in forum Mac Applications & Software
    Replies: 1
    Last Post: June 26th, 10:03 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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