Content-type: text/html
Man page of LFC_ENTERCLASS
LFC_ENTERCLASS
Section: LFC Library Functions (3)
Updated: $Date: 2003/08/14 12:16:36 $
Index
Return to Main Contents
NAME
lfc_enterclass - define a new fileclass in the name server
SYNOPSIS
#include <sys/types.h>
#include "lfc_api.h"
int lfc_enterclass (char *server,
struct lfc_fileclass *lfc_fileclass)
DESCRIPTION
lfc_enterclass
defines a new fileclass in the name server.
- server
-
specifies the LFC Name Server where the fileclass should be defined.
This function requires ADMIN privilege in the Cupv database.
RETURN VALUE
This routine returns 0 if the operation was successful or -1 if the operation
failed. In the latter case,
serrno
is set appropriately.
ERRORS
- EACCES
-
The caller does not have ADMIN privilege in the Cupv database.
- EEXIST
-
The class exists already.
- EINVAL
-
classid is not strictly positive or class name is a null string or the length of
class name exceeds
CA_MAXCLASNAMELEN
or stager name exceeds
CA_MAXSHORTHOSTLEN
or max_filesize < min_filesize.
- SENOSHOST
-
Host unknown.
- SENOSSERV
-
Service unknown.
- SECOMERR
-
Communication error.
- ENSNACT
-
Name server is not running or is being shutdown.
SEE ALSO
Castor_limits(4),
lfc_deleteclass(3),
lfc_modifyclass(3),
lfc_queryclass(3),
Cupvlist(1)
AUTHOR
LCG Grid Deployment Team
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUE
-
- ERRORS
-
- SEE ALSO
-
- AUTHOR
-
This document was created by
man2html,
using the manual pages.
Time: 11:46:10 GMT, June 26, 2009