* for the exception. See Exceptions.h for the available
* exceptions.
*/
-void throwException(JNIEnv * env, jclass * excCls, char *excClsName,
- jmethodID * initID, int code) {
+void
+throwException(JNIEnv * env, jclass * excCls, char *excClsName,
+ jmethodID * initID, int code)
+{
jobject exc;
if (*excCls == 0) {
*excCls =
*
* @returns file descriptor
*/
-int openAFSFile(JNIEnv * env, jstring filenameUTF, int flags, int mode,
- int *err) {
+int
+openAFSFile(JNIEnv * env, jstring filenameUTF, int flags, int mode, int *err)
+{
char *filename;
int fd = -1;
struct volume *tvp = 0;
struct VenusFid tfid;
struct cell *tcell;
- char *cpos, *volnamep;
- char type, *buf;
- afs_int32 prefetch; /* 1=>None 2=>RO 3=>BK */
- afs_int32 mtptCell, assocCell, hac = 0;
- afs_int32 samecell, roname, len;
+ char *cpos, *volnamep;
+ char type, *buf;
+ afs_int32 prefetch; /* 1=>None 2=>RO 3=>BK */
+ afs_int32 mtptCell, assocCell, hac = 0;
+ afs_int32 samecell, roname, len;
AFS_STATCNT(EvalMountPoint);
#ifdef notdef
* want to prefetch the RO volume.
*/
if ((type == '#') && !roname) {
- if (afs_bkvolpref && samecell && (avc->states & CBackup))
- prefetch = 3; /* Prefetch the BK */
- else if (!samecell || (avc->states & CRO))
- prefetch = 2; /* Prefetch the RO */
- else
- prefetch = 1; /* Do not prefetch */
+ if (afs_bkvolpref && samecell && (avc->states & CBackup))
+ prefetch = 3; /* Prefetch the BK */
+ else if (!samecell || (avc->states & CRO))
+ prefetch = 2; /* Prefetch the RO */
+ else
+ prefetch = 1; /* Do not prefetch */
} else {
- prefetch = 1; /* Do not prefetch */
+ prefetch = 1; /* Do not prefetch */
}
/* Get the volume struct. Unless this volume name has ".readonly" or
/* If no volume was found in this cell, try the associated linked cell */
if (!tvp && hac && areq->volumeError) {
- tvp =
+ tvp =
afs_GetVolumeByName(volnamep, assocCell, prefetch, areq,
WRITE_LOCK);
}
afs_PutVolume(tvp, WRITE_LOCK); /* release old volume */
tvp = afs_GetVolume(&tfid, areq, WRITE_LOCK); /* get the new one */
if (!tvp)
- return ENODEV; /* oops, can't do it */
+ return ENODEV; /* oops, can't do it */
}
if (avc->mvid == 0)
} else if (parm == AFSOP_SET_FAKESTAT) {
afs_fakestat_enable = parm2;
code = 0;
- }
- else if (parm == AFSOP_SET_BACKUPTREE) {
+ } else if (parm == AFSOP_SET_BACKUPTREE) {
afs_bkvolpref = parm2;
- }
- else
- code = EINVAL;
+ } else
+ code = EINVAL;
out:
AFS_GUNLOCK();
* This means that very soon we'll ask for the BK volume so
* we'll prefetch it (well we did already.)
*/
- tv1 = afs_SetupVolume(tv->backVol, (char *)0, ve, tcell, 0, type, areq);
+ tv1 =
+ afs_SetupVolume(tv->backVol, (char *)0, ve, tcell, 0, type, areq);
tv1->refCount--;
}
if ((agood >= 2) && tv->roVol) {
#ifdef AFS_AFSDB_ENV
static int enable_afsdb = 0; /* enable AFSDB support */
#endif
-static int enable_dynroot = 0; /* enable dynroot support */
-static int enable_fakestat = 0; /* enable fakestat support */
+static int enable_dynroot = 0; /* enable dynroot support */
+static int enable_fakestat = 0; /* enable fakestat support */
static int enable_backuptree = 0; /* enable backup tree support */
-static int enable_nomount = 0; /* do not mount */
+static int enable_nomount = 0; /* do not mount */
#ifdef notdef
static int inodes = 60; /* VERY conservative, but has to be */
#endif
cmd_AddParm(ts, "-fakestat-all", CMD_FLAG, CMD_OPTIONAL,
"Enable fakestat support for all mounts");
cmd_AddParm(ts, "-nomount", CMD_FLAG, CMD_OPTIONAL, "Do not mount AFS");
- cmd_AddParm(ts, "-backuptree", CMD_FLAG, CMD_OPTIONAL, "Prefer backup volumes for mointpoints in backup volumes");
+ cmd_AddParm(ts, "-backuptree", CMD_FLAG, CMD_OPTIONAL,
+ "Prefer backup volumes for mointpoints in backup volumes");
return (cmd_Dispatch(argc, argv));
}
rx_SetNoJumbo();
tservice = rx_NewService( /* port */ 0, /* service id */ 1,
- /*service name */ "bozo",
- /* security classes */
+ /*service name */ "bozo",
+ /* security classes */
bozo_rxsc,
/* numb sec classes */ 3, BOZO_ExecuteRequest);
rx_SetMinProcs(tservice, 2);
* If we hit the end, see if this is the first volume on the tape or not.
* Also, mark the tape as finished if the tape contains other dumps.
*/
- if (!code) code = rc;
+ if (!code)
+ code = rc;
if (HITEOT(code)) {
ErrorLog(2, taskId, code, tapeInfoPtr->error,
"Warning: Dump (%s) hit end-of-tape inferred\n",
#endif
}
}
-
#ifndef xbsa
/* All the xbsa spacific parameters */
else if (!strcmp(cmd, "TYPE") || !strcmp(cmd, "NODE")
#include "error_macros.h"
#ifdef O_LARGEFILE
-typedef off64_t osi_lloff_t;
+typedef off64_t osi_lloff_t;
#else /* O_LARGEFILE */
#ifdef AFS_HAVE_LLSEEK
-typedef offset_t osi_lloff_t;
+typedef offset_t osi_lloff_t;
#else /* AFS_HAVE_LLSEEK */
-typedef off_t osi_lloff_t;
+typedef off_t osi_lloff_t;
#endif /* AFS_HAVE_LLSEEK */
#endif /* O_LARGEFILE */
if (isafile) {
p = (struct progress *)info->tmRock;
- posit = (osi_lloff_t)position * (osi_lloff_t)BUTM_BLOCKSIZE;
+ posit = (osi_lloff_t) position *(osi_lloff_t) BUTM_BLOCKSIZE;
/* Not really necessary to do it this way, should be fixed */
#ifdef O_LARGEFILE
#include <afs/afs_sysnames.h>
- /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
+ /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
#define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
#define AFS_SYSCALL 232
#include <afs/afs_sysnames.h>
- /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
+ /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
#define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
#define AFS_SYSCALL 232
#include <afs/afs_sysnames.h>
- /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
+ /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
#define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
#define AFS_SYSCALL 232
#include <afs/afs_sysnames.h>
- /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
+ /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
#define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
#include <afs/afs_sysnames.h>
- /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
+ /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
#define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
#include <afs/afs_sysnames.h>
- /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
+ /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
#define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
#include <afs/afs_sysnames.h>
- /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
+ /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
#define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
#define AFS_SYSCALL 105
#include <afs/afs_sysnames.h>
- /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
+ /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
#define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
#define AFS_SYSCALL 105
#include <afs/afs_sysnames.h>
- /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
+ /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
#define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
#include <afs/afs_sysnames.h>
- /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
+ /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
#define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
#include <afs/afs_sysnames.h>
- /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
+ /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
#define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
#include <afs/afs_sysnames.h>
- /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
+ /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
#define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
#include <afs/afs_sysnames.h>
- /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
+ /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
#define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
#define AFS_SYSCALL 105
#include <afs/afs_sysnames.h>
- /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
+ /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
#define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
#define AFS_SYSCALL 105
debug = 0;
dup2(0, 2);
- if (!afs_didsetpag
- && (!strcmp(sep->se_service, "login")
- || !strcmp(sep->se_service, "shell"))) {
+ if (!afs_didsetpag && (!strcmp(sep->se_service, "login")
+ || !strcmp(sep->se_service, "shell"))) {
setpag(); /* to disassociate it from current group... */
}
execv(sep->se_server, sep->se_argv);
#include <mit-cpyright.h>
- /* #include <krb_conf.h> *//* removed 890221 */
+ /* #include <krb_conf.h> *//* removed 890221 */
#ifndef PROT_DEFS
#define PROT_DEFS
/* Routines to create and read packets may be found in prot.c */
- /* KTEXT create_auth_reply(); *//* removed 890221 */
- /* KTEXT create_death_packet(); *//* removed 890221 */
- /* KTEXT pkt_cipher(); *//* removed 890221 */
+ /* KTEXT create_auth_reply(); *//* removed 890221 */
+ /* KTEXT create_death_packet(); *//* removed 890221 */
+ /* KTEXT pkt_cipher(); *//* removed 890221 */
/* Message types , always leave lsb for byte order */
* Check the response with the supplied key. If the key is apparently
* wrong, return INTK_BADPW, otherwise zero.
*/
-static check_response(KTEXT rpkt, KTEXT cip, char *service, char *instance,
- char *realm, struct ktc_encryptionKey *key) {
+static
+check_response(KTEXT rpkt, KTEXT cip, char *service, char *instance,
+ char *realm, struct ktc_encryptionKey *key)
+{
Key_schedule key_s;
char *ptr;
char s_service[SNAME_SZ];
DoBosProcessCreate(struct cmd_syndesc *as, char *arock)
{
typedef enum { SERVER, PROCESS, BINARY, CRON, CRONTIME,
- NOTIFIER } DoBosProcessCreate_parm_t;
+ NOTIFIER
+ } DoBosProcessCreate_parm_t;
afs_status_t st = 0;
void *bos_server = NULL;
const char *process = NULL;
DoBosProcessExecutionStateSet(struct cmd_syndesc *as, char *arock)
{
typedef enum { SERVER, PROCESS, STOPPED,
- RUNNING } DoBosProcessExecutionStateSet_parm_t;
+ RUNNING
+ } DoBosProcessExecutionStateSet_parm_t;
afs_status_t st = 0;
void *bos_server = NULL;
const char *process = NULL;
DoBosProcessExecutionStateSetTemporary(struct cmd_syndesc *as, char *arock)
{
typedef enum { SERVER, PROCESS, STOPPED,
- RUNNING } DoBosProcessExecutionStateSetTemporary_parm_t;
+ RUNNING
+ } DoBosProcessExecutionStateSetTemporary_parm_t;
afs_status_t st = 0;
void *bos_server = NULL;
const char *process = NULL;
DoBosExecutablePrune(struct cmd_syndesc *as, char *arock)
{
typedef enum { SERVER, OLDFILES, BAKFILES,
- COREFILES } DoBosExecutablePrune_parm_t;
+ COREFILES
+ } DoBosExecutablePrune_parm_t;
afs_status_t st = 0;
void *bos_server = NULL;
bos_Prune_t old_files = BOS_DONT_PRUNE;
DoBosExecutableRestartTimeSet(struct cmd_syndesc *as, char *arock)
{
typedef enum { SERVER, DAILY, WEEKLY,
- TIME } DoBosExecutableRestartTimeSet_parm_t;
+ TIME
+ } DoBosExecutableRestartTimeSet_parm_t;
afs_status_t st = 0;
void *bos_server = NULL;
bos_Restart_t type;
DoBosExecutableRestartTimeGet(struct cmd_syndesc *as, char *arock)
{
typedef enum { SERVER, DAILY,
- WEEKLY } DoBosExecutableRestartTimeGet_parm_t;
+ WEEKLY
+ } DoBosExecutableRestartTimeGet_parm_t;
afs_status_t st = 0;
void *bos_server = NULL;
bos_Restart_t type;
DoClientMountPointCreate(struct cmd_syndesc *as, char *arock)
{
typedef enum { DIRECTORY, VOLUME, READWRITE,
- CHECK } DoClientMountPointCreate_parm_t;
+ CHECK
+ } DoClientMountPointCreate_parm_t;
afs_status_t st = 0;
const char *directory;
const char *volume;
DoClientRPCStatsStateGet(struct cmd_syndesc *as, char *arock)
{
typedef enum { SERVER, PROCESS,
- STAT_TYPE } DoClientRPCStatsStateGet_parm_t;
+ STAT_TYPE
+ } DoClientRPCStatsStateGet_parm_t;
afs_status_t st = 0;
struct rx_connection *conn;
int servAddr = 0;
DoClientRPCStatsStateDisable(struct cmd_syndesc *as, char *arock)
{
typedef enum { SERVER, PROCESS,
- STAT_TYPE } DoClientRPCStatsDisable_parm_t;
+ STAT_TYPE
+ } DoClientRPCStatsDisable_parm_t;
afs_status_t st = 0;
struct rx_connection *conn;
int servAddr = 0;
DoKasPrincipalCreate(struct cmd_syndesc *as, char *arock)
{
typedef enum { PRINCIPAL, INSTANCE,
- PASSWORD } DoKasPrincipalCreate_parm_t;
+ PASSWORD
+ } DoKasPrincipalCreate_parm_t;
afs_status_t st = 0;
const char *instance = NULL;
kas_identity_t user;
DoKasPrincipalKeySet(struct cmd_syndesc *as, char *arock)
{
typedef enum { PRINCIPAL, INSTANCE, PASSWORD,
- KEYVERSION } DoKasPrincipalKeySet_parm_t;
+ KEYVERSION
+ } DoKasPrincipalKeySet_parm_t;
afs_status_t st = 0;
kas_encryptionKey_t key;
kas_identity_t user;
DoVosBackupVolumeCreateMultiple(struct cmd_syndesc *as, char *arock)
{
typedef enum { SERVER, PARTITION, PREFIX,
- EXCLUDE } DoVosBackupVolumeCreate_parm_t;
+ EXCLUDE
+ } DoVosBackupVolumeCreate_parm_t;
afs_status_t st = 0;
void *vos_server = NULL;
unsigned int partition_id;
DoVosFileServerAddressChange(struct cmd_syndesc *as, char *arock)
{
typedef enum { OLDADDRESS,
- NEWADDRESS } DoVosFileServerAddressChange_parm_t;
+ NEWADDRESS
+ } DoVosFileServerAddressChange_parm_t;
afs_status_t st = 0;
int old_addr, new_addr;
DoVosVLDBReadOnlySiteCreate(struct cmd_syndesc *as, char *arock)
{
typedef enum { SERVER, PARTITION,
- VOLUME } DoVosVLDBReadOnlySiteCreate_parm_t;
+ VOLUME
+ } DoVosVLDBReadOnlySiteCreate_parm_t;
afs_status_t st = 0;
void *vos_server = NULL;
unsigned int partition_id;
DoVosVLDBReadOnlySiteDelete(struct cmd_syndesc *as, char *arock)
{
typedef enum { SERVER, PARTITION,
- VOLUME } DoVosVLDBReadOnlySiteDelete_parm_t;
+ VOLUME
+ } DoVosVLDBReadOnlySiteDelete_parm_t;
afs_status_t st = 0;
void *vos_server = NULL;
unsigned int partition_id;
DoVosVolumeCreate(struct cmd_syndesc *as, char *arock)
{
typedef enum { SERVER, PARTITION, VOLUME,
- QUOTA } DoVosVolumeCreate_parm_t;
+ QUOTA
+ } DoVosVolumeCreate_parm_t;
afs_status_t st = 0;
void *vos_server = NULL;
unsigned int partition_id;
DoVosVolumeDump(struct cmd_syndesc *as, char *arock)
{
typedef enum { SERVER, PARTITION, VOLUME, STARTTIME,
- DUMPFILE } DoVosVolumeDump_parm_t;
+ DUMPFILE
+ } DoVosVolumeDump_parm_t;
afs_status_t st = 0;
void *vos_server = NULL;
unsigned int partition_id;
DoVosVolumeRestore(struct cmd_syndesc *as, char *arock)
{
typedef enum { SERVER, PARTITION, ID, VOLUME, DUMPFILE,
- FULL } DoVosVolumeRestore_parm_t;
+ FULL
+ } DoVosVolumeRestore_parm_t;
afs_status_t st = 0;
void *vos_server = NULL;
unsigned int partition_id;
DoVosVolumeOnline(struct cmd_syndesc *as, char *arock)
{
typedef enum { SERVER, PARTITION, VOLUME, SLEEP,
- BUSY } DoVosVolumeOnline_parm_t;
+ BUSY
+ } DoVosVolumeOnline_parm_t;
afs_status_t st = 0;
void *vos_server = NULL;
unsigned int partition_id;
DoVosVolumeMove(struct cmd_syndesc *as, char *arock)
{
typedef enum { VOLUME, FROMSERVER, FROMPARTITION, TOSERVER,
- TOPARTITION } DoVosVolumeMove_parm_t;
+ TOPARTITION
+ } DoVosVolumeMove_parm_t;
afs_status_t st = 0;
void *from_server = NULL;
void *to_server = NULL;
DoVosVolumeQuotaChange(struct cmd_syndesc *as, char *arock)
{
typedef enum { SERVER, PARTITION, VOLUME,
- QUOTA } DoVosVolumeQuotaChange_parm_t;
+ QUOTA
+ } DoVosVolumeQuotaChange_parm_t;
afs_status_t st = 0;
void *vos_server = NULL;
unsigned int partition_id;
{
Debug(4, ("Entered Free_PCB"));
if (pid->stack != NULL) {
- Debug(0, ("HWM stack usage: %d, [PCB at 0x%x]",
- Stack_Used(pid->stack, pid->stacksize), pid));
+ Debug(0,
+ ("HWM stack usage: %d, [PCB at 0x%x]",
+ Stack_Used(pid->stack, pid->stacksize), pid));
free(pid->stack);
}
if (pid->eventlist != NULL)
/* How many systems don't have strerror now? */
#ifndef HAVE_STRERROR
-#if !defined(AFS_DARWIN60_ENV) && !defined(AFS_FBSD50_ENV)
+#if !defined(AFS_DARWIN60_ENV) && !defined(AFS_FBSD50_ENV)
extern int sys_nerr;
#endif
#if !defined(AFS_LINUX20_ENV) && !defined(AFS_DARWIN_ENV) && !defined(AFS_XBSD_ENV)
{
int pid;
pid_t status;
- static char *env[] = {
+ static char *env[] = {
0,
};
static char *strip[] = {
quickStrip(char *iname, char *oname, int ignored, int copy_only)
{
int pid, status;
- static char *env[] = {
+ static char *env[] = {
0,
};
static char *strip[] = {
lnames.namelist_len = 0;
foo = line;
skip(&foo);
- for (i = 0;
- ((lnames.namelist_len < PR_MAXLIST)
- && (sscanf(foo, "%s", lnames.namelist_val[i]) != EOF));
- i++) {
+ for (i = 0; ((lnames.namelist_len < PR_MAXLIST)
+ && (sscanf(foo, "%s", lnames.namelist_val[i]) !=
+ EOF)); i++) {
lnames.namelist_len++;
skip(&foo);
}
#if defined(SUPERGROUPS)
extern afs_int32 depthsg;
-afs_int32 IsAMemberOfSG(struct ubik_trans *at, afs_int32 aid,
- afs_int32 gid, afs_int32 depth);
+afs_int32 IsAMemberOfSG(struct ubik_trans *at, afs_int32 aid, afs_int32 gid,
+ afs_int32 depth);
#endif
afs_int32
#include <afs/param.h>
#endif
-RCSID
- ("$Header$");
+ RCSID
+ ("$Header$");
#ifdef KERNEL
#include "h/types.h"
void *block_head; /* pointer to block list */
};
-afs_atomlist *afs_atomlist_create(size_t atom_size, size_t block_size,
- void *(*allocate) (size_t n)
- , void (*deallocate) (void *p, size_t n)
- ) {
+afs_atomlist *
+afs_atomlist_create(size_t atom_size, size_t block_size,
+ void *(*allocate) (size_t n)
+ , void (*deallocate) (void *p, size_t n)
+ )
+{
afs_atomlist *al;
size_t atoms_per_block;
size_t extra_space;
while (*np && *np != ':')
*p++ = *np++;
*p = '\0';
- if (*np) /*---- iff on a colon then advance --*/
+ if (*np) /*---- iff on a colon then advance --*/
np++;
valid = 0;
if (strlen(cpth)) {
int
-catclose1(catd) /*---- the catd to be closed ----*/
+catclose1(catd) /*---- the catd to be closed ----*/
nl_catd catd; /*---- the catd to be closed ----*/
{
h_Unlock_r(host);
H_UNLOCK;
ViceLog(8,
- ("DCB: No call backs for fid (%u, %u, %u)\n",
- fid->Volume, fid->Vnode, fid->Unique));
+ ("DCB: No call backs for fid (%u, %u, %u)\n", fid->Volume,
+ fid->Vnode, fid->Unique));
return 0;
}
pcb = FindCBPtr(fe, host);
if (!fe) {
H_UNLOCK;
ViceLog(8,
- ("DF: No fid (%u,%u,%u) to delete\n", fid->Volume,
- fid->Vnode, fid->Unique));
+ ("DF: No fid (%u,%u,%u) to delete\n", fid->Volume, fid->Vnode,
+ fid->Unique));
return 0;
}
for (n = 0, cbi = fe->firstcb; cbi; n++) {
(void)afs_snprintf(tmpStr, sizeof tmpStr,
"ip:%x port:%d hidx:%d cbid:%d lock:%x last:%u active:%u down:%d del:%d cons:%d cldel:%d\n\t hpfailed:%d hcpsCall:%u hcps [",
host->host, ntohs(host->port), host->index,
- host->cblist, CheckLock(&host->lock),
- host->LastCall, host->ActiveCall,
- (host->hostFlags & VENUSDOWN),
+ host->cblist, CheckLock(&host->lock), host->LastCall,
+ host->ActiveCall, (host->hostFlags & VENUSDOWN),
host->hostFlags & HOSTDELETED, host->Console,
- host->hostFlags & CLIENTDELETED,
- host->hcpsfailed, host->cpsCall);
+ host->hostFlags & CLIENTDELETED, host->hcpsfailed,
+ host->cpsCall);
(void)STREAM_WRITE(tmpStr, strlen(tmpStr), 1, file);
if (host->hcps.prlist_val)
for (i = 0; i < host->hcps.prlist_len; i++) {
sc[1] = 0; /* rxvab_NewServerSecurityObject(key1, 0) */
sc[2] = rxkad_NewServerSecurityObject(rxkad_clear, NULL, get_key, NULL);
sc[3] = rxkad_NewServerSecurityObject(rxkad_crypt, NULL, get_key, NULL);
- tservice =
- rx_NewService( /* port */ 0, /* service id */ 1, /*service name */
- "AFS",
- /* security classes */ sc, /* numb sec classes */ 4,
- RXAFS_ExecuteRequest);
+ tservice = rx_NewService( /* port */ 0, /* service id */ 1, /*service name */
+ "AFS",
+ /* security classes */ sc,
+ /* numb sec classes */
+ 4, RXAFS_ExecuteRequest);
if (!tservice) {
ViceLog(0,
("Failed to initialize RX, probably two servers running.\n"));
/* for inodes created in solaris 2.4, there is a possibility
** that the gid gets chopped off to an unsigned short(2 bytes)
*/
- if ((p2 || p3) && !p4
- && ((p5 == -2)
- || ((unsigned short)p5 == (unsigned short)-2))) {
+ if ((p2 || p3) && !p4 && ((p5 == -2)
+ || ((unsigned short)p5 ==
+ (unsigned short)-2))) {
/* This is a pre Sol2.6 inode */
mod = 1;
cnt++;