• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
help for access partition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

help for access partition


  • Subject: help for access partition
  • From: 何志康 <email@hidden>
  • Date: Wed, 4 Feb 2004 12:45:37 +0800

Hello, everybody,

    I want to access my removable disk partition, and open disk like
this:

        int fd;
        fd = open(bsdPath, O_RDONLY); // bsdPath is "/dev/rdisk1"
        if (fd==-1)
            perror(NULL);

    It work. But if I change O_RDONLY to O_RDWR, open function return -1
to fd. perror() print "device busy" message.
    What's wrong?

thanks
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Disabling script shortcuts
  • Next by Date: Re: Disabling script shortcuts
  • Previous by thread: Re: Disabling script shortcuts
  • Next by thread: Can you get XCode to expand macros before debugging?
  • Index(es):
    • Date
    • Thread