~ubuntu-branches/ubuntu/raring/virtualbox-ose/raring

« back to all changes in this revision

Viewing changes to src/VBox/Additions/solaris/SharedFolders/vboxfs_prov.c

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-01-30 23:27:25 UTC
  • mfrom: (0.3.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20110130232725-2ouajjd2ggdet0zd
Tags: 4.0.2-dfsg-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add Apport hook.
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Drop *-source packages.
* Drop ubuntu-01-fix-build-gcc45.patch, fixed upstream.
* Drop ubuntu-02-as-needed.patch, added to the Debian package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 */
5
5
 
6
6
/*
7
 
 * Copyright (C) 2008 Oracle Corporation
 
7
 * Copyright (C) 2008-2010 Oracle Corporation
8
8
 *
9
9
 * This file is part of VirtualBox Open Source Edition (OSE), as
10
10
 * available from http://www.virtualbox.org. This file is free software;
23
23
 * You may elect to license modified versions of this file under the
24
24
 * terms and conditions of either the GPL or the CDDL or both.
25
25
 */
 
26
 
26
27
/*
27
28
 * Provider interfaces for shared folder file system.
28
29
 */
43
44
#ifdef u
44
45
#undef u
45
46
#endif
46
 
#include "../../common/VBoxGuestLib/VBoxCalls.h"
 
47
#include "../../common/VBoxGuestLib/VBoxGuestR0LibSharedFolders.h"
47
48
 
48
49
#define SFPROV_VERSION  1
49
50
 
414
415
 
415
416
 
416
417
static int
417
 
sfprov_getinfo(sfp_mount_t *mnt, char *path, RTFSOBJINFO *info)
 
418
sfprov_getinfo(sfp_mount_t *mnt, char *path, PSHFLFSOBJINFO info)
418
419
{
419
420
        int rc;
420
421
        SHFLCREATEPARMS parms;
493
494
sfprov_get_mode(sfp_mount_t *mnt, char *path, mode_t *mode)
494
495
{
495
496
        int rc;
496
 
        RTFSOBJINFO info;
 
497
        SHFLFSOBJINFO info;
497
498
 
498
499
        rc = sfprov_getinfo(mnt, path, &info);
499
500
        if (rc)
506
507
sfprov_get_size(sfp_mount_t *mnt, char *path, uint64_t *size)
507
508
{
508
509
        int rc;
509
 
        RTFSOBJINFO info;
 
510
        SHFLFSOBJINFO info;
510
511
 
511
512
        rc = sfprov_getinfo(mnt, path, &info);
512
513
        if (rc)
527
528
sfprov_get_atime(sfp_mount_t *mnt, char *path, timestruc_t *time)
528
529
{
529
530
        int rc;
530
 
        RTFSOBJINFO info;
 
531
        SHFLFSOBJINFO info;
531
532
 
532
533
        rc = sfprov_getinfo(mnt, path, &info);
533
534
        if (rc)
540
541
sfprov_get_mtime(sfp_mount_t *mnt, char *path, timestruc_t *time)
541
542
{
542
543
        int rc;
543
 
        RTFSOBJINFO info;
 
544
        SHFLFSOBJINFO info;
544
545
 
545
546
        rc = sfprov_getinfo(mnt, path, &info);
546
547
        if (rc)
553
554
sfprov_get_ctime(sfp_mount_t *mnt, char *path, timestruc_t *time)
554
555
{
555
556
        int rc;
556
 
        RTFSOBJINFO info;
 
557
        SHFLFSOBJINFO info;
557
558
 
558
559
        rc = sfprov_getinfo(mnt, path, &info);
559
560
        if (rc)
573
574
        timestruc_t *ctime)
574
575
{
575
576
        int rc;
576
 
        RTFSOBJINFO info;
 
577
        SHFLFSOBJINFO info;
577
578
 
578
579
        rc = sfprov_getinfo(mnt, path, &info);
579
580
        if (rc)
613
614
        int rc, err;
614
615
        SHFLCREATEPARMS parms;
615
616
        SHFLSTRING *str;
616
 
        RTFSOBJINFO info;
 
617
        SHFLFSOBJINFO info;
617
618
        uint32_t bytes;
618
619
        int str_size;
619
620
 
711
712
        int rc, err;
712
713
        SHFLCREATEPARMS parms;
713
714
        SHFLSTRING *str;
714
 
        RTFSOBJINFO info;
 
715
        SHFLFSOBJINFO info;
715
716
        uint32_t bytes;
716
717
        int str_size;
717
718