!C99Shell v. 1.0 pre-release build #13!

Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a 

uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 

uid=99(nobody) gid=98(nobody) groups=98(nobody) 

Safe-mode: OFF (not secure)

/usr/src/linux-2.4.18-xfs-1.1/fs/xfs/   drwxr-xr-x
Free 318.39 GB of 458.09 GB (69.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     xfs_dir2_trace.c (5.69 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
 * 
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 * 
 * This program is distributed in the hope that it would be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * 
 * Further, this software is distributed without any warranty that it is
 * free of the rightful claim of any third person regarding infringement
 * or the like.  Any license provided herein, whether implied or
 * otherwise, applies only to this software file.  Patent licenses, if
 * any, provided herein do not apply to combinations of this program with
 * other software, or any other product whatsoever.
 * 
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write the Free Software Foundation, Inc., 59
 * Temple Place - Suite 330, Boston MA 02111-1307, USA.
 * 
 * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
 * Mountain View, CA  94043, or:
 * 
 * http://www.sgi.com 
 * 
 * For further information regarding this notice, see: 
 * 
 * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
 */

/*
 * xfs_dir2_trace.c
 * Tracing for xfs v2 directories.
 */
#include <xfs.h>


#ifdef DEBUG
ktrace_t    *xfs_dir2_trace_buf;
#endif /* DEBUG */

#ifdef XFS_DIR2_TRACE
/*
 * Enter something in the trace buffers.
 */
static void
xfs_dir2_trace_enter(
    xfs_inode_t    *dp,
    int        type,
    char        *where,
    char        *name,
    int        namelen,
    __psunsigned_t    a0,
    __psunsigned_t    a1,
    __psunsigned_t    a2,
    __psunsigned_t    a3,
    __psunsigned_t    a4,
    __psunsigned_t    a5,
    __psunsigned_t    a6)
{
    __psunsigned_t    n[6];

    ASSERT(xfs_dir2_trace_buf);
    ASSERT(dp->i_dir_trace);
    if (name)
        bcopy(name, n, min(sizeof(n), namelen));
    else
        bzero((char *)n, sizeof(n));
    ktrace_enter(xfs_dir2_trace_buf,
        (void *)(__psunsigned_t)type, (void *)where,
        (void *)a0, (void *)a1, (void *)a2, (void *)a3,
        (void *)a4, (void *)a5, (void *)a6,
        (void *)(__psunsigned_t)namelen,
        (void *)n[0], (void *)n[1], (void *)n[2],
        (void *)n[3], (void *)n[4], (void *)n[5]);
    ktrace_enter(dp->i_dir_trace,
        (void *)(__psunsigned_t)type, (void *)where,
        (void *)a0, (void *)a1, (void *)a2, (void *)a3,
        (void *)a4, (void *)a5, (void *)a6,
        (void *)(__psunsigned_t)namelen,
        (void *)n[0], (void *)n[1], (void *)n[2],
        (void *)n[3], (void *)n[4], (void *)n[5]);
}

void
xfs_dir2_trace_args(
    char        *where,
    xfs_da_args_t    *args)
{
    xfs_dir2_trace_enter(args->dp, XFS_DIR2_KTRACE_ARGS, where,
        (char *)args->name, (int)args->namelen,
        (__psunsigned_t)args->hashval, (__psunsigned_t)args->inumber,
        (__psunsigned_t)args->dp, (__psunsigned_t)args->trans,
        (__psunsigned_t)args->justcheck, 0, 0);
}

void
xfs_dir2_trace_args_b(
    char        *where,
    xfs_da_args_t    *args,
    xfs_dabuf_t    *bp)
{
    xfs_dir2_trace_enter(args->dp, XFS_DIR2_KTRACE_ARGS_B, where,
        (char *)args->name, (int)args->namelen,
        (__psunsigned_t)args->hashval, (__psunsigned_t)args->inumber,
        (__psunsigned_t)args->dp, (__psunsigned_t)args->trans,
        (__psunsigned_t)args->justcheck,
        (__psunsigned_t)(bp ? bp->bps[0] : NULL), 0);
}

void
xfs_dir2_trace_args_bb(
    char        *where,
    xfs_da_args_t    *args,
    xfs_dabuf_t    *lbp,
    xfs_dabuf_t    *dbp)
{
    xfs_dir2_trace_enter(args->dp, XFS_DIR2_KTRACE_ARGS_BB, where,
        (char *)args->name, (int)args->namelen,
        (__psunsigned_t)args->hashval, (__psunsigned_t)args->inumber,
        (__psunsigned_t)args->dp, (__psunsigned_t)args->trans,
        (__psunsigned_t)args->justcheck,
        (__psunsigned_t)(lbp ? lbp->bps[0] : NULL),
        (__psunsigned_t)(dbp ? dbp->bps[0] : NULL));
}

void
xfs_dir2_trace_args_bibii(
    char        *where,
    xfs_da_args_t    *args,
    xfs_dabuf_t    *bs,
    int        ss,
    xfs_dabuf_t    *bd,
    int        sd,
    int        c)
{
    xfs_dir2_trace_enter(args->dp, XFS_DIR2_KTRACE_ARGS_BIBII, where,
        (char *)args->name, (int)args->namelen,
        (__psunsigned_t)args->dp, (__psunsigned_t)args->trans,
        (__psunsigned_t)(bs ? bs->bps[0] : NULL), (__psunsigned_t)ss,
        (__psunsigned_t)(bd ? bd->bps[0] : NULL), (__psunsigned_t)sd,
        (__psunsigned_t)c);
}

void
xfs_dir2_trace_args_db(
    char        *where,
    xfs_da_args_t    *args,
    xfs_dir2_db_t    db,
    xfs_dabuf_t    *bp)
{
    xfs_dir2_trace_enter(args->dp, XFS_DIR2_KTRACE_ARGS_DB, where,
        (char *)args->name, (int)args->namelen,
        (__psunsigned_t)args->hashval, (__psunsigned_t)args->inumber,
        (__psunsigned_t)args->dp, (__psunsigned_t)args->trans,
        (__psunsigned_t)args->justcheck, (__psunsigned_t)db,
        (__psunsigned_t)(bp ? bp->bps[0] : NULL));
}

void
xfs_dir2_trace_args_i(
    char        *where,
    xfs_da_args_t    *args,
    xfs_ino_t    i)
{
    xfs_dir2_trace_enter(args->dp, XFS_DIR2_KTRACE_ARGS_I, where,
        (char *)args->name, (int)args->namelen,
        (__psunsigned_t)args->hashval, (__psunsigned_t)args->inumber,
        (__psunsigned_t)args->dp, (__psunsigned_t)args->trans,
        (__psunsigned_t)args->justcheck, (__psunsigned_t)i, 0);
}

void
xfs_dir2_trace_args_s(
    char        *where,
    xfs_da_args_t    *args,
    int        s)
{
    xfs_dir2_trace_enter(args->dp, XFS_DIR2_KTRACE_ARGS_S, where,
        (char *)args->name, (int)args->namelen,
        (__psunsigned_t)args->hashval, (__psunsigned_t)args->inumber,
        (__psunsigned_t)args->dp, (__psunsigned_t)args->trans,
        (__psunsigned_t)args->justcheck, (__psunsigned_t)s, 0);
}

void
xfs_dir2_trace_args_sb(
    char        *where,
    xfs_da_args_t    *args,
    int        s,
    xfs_dabuf_t    *bp)
{
    xfs_dir2_trace_enter(args->dp, XFS_DIR2_KTRACE_ARGS_SB, where,
        (char *)args->name, (int)args->namelen,
        (__psunsigned_t)args->hashval, (__psunsigned_t)args->inumber,
        (__psunsigned_t)args->dp, (__psunsigned_t)args->trans,
        (__psunsigned_t)args->justcheck, (__psunsigned_t)s,
        (__psunsigned_t)(bp ? bp->bps[0] : NULL));
}
#endif    /* XFS_DIR2_TRACE */

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.02 ]--