view release on metacpan or search on metacpan
lib/Clarion.pm view on Meta::CPAN
=over 4
=cut
sub FILLOCK { 0x01; } # file is locked
sub FILOWN { 0x02; } # file is owned
sub FILCRYP { 0x04; } # records are encrypted
sub FILMEMO { 0x08; } # memo file exists
sub FILCOMP { 0x10; } # file is compressed
sub FILRCLM { 0x20; } # reclaim deleted records
view all matches for this distribution
view release on metacpan or search on metacpan
t/01-class_constructor.t view on Meta::CPAN
baz => 'testbaz',
bam => 'testbam',
);
is(ref $tc, 'Test_Class3', 'class 3 - object created');
ok(!defined $tc->bam, 'class 3 - initialization blocked');
ok($@ =~ /can\'t\s+autoinitialize/i, 'auto init');
package Test_Class4;
use base qw/ Class::Constructor /;
view all matches for this distribution
view release on metacpan or search on metacpan
0.09 Mon Oct 5 15:45:32 2015
- altered symbol table walk to avoid "undefined behaviour" warning
0.08 Sun Aug 22 15:39:24 2010
- removed ': locked' attribute from object method & attribute accessors
as this has been deprecated in newer versions of Perl
0.07 Thu Jul 17 18:36:45 2008
- corrected symbol table walking to allow for encountering a non-GLOB
view all matches for this distribution
view release on metacpan or search on metacpan
t/lib/TurnstileState.pm view on Meta::CPAN
my @values;
sub values { ## no critic ( ProhibitBuiltinHomonyms )
unless ( @values ) {
my $ordinal = 0;
@values = map { __PACKAGE__->_new( $ordinal++, $_ ) } qw( Locked Unlocked )
}
@values
}
1
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Class/Maker/Examples/Lockable.pm view on Meta::CPAN
Class::Maker::class
{
public =>
{
bool => [ qw( locked blocked ) ],
int => [qw( limited passed failed )],
string => [ qw( passkey unlockkey ) ],
},
lib/Class/Maker/Examples/Lockable.pm view on Meta::CPAN
{
my $this = shift;
$this->unlockkey(1);
$this->locked(1);
$this->blocked(0);
$this->passed(0);
$this->limited(5);
}
lib/Class/Maker/Examples/Lockable.pm view on Meta::CPAN
{
my $this = shift;
warn 'Closing lock' if $Class::Maker::DEBUG;
return $this->locked(1);
}
sub block
{
my $this = shift;
warn 'Blocking lock!' if $Class::Maker::DEBUG;
return $this->blocked(1);
}
sub unlock
{
my $this = shift;
warn 'Opening lock' if $Class::Maker::DEBUG;
if( $this->blocked )
{
warn 'Cant unlock, because blocked !' if $Class::Maker::DEBUG;
return $this->locked(1);
}
return $this->locked(0);
}
sub unblock
{
my $this = shift;
warn 'Unblocking lock' if $Class::Maker::DEBUG;
return $this->blocked(0);
}
sub try
{
my $this = shift;
my %args = @_;
warn 'Try lock' if $Class::Maker::DEBUG;
if( $this->blocked )
{
warn 'Try failed - Lock is blocked !' if $Class::Maker::DEBUG;
return $this->locked;
}
if( $this->unlockkey )
{
warn 'Require Key' if $Class::Maker::DEBUG;
lib/Class/Maker/Examples/Lockable.pm view on Meta::CPAN
{
warn 'Key required through ->unlockkey param, but try( KEY => ) is missing';
}
}
if( $this->locked )
{
$this->failed( $this->failed + 1 );
if( $this->failed > $this->limited )
{
lib/Class/Maker/Examples/Lockable.pm view on Meta::CPAN
$this->failed( 0 );
$this->passed( $this->passed + 1 );
}
return $this->locked;
}
sub assert
{
my $this = shift;
if( $this->locked )
{
print "Wrong Key\n";
}
else
{
view all matches for this distribution
view release on metacpan or search on metacpan
t/threads.t view on Meta::CPAN
is( threads->create( sub { $warning } )->join, undef,
'manual cleanup prevents lost instances' );
$self = bless {};
$self->add_observer( @obs );
undef $self; # no cleanup, rely on DESTROY (which is blocked), causing littering
is( threads->create( sub { $warning } )->join,
"*** Inconsistent state ***\nObserved instances have gone away without invoking Class::Observable::DESTROY\n",
'detected lost instances' );
view all matches for this distribution
view release on metacpan or search on metacpan
Phrasebook.pm view on Meta::CPAN
}
}
} # of Char
); # of the parser setHandlers class
# open the xml file as a locked file and parse it
my $fh = new IO::LockedFile("<".$self->{FILE_PATH});
unless ($fh) {
$self->log()->write("Could not open ".$self->{FILE_PATH}.
" to read.", 4);
return 0;
view all matches for this distribution
view release on metacpan or search on metacpan
t/WhiteHole.t view on Meta::CPAN
sub foo { return 456 }
@Test::ISA = qw(Class::WhiteHole Moo);
::ok( Test->foo == 456, "static methods work" );
::ok( !eval { Test->bar; 1; }, "autoloader blocked" ); # must be line 57
# There's a precedence problem. Can't pass this all at once.
my $ok = $@ eq qq{Can\'t locate object method "bar" via package "Test" at $0 line 57.\n};
::ok( $ok, "Dying message preserved");
view all matches for this distribution
view release on metacpan or search on metacpan
get_av|5.006000|5.003007|p
getc|5.003007||Viu
get_c_backtrace|5.021001||Vi
get_c_backtrace_dump|5.021001||V
get_context|5.006000|5.006000|nu
getc_unlocked|5.003007||Viu
get_cv|5.006000|5.003007|p
get_cvn_flags|5.009005|5.003007|p
get_cvs|5.011000|5.003007|p
getcwd_sv|5.007002|5.007002|
get_db_sub|||iu
PERL_MALLOC_WRAP|5.009002|5.009002|Vn
PerlMem_calloc|5.006000||Viu
PerlMem_free|5.005000||Viu
PerlMem_free_lock|5.006000||Viu
PerlMem_get_lock|5.006000||Viu
PerlMem_is_locked|5.006000||Viu
PerlMem_malloc|5.005000||Viu
PERL_MEMORY_DEBUG_HEADER_SIZE|5.019009||Viu
PerlMemParse_calloc|5.006000||Viu
PerlMemParse_free|5.006000||Viu
PerlMemParse_free_lock|5.006000||Viu
PerlMemParse_get_lock|5.006000||Viu
PerlMemParse_is_locked|5.006000||Viu
PerlMemParse_malloc|5.006000||Viu
PerlMemParse_realloc|5.006000||Viu
PerlMem_realloc|5.005000||Viu
PerlMemShared_calloc|5.006000||Viu
PerlMemShared_free|5.006000||Viu
PerlMemShared_free_lock|5.006000||Viu
PerlMemShared_get_lock|5.006000||Viu
PerlMemShared_is_locked|5.006000||Viu
PerlMemShared_malloc|5.006000||Viu
PerlMemShared_realloc|5.006000||Viu
PERL_MG_UFUNC|5.007001||Viu
Perl_modf|5.006000|5.006000|n
PERL_MULTICONCAT_HEADER_SIZE|5.027006||Viu
putc|5.003007||Viu
put_charclass_bitmap_innards|5.021004||Viu
put_charclass_bitmap_innards_common|5.023008||Viu
put_charclass_bitmap_innards_invlist|5.023008||Viu
put_code_point|5.021004||Viu
putc_unlocked|5.003007||Viu
putenv|5.005000||Viu
put_range|5.019009||Viu
putw|5.003007||Viu
pv_display|5.006000|5.003007|p
pv_escape|5.009004|5.003007|p
view all matches for this distribution
view release on metacpan or search on metacpan
#endif
return val;
}
STATIC const cp_op_info *cp_map_store_locked(
pPTBLMS_ const OP *o, OP *(*old_pp)(pTHX)
) {
#define cp_map_store_locked(O, PP) \
cp_map_store_locked(aPTBLMS_ (O), (PP))
cp_op_info *oi;
if (!(oi = ptable_fetch(cp_op_map, o))) {
oi = PerlMemShared_malloc(sizeof *oi);
ptable_map_store(cp_op_map, o, oi);
#ifdef USE_ITHREADS
MUTEX_LOCK(&cp_op_map_mutex);
#endif
cp_map_store_locked(o, old_pp);
#ifdef USE_ITHREADS
MUTEX_UNLOCK(&cp_op_map_mutex);
#endif
}
view all matches for this distribution
view release on metacpan or search on metacpan
t/02-tools.t view on Meta::CPAN
my $server = Claude::Agent::Code::Review::Tools->create_server();
# Test get_file_context with path traversal
my $tool = $server->get_tool('get_file_context');
my $result = execute_tool($tool,{ file => '../../../etc/passwd', line => 1 });
ok($result->{is_error}, 'blocked path traversal in get_file_context');
# Test get_dependencies with path traversal
$tool = $server->get_tool('get_dependencies');
$result = execute_tool($tool,{ file => '../../../etc/passwd' });
ok($result->{is_error}, 'blocked path traversal in get_dependencies');
# Test analyze_complexity with path traversal
$tool = $server->get_tool('analyze_complexity');
$result = execute_tool($tool,{ file => '../../../etc/passwd', function => 'test' });
ok($result->{is_error}, 'blocked path traversal in analyze_complexity');
};
done_testing();
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Claude/Agent/DryRun.pm view on Meta::CPAN
Do NOT rely on dry-run mode as a security mechanism.
=head1 WRITE TOOLS
The following tools are considered "write" tools and will be blocked
in dry-run mode:
=over 4
=item * Write - File creation/overwrite
lib/Claude/Agent/DryRun.pm view on Meta::CPAN
To block specific MCP tools in dry-run mode, you have the following options:
=over 4
=item * Set the C<CLAUDE_AGENT_MCP_WRITE_TOOLS> environment variable to a
comma-separated list of MCP tool names that should be blocked (e.g.,
C<mcp__myserver__write_file,mcp__myserver__delete_record>)
=item * Implement dry-run logic within the MCP tool itself
=item * Create custom C<PreToolUse> hooks to explicitly block specific MCP tools
lib/Claude/Agent/DryRun.pm view on Meta::CPAN
}
$first_cmd =~ s{^.*/}{};
# Block if command is not in safe list
return 1 unless $safe_commands{$first_cmd};
# Even safe commands are blocked if they use redirects or pipes
return 1 if $command =~ /[>|]/;
return 0; # Safe command without redirects - allow
}
# DEPRECATED: Heuristic fallback mode - will be removed in a future version
lib/Claude/Agent/DryRun.pm view on Meta::CPAN
}
# Commands that are definitely writes
# Note: This detection is not exhaustive. Complex shell constructs, xargs with
# write commands, or custom scripts may bypass detection. For maximum safety,
# consider using a whitelist approach or reviewing all blocked operations.
#
# IMPORTANT: Dry-run mode provides INFORMATIONAL protection only, NOT security
# guarantees. This regex-based detection can be bypassed using shell obfuscation
# techniques including:
# - Command substitution: $(echo rm) -rf
lib/Claude/Agent/DryRun.pm view on Meta::CPAN
# If disabling sandbox, likely a write
return 1 if $tool_input->{dangerouslyDisableSandbox};
# In non-strict mode, warn if command is not in the safe list
# This helps users understand what would be blocked in strict mode
if (!$ENV{CLAUDE_AGENT_DRY_RUN_QUIET}) {
my $safe_commands_env = $ENV{CLAUDE_AGENT_DRY_RUN_SAFE_COMMANDS}
// 'ls,cat,head,tail,grep,find,which,pwd,whoami,date,echo,wc,file,stat,type,uname,env,printenv';
my %safe_commands = map { $_ => 1 } split /,/, $safe_commands_env;
my ($first_cmd) = $command =~ /^\s*(\S+)/;
$first_cmd //= '';
$first_cmd =~ s{^.*/}{};
if (!$safe_commands{$first_cmd}) {
warn "[DRY-RUN NOTICE] Command '$first_cmd' is not in safe list but allowed by heuristics. "
. "In strict mode (default), this would be blocked.\n";
}
}
}
# MCP tools - check if marked as write operation via configuration
view all matches for this distribution
view release on metacpan or search on metacpan
ClearPrompt.pm view on Meta::CPAN
other messages arriving on stderr will typically be I<unexpected>
messages not under the control of the running script (for instance
those from a backquoted cleartool command). This distinction is quite
important in triggers, where the former may represent a policy decision
and the latter a plain old programming bug or system error such as a
locked VOB. Warn/die captures are also displayed with the appropriate
GUI icons and the title C<Warning> or C<Error>.
The 4 channels are known to ClearPrompt as WARN, DIE, STDOUT, and
STDERR. To capture any of them to clearprompt just specify them with a
leading C<+> at I<use> time:
view all matches for this distribution
view release on metacpan or search on metacpan
SyncTree.pm view on Meta::CPAN
my $dbase = $self->dstbase;
my $ct = $self->clone_ct({autochomp=>0});
my $ctq = $self->clone_ct({stdout=>0});
my $ctbool = $self->clone_ct({autofail=>0, stdout=>0, stderr=>0});
my $dvob = $self->dstvob;
my $locked;
if ($ctbool->lstype(['-s'], "lbtype:$lbtype\@$dvob")->system) {
$ct->mklbtype($self->comment, "lbtype:$lbtype\@$dvob")->system;
} elsif (!$self->inclb) {
$locked = $ct->lslock(['-s'], "lbtype:$lbtype\@$dvob")->qx;
$ct->unlock("lbtype:$lbtype\@$dvob")->system if $locked;
}
# Allow for labelling errors, in case of hard links: only the link
# recorded can be labelled, the other being seen as 'removed'
if ($self->label_mods || $self->inclb) {
my @mods = $self->_lsco;
SyncTree.pm view on Meta::CPAN
push(@ancestors, $dad);
}
$ctq->mklabel([qw(-rep -nc), $lbtype], @ancestors)->system
if @ancestors;
}
$self->clone_ct->lock("lbtype:$lbtype\@$dbase")->system if $locked;
}
sub get_addhash {
my $self = shift;
if ($self->{ST_ADD}) {
view all matches for this distribution
view release on metacpan or search on metacpan
no strict 'vars';
# Usage message additions for actual cleartool commands that we extend.
$catcs = "\n* [-cmnt|-expand|-sources|-start]";
$describe = "\n* [--par/ents <n>]";
$lock = "\n* [-allow|-deny login-name[,...]] [-iflocked]";
$lsregion = "\n* [-current]";
$mklabel = "\n* [-up]";
$setcs = "\n* [-clone view-tag] [-expand] [-sync|-needed]";
$setview = "\n* [-me] [-drive drive:] [-persistent]";
$update = "\n* [-quiet]";
=item * ECLIPSE
New command. B<Eclipse>s an element by copying a view-private version
over it. This is the dynamic-view equivalent of "hijacking" a file in a
snapshot view. Typically of use if you need temporary write access to a
file when the VOB or current branch is locked, or it's checked out
reserved. B<Eclipsing elements can lead to dangerous confusion - use
with care!>
=cut
New B<-allow> and B<-deny> flags. These work like I<-nuser> but operate
incrementally on an existing I<-nuser> list rather than completely
replacing it. When B<-allow> or B<-deny> are used, I<-replace> is
implied.
When B<-iflocked> is used, no lock will be created where one didn't
previously exist; the I<-nusers> list will only be modified for
existing locks.
=cut
sub lock {
my %opt;
GetOptions(\%opt, qw(allow=s deny=s iflocked));
return 0 unless %opt;
my $lock = ClearCase::Argv->new(@ARGV);
$lock->parse(qw(c|cfile=s c|cquery|cqeach nusers=s
pname=s obsolete replace));
die Msg('E', "cannot specify -nusers along with -allow or -deny")
if ($opt{deny}) {
for (split /,/, $opt{deny}) { delete $nusers{$_} }
}
$lock->opts($lock->opts, '-nusers', join(',', sort keys %nusers))
if %nusers;
} elsif (!$currlock && $opt{iflocked}) {
exit 0;
} elsif ($opt{allow}) {
$lock->opts($lock->opts, '-nusers', $opt{allow});
}
$lock->opts($lock->opts, '-replace') unless $lock->flag('replace');
view all matches for this distribution
view release on metacpan or search on metacpan
push @args, '-obs' if $1;
} else {
push @cmt, $_;
}
}
unshift @cmt, "Relocked to mkhlink. Locked on $date by $user";
push @args, '-c', join('\n',@cmt), $obj;
}
return @args;
}
Comments go to the type being archived.
The implementation is largely shared with I<mkbrtype>.
For label types, the newly created type is hidden away (with a suffix
of I<_0>) and locked. It is being restored the next time C<mklbtype -fam>
is given for the same name.
=item B<-glo/bal>
Support for global family types is preliminary.
use warnings;
my $type = shift;
return sub {
my ($mkt, $arg) = @_;
$arg = "$type:$arg" unless $arg =~ /^$type:/;
# Maybe need to check that non locked?
return ClearCase::Argv->des('-s', $arg)->stdout(0)->system? 0 : 1;
};
}
sub mklbtype {
use strict;
New B<-allow> and B<-deny> flags. These work like I<-nuser> but operate
incrementally on an existing I<-nuser> list rather than completely
replacing it. When B<-allow> or B<-deny> are used, I<-replace> is
implied.
When B<-iflocked> is used, no lock will be created where one didn't
previously exist; the I<-nusers> list will only be modified for
existing locks.
In case of a family type, lock also the equivalent incremental type.
sub lock {
use warnings;
use strict;
my (%opt, $nusers);
GetOptions(\%opt, qw(allow=s deny=s iflocked));
GetOptions('nusers=s' => \$nusers);
my $lock = ClearCase::Argv->new(@ARGV);
$lock->parse(qw(c|cfile=s cquery|cqeach nc pname=s obsolete replace));
die Msg('E', "cannot specify -nusers along with -allow or -deny")
if %opt and $nusers;
}
}
$lock->opts($lock->opts, '-nusers', join(',', sort keys %nusers))
if %nusers;
} elsif (($nusers or $opt{allow}) and
(!$currlock or $opt{iflocked} or $lock->flag('replace'))) {
$lock->opts($lock->opts, '-nusers', ($nusers or $opt{allow}));
}
if ($currlock and !$lock->flag('replace')) {
if ($opt{allow} or $opt{deny}) {
$lock->opts($lock->opts, '-replace')
} else {
die Msg('E', 'Object is already locked.');
}
}
my @args = $lock->args;
$CT = ClearCase::Argv->new({autochomp=>1});
my (@lbt, @oth, %vob);
}
} else {
print @out;
}
} else {
warn Msg('E', 'Object is not locked.');
warn Msg('E', "Unable to unlock label type \"$lt\".");
$rc = 1;
}
}
for (@args) {
=over
=item -fam: remove all types in the family, as well as the I<RmLBTYPE>
attribute type. This is a rare and destructive situation, unless the
equivalent type is I<LBTYPE_1.00> (the family was just created).
The types actually affected ought of course to be unlocked.
=item -inc: remove the current increment, and move back the family
type onto the previous one. Note: I<RmLBTYPE> attributes ... may be
left behind (for now...)
$dst =~ s/@\Q$vob\E$/\@$_/;
_Wrap('cptype', $lbl, $dst); #Fails if the type existed in one vob
}
} else {
if ($CT->des([qw(-s -ahl), $EQHL], $lbl)->qx) {
die Msg('E', 'The baseline is not locked: conflicting rollout pending?')
if $ClearCase::Wrapper::MGi::lockbl and !$CT->lslock(['-s'], $lbl)->qx;
_Wrap(qw(mklbtype -inc), @cmt, $lbl) and die "\n";
} else {
die Msg('E', 'The baseline type must be a family type');
}
}
}
print STDERR "$e\n";
} else {
my @opts = ($lock and $CT->lslock(['-s'], $lbt)->qx)?
('-fmt', '%n (%[locked]p)\n') : @dopts;
$CT->des([@opts], $lbt)->system;
}
return 1; #continue
};
$lst->pipecb($cb);
my $lbtype = "lbtype:$opt{label}\@$dvob";
$sync->lblver($opt{label}) if $opt{vreuse} && $ct->des(['-s'], $lbtype)->qx;
my ($inclb) = grep s/-> (lbtype:.*)$/$1/,
$ct->des([qw(-s -ahl EqInc)], $lbtype)->qx;
if ($inclb) {
die "$prog: Error: incremental label types must be unlocked\n"
if $ct->lslock(['-s'], $lbtype, $inclb)->qx;
$inclb =~ s/^lbtype:(.*)@.*$/$1/;
$sync->inclb($inclb);
}
}
view all matches for this distribution
view release on metacpan or search on metacpan
my %hash = qw/a b c d/;
lock_keys(%hash, qw/a c e/);
my $hv = clone \%hash;
is join(':', sort keys %$hv),
'a:c', 'locked HV retains keys';
ok !exists( $hv->{e} ), 'exists still works';
ok eval { $hv->{e} = 1 }, 'permitted key';
ok !eval { $hv->{f} = 1 }, 'forbidden key';
delete $hv->{a};
ok !exists( $hv->{a} ), 'delete still works';
unlock_keys(%$hv);
ok eval { $hv->{f} = 1 }, 'can be unlocked';
ok exists( $hv->{f} ), '...and insert now works';
ok !eval { $hash{f} = 1 }, '...but parent is still locked';
}
{
BEGIN { $skip += 5 }
my %hash = qw/a b c d/;
lock_keys(%hash);
lock_value(%hash, 'a');
my $hv = clone \%hash;
is $hv->{a}, 'b', 'locked value is retained';
ok !eval { $hv->{a} = 1 }, '...but cannot be changed';
unlock_value(%$hv, 'a');
ok eval { $hv->{a} = 1 }, 'can be unlocked';
is $hv->{a}, 1, '...and can now be changed';
ok !eval { $hash{a} = 1 }, '...but parent is still locked';
}
BEGIN { $tests += $skip }
}
view all matches for this distribution
view release on metacpan or search on metacpan
get_av|5.006000|5.003007|p
getc|5.003007||Viu
get_c_backtrace|5.021001||Vi
get_c_backtrace_dump|5.021001||V
get_context|5.006000|5.006000|nu
getc_unlocked|5.003007||Viu
get_cv|5.006000|5.003007|p
get_cvn_flags|5.009005|5.003007|p
get_cvs|5.011000|5.003007|p
getcwd_sv|5.007002|5.007002|
get_db_sub|||iu
PERL_MALLOC_WRAP|5.009002|5.009002|Vn
PerlMem_calloc|5.006000||Viu
PerlMem_free|5.005000||Viu
PerlMem_free_lock|5.006000||Viu
PerlMem_get_lock|5.006000||Viu
PerlMem_is_locked|5.006000||Viu
PerlMem_malloc|5.005000||Viu
PERL_MEMORY_DEBUG_HEADER_SIZE|5.019009||Viu
PerlMemParse_calloc|5.006000||Viu
PerlMemParse_free|5.006000||Viu
PerlMemParse_free_lock|5.006000||Viu
PerlMemParse_get_lock|5.006000||Viu
PerlMemParse_is_locked|5.006000||Viu
PerlMemParse_malloc|5.006000||Viu
PerlMemParse_realloc|5.006000||Viu
PerlMem_realloc|5.005000||Viu
PerlMemShared_calloc|5.006000||Viu
PerlMemShared_free|5.006000||Viu
PerlMemShared_free_lock|5.006000||Viu
PerlMemShared_get_lock|5.006000||Viu
PerlMemShared_is_locked|5.006000||Viu
PerlMemShared_malloc|5.006000||Viu
PerlMemShared_realloc|5.006000||Viu
PERL_MG_UFUNC|5.007001||Viu
Perl_modf|5.006000|5.006000|n
PERL_MULTICONCAT_HEADER_SIZE|5.027006||Viu
putc|5.003007||Viu
put_charclass_bitmap_innards|5.021004||Viu
put_charclass_bitmap_innards_common|5.023008||Viu
put_charclass_bitmap_innards_invlist|5.023008||Viu
put_code_point|5.021004||Viu
putc_unlocked|5.003007||Viu
putenv|5.005000||Viu
put_range|5.019009||Viu
putw|5.003007||Viu
pv_display|5.006000|5.003007|p
pv_escape|5.009004|5.003007|p
view all matches for this distribution
view release on metacpan or search on metacpan
0 23 * * * bash -c /opt/deploy/code/portal/script/purge_sessions.pl
# Create tickets for recurring tasks
0 7 * * * bash -c /opt/deploy/code/portal/script/create_recurring_tasks_tickets.pl 2>&1 | mutt -s 'Portal Recurring Tasks Ticket Creation' -- oriol.soriano@capside.com
#
# Check blocked recurring tasks
10 7 * * 1 bash -c /opt/deploy/code/portal/script/recurringtasks_check_blocked.pl
#
# RT Tickets not existing @ Portal daily verification
0 8 * * * bash -c /opt/deploy/code/portal/init/report_rt_tickets_without_tmetadata.pl -v 2>&1 | mutt -s 'RT Tickets without ticket_metadata' -- oriol.soriano@capside.com
# DWH hourly ETLs
view all matches for this distribution
view release on metacpan or search on metacpan
cfcore/Clownfish/Util/Atomic.c view on Meta::CPAN
#include <windows.h>
bool
cfish_Atomic_wrapped_cas_ptr(void *volatile *target, void *old_value,
void *new_value) {
return InterlockedCompareExchangePointer(target, new_value, old_value)
== old_value;
}
/************************** Fall back to ptheads ***************************/
#elif defined(CHY_HAS_PTHREAD_H)
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Code/TidyAll/SVN/Precommit.pm view on Meta::CPAN
% svn commit -m "fixups" CHI.pm CHI/Driver.pm
Sending CHI/Driver.pm
Sending CHI.pm
Transmitting file data ..svn: Commit failed (details follow):
svn: Commit blocked by pre-commit hook (exit code 255) with output:
2 files did not pass tidyall check
lib/CHI.pm: *** 'PerlTidy': needs tidying
lib/CHI/Driver.pm: *** 'PerlCritic': Code before strictures are enabled
at /tmp/Code-TidyAll-0e6K/Driver.pm line 2
[TestingAndDebugging::RequireUseStrict]
view all matches for this distribution
view release on metacpan or search on metacpan
CodeBase.pm view on Meta::CPAN
=item flush [TRIES]
Flushes to file any outstanding changes (made by C<set_field()>.
Records need to be locked while changes are written. C<TRIES> is the
number of attempts that should be made to aquire the lock. Subsequent
attempts are made with a one second interval.
=item pack COMPRESS-MEMO-FLAG
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Prima/CodeManager/Edit.pm view on Meta::CPAN
$self-> notify(q(Change)) if $self-> {notifyChangeLock} == 0 && $lock < 0;
}
#-------------------------------------------------------------------------------
sub change_locked
{
my $self = $_[0];
return $self-> {notifyChangeLock} != 0;
}
view all matches for this distribution
view release on metacpan or search on metacpan
share/js/jquery-1.11.3.js view on Meta::CPAN
if ( !memory ) {
self.disable();
}
return this;
},
// Is it locked?
locked: function() {
return !stack;
},
// Call all callbacks with the given context and arguments
fireWith: function( context, args ) {
if ( list && ( !fired || stack ) ) {
view all matches for this distribution
view release on metacpan or search on metacpan
get_av|5.006000|5.003007|p
getc|5.003007||Viu
get_c_backtrace|5.021001||Vi
get_c_backtrace_dump|5.021001||V
get_context|5.006000|5.006000|nu
getc_unlocked|5.003007||Viu
get_cv|5.006000|5.003007|p
get_cvn_flags|5.009005|5.003007|p
get_cvs|5.011000|5.003007|p
getcwd_sv|5.007002|5.007002|
get_db_sub|||iu
PERL_MALLOC_WRAP|5.009002|5.009002|Vn
PerlMem_calloc|5.006000||Viu
PerlMem_free|5.005000||Viu
PerlMem_free_lock|5.006000||Viu
PerlMem_get_lock|5.006000||Viu
PerlMem_is_locked|5.006000||Viu
PerlMem_malloc|5.005000||Viu
PERL_MEMORY_DEBUG_HEADER_SIZE|5.019009||Viu
PerlMemParse_calloc|5.006000||Viu
PerlMemParse_free|5.006000||Viu
PerlMemParse_free_lock|5.006000||Viu
PerlMemParse_get_lock|5.006000||Viu
PerlMemParse_is_locked|5.006000||Viu
PerlMemParse_malloc|5.006000||Viu
PerlMemParse_realloc|5.006000||Viu
PerlMem_realloc|5.005000||Viu
PerlMemShared_calloc|5.006000||Viu
PerlMemShared_free|5.006000||Viu
PerlMemShared_free_lock|5.006000||Viu
PerlMemShared_get_lock|5.006000||Viu
PerlMemShared_is_locked|5.006000||Viu
PerlMemShared_malloc|5.006000||Viu
PerlMemShared_realloc|5.006000||Viu
PERL_MG_UFUNC|5.007001||Viu
Perl_modf|5.006000|5.006000|n
PERL_MULTICONCAT_HEADER_SIZE|5.027006||Viu
putc|5.003007||Viu
put_charclass_bitmap_innards|5.021004||Viu
put_charclass_bitmap_innards_common|5.023008||Viu
put_charclass_bitmap_innards_invlist|5.023008||Viu
put_code_point|5.021004||Viu
putc_unlocked|5.003007||Viu
putenv|5.005000||Viu
put_range|5.019009||Viu
putw|5.003007||Viu
pv_display|5.006000|5.003007|p
pv_escape|5.009004|5.003007|p
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Compress/BGZF.pm view on Meta::CPAN
__END__
=head1 NAME
Compress::BGZF - Read/write blocked GZIP (BGZF) files
=head1 SYNOPSIS
use Compress::BGZF::Writer;
use Compress::BGZF::Reader;
view all matches for this distribution
view release on metacpan or search on metacpan
- fix a couple if dangling else corner cases
format string errors, and unused variables.
- [cpan #82576] fix pod formatting errors
- [cpan #48128] support memBunzip BZh header w/o extra size prefix
and grow dest buf dynamically. Tests in t/040-memory.t
- [cpan #40741] fix bzreadline blocked on the broken bz2 files
- [cpan #84223] fix ignored bzinflateInit args
- [cpan #48124] Multiple issues with bzinflate
support PV ref as bzinflate() buffer arg as documented.
support status checks in chunked bzinflate() calls. t/060-inflate.t
- [cpan #49618] fix for win32 nmake + gcc
view all matches for this distribution
view release on metacpan or search on metacpan
7zip/CPP/7zip/Archive/7z/7zDecode.cpp view on Meta::CPAN
#ifndef _NO_CRYPTO
passwordIsDefined = false;
#endif
CObjectVector< CMyComPtr<ISequentialInStream> > inStreams;
CLockedInStream lockedInStream;
lockedInStream.Init(inStream);
for (int j = 0; j < folderInfo.PackStreams.Size(); j++)
{
CLockedSequentialInStreamImp *lockedStreamImpSpec = new
CLockedSequentialInStreamImp;
CMyComPtr<ISequentialInStream> lockedStreamImp = lockedStreamImpSpec;
lockedStreamImpSpec->Init(&lockedInStream, startPos);
startPos += packSizes[j];
CLimitedSequentialInStream *streamSpec = new
CLimitedSequentialInStream;
CMyComPtr<ISequentialInStream> inStream = streamSpec;
streamSpec->SetStream(lockedStreamImp);
streamSpec->Init(packSizes[j]);
inStreams.Add(inStream);
}
int numCoders = folderInfo.Coders.Size();
view all matches for this distribution
view release on metacpan or search on metacpan
get_av|5.006000|5.003007|p
getc|5.003007||Viu
get_c_backtrace|5.021001||Vi
get_c_backtrace_dump|5.021001||V
get_context|5.006000|5.006000|nu
getc_unlocked|5.003007||Viu
get_cv|5.006000|5.003007|p
get_cvn_flags|5.009005|5.003007|p
get_cvs|5.011000|5.003007|p
getcwd_sv|5.007002|5.007002|
get_db_sub|||iu
PERL_MALLOC_WRAP|5.009002|5.009002|Vn
PerlMem_calloc|5.006000||Viu
PerlMem_free|5.005000||Viu
PerlMem_free_lock|5.006000||Viu
PerlMem_get_lock|5.006000||Viu
PerlMem_is_locked|5.006000||Viu
PerlMem_malloc|5.005000||Viu
PERL_MEMORY_DEBUG_HEADER_SIZE|5.019009||Viu
PerlMemParse_calloc|5.006000||Viu
PerlMemParse_free|5.006000||Viu
PerlMemParse_free_lock|5.006000||Viu
PerlMemParse_get_lock|5.006000||Viu
PerlMemParse_is_locked|5.006000||Viu
PerlMemParse_malloc|5.006000||Viu
PerlMemParse_realloc|5.006000||Viu
PerlMem_realloc|5.005000||Viu
PerlMemShared_calloc|5.006000||Viu
PerlMemShared_free|5.006000||Viu
PerlMemShared_free_lock|5.006000||Viu
PerlMemShared_get_lock|5.006000||Viu
PerlMemShared_is_locked|5.006000||Viu
PerlMemShared_malloc|5.006000||Viu
PerlMemShared_realloc|5.006000||Viu
PERL_MG_UFUNC|5.007001||Viu
Perl_modf|5.006000|5.006000|n
PERL_MULTICONCAT_HEADER_SIZE|5.027006||Viu
putc|5.003007||Viu
put_charclass_bitmap_innards|5.021004||Viu
put_charclass_bitmap_innards_common|5.023008||Viu
put_charclass_bitmap_innards_invlist|5.023008||Viu
put_code_point|5.021004||Viu
putc_unlocked|5.003007||Viu
putenv|5.005000||Viu
put_range|5.019009||Viu
putw|5.003007||Viu
pv_display|5.006000|5.003007|p
pv_escape|5.009004|5.003007|p
view all matches for this distribution
view release on metacpan or search on metacpan
get_av|5.006000|5.003007|p
getc|5.003007||Viu
get_c_backtrace|5.021001||Vi
get_c_backtrace_dump|5.021001||V
get_context|5.006000|5.006000|nu
getc_unlocked|5.003007||Viu
get_cv|5.006000|5.003007|p
get_cvn_flags|5.009005|5.003007|p
get_cvs|5.011000|5.003007|p
getcwd_sv|5.007002|5.007002|
get_db_sub|||iu
PERL_MALLOC_WRAP|5.009002|5.009002|Vn
PerlMem_calloc|5.006000||Viu
PerlMem_free|5.005000||Viu
PerlMem_free_lock|5.006000||Viu
PerlMem_get_lock|5.006000||Viu
PerlMem_is_locked|5.006000||Viu
PerlMem_malloc|5.005000||Viu
PERL_MEMORY_DEBUG_HEADER_SIZE|5.019009||Viu
PerlMemParse_calloc|5.006000||Viu
PerlMemParse_free|5.006000||Viu
PerlMemParse_free_lock|5.006000||Viu
PerlMemParse_get_lock|5.006000||Viu
PerlMemParse_is_locked|5.006000||Viu
PerlMemParse_malloc|5.006000||Viu
PerlMemParse_realloc|5.006000||Viu
PerlMem_realloc|5.005000||Viu
PerlMemShared_calloc|5.006000||Viu
PerlMemShared_free|5.006000||Viu
PerlMemShared_free_lock|5.006000||Viu
PerlMemShared_get_lock|5.006000||Viu
PerlMemShared_is_locked|5.006000||Viu
PerlMemShared_malloc|5.006000||Viu
PerlMemShared_realloc|5.006000||Viu
PERL_MG_UFUNC|5.007001||Viu
Perl_modf|5.006000|5.006000|n
PERL_MULTICONCAT_HEADER_SIZE|5.027006||Viu
putc|5.003007||Viu
put_charclass_bitmap_innards|5.021004||Viu
put_charclass_bitmap_innards_common|5.023008||Viu
put_charclass_bitmap_innards_invlist|5.023008||Viu
put_code_point|5.021004||Viu
putc_unlocked|5.003007||Viu
putenv|5.005000||Viu
put_range|5.019009||Viu
putw|5.003007||Viu
pv_display|5.006000|5.003007|p
pv_escape|5.009004|5.003007|p
view all matches for this distribution