API:EPrints/System/MSWin32

From EPrints Documentation
Revision as of 23:45, 9 January 2022 by Pod2wiki (talk | contribs) (Created page with "<!-- Pod2Wiki=_preamble_ This page has been automatically generated from the EPrints 3.4 source. Any wiki changes made between the 'Pod2Wiki=*' and 'Edit below this comment'...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects


API: Core API

Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki


NAME

EPrints::System::MSWin32 - Wrappers for MS Windows 32 system calls.

User Comments


DESCRIPTPION

This class provides MS Windows 32 specific system calls required by EPrints.

This class inherits from EPrints::System.

User Comments


METHODS

User Comments


init

$sys->init

Perform any platform-specific initilisation is not required on MS Windows 32 systems.

User Comments


chmod

$sys->chmod( $mode, @files )

Changing the access control for @files is not possible on MS Windows 32 systems.

User Comments


chown

$sys->chown( $uid, $gid, @files )

Changing the user/group ownership on @files is not possible on MS Windows 32 systems.

User Comments


chown_for_eprints

$sys->chown_for_eprints( @files )

Changing the user/group ownership on @files to the current EPrints user is not possible on MS Windows 32 systems.

User Comments


getgrnam

$gid = $sys->getgrnam( $group )

Getting the group name for $group is not possible on MS Windows 32 systems.

User Comments


getpwnam

($user, $crypt, $uid, $gid ) = $sys->getpwnam( $user )

Getting the login name, password crypt, UID and GID for user $user is not possible on MS Windows 32 systems.

User Comments


test_uid

$sys->test_uid

Testing whether the current user is the same that is configured in EPrints::SystemSettings is not possible on MS Windows 32 systems.

User Comments


free_space

$sys->free_space( $dir )

Returns the amount of free space (in bytes) available at $dir. As this is a MS Windows 32 system $dir may contain a drive (e.g. C:).

User Comments


proc_exists

$bool = $sys->proc_exists( $pid )

Returns true if a process exists for ID with $pid or access is denied to the process, implying it must exist.

Returns false otherwise.

User Comments


mkdir

$sys->mkdir( $full_path, $perms )

Create a directory $full_path (including parent directories as necessary) set permissions described by $perms. If $perms is undefined defaults to dir_perms in EPrints::SystemSettings.

User Comments


quotemeta

$quoted = $sys->quotemeta( $path )

Quote $path so it is safe to be used in a shell call.

User Comments


SEE ALSO

EPrints::System

User Comments


COPYRIGHT

© Copyright 2022 University of Southampton.

EPrints 3.4 is supplied by EPrints Services.

http://www.eprints.org/eprints-3.4/

LICENSE

This file is part of EPrints 3.4 http://www.eprints.org/.

EPrints 3.4 and this file are released under the terms of the GNU Lesser General Public License version 3 as published by the Free Software Foundation unless otherwise stated.

EPrints 3.4 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with EPrints 3.4. If not, see http://www.gnu.org/licenses/.

User Comments