Displaying 20 results from an estimated 38 matches for "get_flag".
Did you mean:
get_flags
2006 Apr 24
2
Checkboxes - Saving a Checked record to another table
...the ID, nothing else. Im struggling
with the logic to save to another table. I know how to do it if the
asset_id is already in the "flagged_assets" table.
# when flag_assets page is loaded
def flag_assets
@assets = Asset.find :all
end
# Called when Ajax form is submitted
def get_flagged
to_flag = params[:to_be_flagged]
if to_flag
to_flag.each do |asset_id, flag|
@assets = FlaggedAsset.find_all_by_asset_id(asset_id)
for asset in @assets
if flag == "yes"
asset.flag = 1
else
asset.flag = 0
end...
2006 Aug 21
3
sieve-cvs build failing @ 'make'
...-std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations
- -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast
- -I/usr/local/ssl/include -MT sieve-cmu.lo -MD -MP -MF
.deps/sieve-cmu.Tpo -c sieve-cmu.c -fno-common -DPIC -o .libs/sieve-cmu.o
sieve-cmu.c: In function 'get_flags':
sieve-cmu.c:181: error: 'array_t' undeclared (first use in this function)
sieve-cmu.c:181: error: (Each undeclared identifier is reported only once
sieve-cmu.c:181: error: for each function it appears in.)
sieve-cmu.c:181: error: parse error before 'union'
sieve-cmu.c:181: wa...
2007 Dec 31
1
Segmentation fault in dovecot-sieve-1.1.2 + dovecot-1.1.beta13
...---
when a message with a subject containing "test"
is delivered via dovecot lda.
The fault backtrace is:
(gdb) run
Starting program: /usr/local/libexec/dovecot/deliver -d
load1 at virt1.cti2.com < bad.txt
Program received signal SIGSEGV, Segmentation fault.
get_flags (sieve_flags=0xbfe7e438, flags_r=0xbfe7dee4,
keywords_r=0x2)
at
/root/dovecot-1.1.beta13/src/lib/array.h:145
145
*count_r = array->buffer->used / array->element_size;
(gdb) bt
#0 get_flags
(sieve_flags=0xbfe7e438, flags_r=0xbfe7dee4, keywords_r=0x2)
at
/root...
2019 May 28
0
[libnbd PATCH 4/4] api: Add DF flag support for pread
...t;structured_replies) {
+ debug (h, "server lacks structured replies, ignoring claim of df");
+ eflags &= ~NBD_FLAG_SEND_DF;
+ }
+
h->exportsize = exportsize;
h->eflags = eflags;
return 0;
@@ -95,6 +100,12 @@ nbd_unlocked_can_zero (struct nbd_handle *h)
return get_flag (h, NBD_FLAG_SEND_WRITE_ZEROES);
}
+int
+nbd_unlocked_can_df (struct nbd_handle *h)
+{
+ return get_flag (h, NBD_FLAG_SEND_DF);
+}
+
int
nbd_unlocked_can_multi_conn (struct nbd_handle *h)
{
diff --git a/lib/rw.c b/lib/rw.c
index feaf468..343c340 100644
--- a/lib/rw.c
+++ b/lib/rw.c
@@ -234,11...
2006 Jul 11
0
[rfc] standalone kinit/resume
...ume=");
- resume_file = resume_arg ? resume_arg : resume_file;
- /* No resume device specified */
- if (!resume_file[0])
- return 0;
-
- /* Fix: we either should consider reverting the device back to
- ordinary swap, or (better) put that code into swapon */
- /* Noresume requested */
- if (get_flag(argc, argv, "noresume"))
- return 0;
- return resume(resume_file);
+ fprintf(stderr, "Usage: %s /dev/<resumedevice>\n", progname);
+ exit(1);
}
-int resume(const char *resume_file)
+int main(int argc, char *argv[], char *envp[])
{
- char device_string[64];
- int power...
2019 Aug 06
0
[PATCH libnbd 1/3] api: Change nbd_read_only -> nbd_is_read_only.
...t;.";
};
- "read_only", {
+ "is_read_only", {
default_call with
args = []; ret = RBool;
permitted_states = [ Connected; Closed ];
diff --git a/lib/flags.c b/lib/flags.c
index cdbc28f..2bcacb8 100644
--- a/lib/flags.c
+++ b/lib/flags.c
@@ -65,7 +65,7 @@ get_flag (struct nbd_handle *h, uint16_t flag)
}
int
-nbd_unlocked_read_only (struct nbd_handle *h)
+nbd_unlocked_is_read_only (struct nbd_handle *h)
{
return get_flag (h, NBD_FLAG_READ_ONLY);
}
diff --git a/lib/rw.c b/lib/rw.c
index bba62be..50ba23d 100644
--- a/lib/rw.c
+++ b/lib/rw.c
@@ -341,7 +...
2019 Aug 23
1
[libnbd PATCH 1/1] api: Add support for FAST_ZERO flag
...ITE_ZEROES)) {
+ debug (h, "server lacks write zeroes, ignoring claim of fast zero");
+ eflags &= ~NBD_FLAG_SEND_FAST_ZERO;
+ }
+
h->exportsize = exportsize;
h->eflags = eflags;
return 0;
@@ -100,6 +106,12 @@ nbd_unlocked_can_zero (struct nbd_handle *h)
return get_flag (h, NBD_FLAG_SEND_WRITE_ZEROES);
}
+int
+nbd_unlocked_can_fast_zero (struct nbd_handle *h)
+{
+ return get_flag (h, NBD_FLAG_SEND_FAST_ZERO);
+}
+
int
nbd_unlocked_can_df (struct nbd_handle *h)
{
diff --git a/lib/protocol.c b/lib/protocol.c
index 6087887..acee203 100644
--- a/lib/protocol.c
+...
2019 Jun 21
0
[libnbd PATCH v2 5/5] states: Add DF flag support for pread
...t;structured_replies) {
+ debug (h, "server lacks structured replies, ignoring claim of df");
+ eflags &= ~NBD_FLAG_SEND_DF;
+ }
+
h->exportsize = exportsize;
h->eflags = eflags;
return 0;
@@ -95,6 +100,12 @@ nbd_unlocked_can_zero (struct nbd_handle *h)
return get_flag (h, NBD_FLAG_SEND_WRITE_ZEROES);
}
+int
+nbd_unlocked_can_df (struct nbd_handle *h)
+{
+ return get_flag (h, NBD_FLAG_SEND_DF);
+}
+
int
nbd_unlocked_can_multi_conn (struct nbd_handle *h)
{
diff --git a/lib/nbd-protocol.h b/lib/nbd-protocol.h
index 071971e..405af3e 100644
--- a/lib/nbd-protoc...
2015 Jan 21
0
[ANNOUNCE] libdrm 2.4.59
...ed/object prop types
configure/freedreno: make KGSL support optional
configure/freedreno: enable freedreno by default
Thierry Reding (6):
libdrm: Add NVIDIA Tegra support
tegra: Add simple test for drm_tegra_open()
tegra: Add GET/SET_TILING IOCTLs
tegra: Add SET/GET_FLAGS IOCTLs
tegra: Implement drm_tegra_bo_{get,set}_flags()
tegra: Implement drm_tegra_bo_{get,set}_tiling()
Thomas Meyer (1):
intel: Fix SIGSEGV in libdrm for heigth = 0 and width = 0
Ville Syrjälä (1):
modetest: Print newline for empty blobs
Zhenyu Wang (1):
intel: Fi...
2006 Jan 31
1
beta2: strange assert
...no_newline = 0, use_full_value = 0}
(gdb) print *mail
$3 = {mail = {mail = {box = 0xb6ff8, transaction = 0xbb1b8, seq = 4,
uid = 1233, expunged = 0, has_nuls = 1, has_no_nuls = 0}, v = {
free = 0x490e0 <index_mail_free>,
set_seq = 0x48d20 <index_mail_set_seq>,
get_flags = 0x47b3c <index_mail_get_flags>,
get_keywords = 0x47b88 <index_mail_get_keywords>,
get_parts = 0x47d0c <index_mail_get_parts>,
get_received_date = 0x37224 <mbox_mail_get_received_date>,
get_date = 0x47db8 <index_mail_get_date>,
get_virtu...
2006 Nov 13
7
[736] trunk/wxruby2/samples/dialogs/dialogs.rb: Fixed crashing bug in on_paint and made the code style more Ruby like.
...;,
</span><span class="cx"> type == EVT_COMMAND_FIND_NEXT ? "next " : "",
</span><span class="cx"> event.get_find_string(),
</span><del>- DecodeFindDialogEventFlags(event.get_flags()))
</del><ins>+ decode_find_dialog_event_flags(event.get_flags()))
</ins><span class="cx"> elsif type == EVT_COMMAND_FIND_REPLACE || type == EVT_COMMAND_FIND_REPLACE_ALL
</span><span class="cx"> log_message("R...
2019 Aug 06
5
[PATCH libnbd 0/3] One API and small documentation changes.
One API change, some small documentation changes.
2007 May 14
3
[Bug 567] ulogd writes invalid len field in per-packet headers
https://bugzilla.netfilter.org/bugzilla/show_bug.cgi?id=567
------- Additional Comments From kaber@trash.net 2007-05-14 14:28 MET -------
There are two len fields, caplen and len. Which one is wrong?
--
Configure bugmail: https://bugzilla.netfilter.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
2019 May 23
0
[PATCH libnbd 1/3] states: Factor out common code for setting export size and eflags.
...exportsize: %" PRIu64 " eflags: 0x%" PRIx16, exportsize, eflags);
+
+ if (eflags == 0) {
+ set_error (EINVAL, "handshake: invalid eflags == 0 from server");
+ return -1;
+ }
+
+ h->exportsize = exportsize;
+ h->eflags = eflags;
+ return 0;
+}
+
static int
get_flag (struct nbd_handle *h, uint16_t flag)
{
diff --git a/lib/internal.h b/lib/internal.h
index 8eadada..f0705ef 100644
--- a/lib/internal.h
+++ b/lib/internal.h
@@ -265,6 +265,11 @@ extern void nbd_internal_set_last_error (int errnum, char *error);
nbd_internal_set_last_error ((errnum), _errp);...
2017 Mar 23
2
[PATCH] p2v: Use lscpu instead of libvirt to get CPU information.
...ore");
+ if (v)
+ ignore_value (sscanf (v, "%u", &cpu->threads));
}
/**
- * Read the capabilities from libvirt and parse out the fields
- * we care about.
+ * Read some important flags from lscpu output.
*/
static void
-libvirt_capabilities (struct cpu_config *cpu)
+get_flags (char **lscpu, struct cpu_config *cpu)
{
- virConnectPtr conn;
- CLEANUP_FREE char *capabilities_xml = NULL;
- CLEANUP_XMLFREEDOC xmlDocPtr doc = NULL;
- CLEANUP_XMLXPATHFREECONTEXT xmlXPathContextPtr xpathCtx = NULL;
- CLEANUP_XMLXPATHFREEOBJECT xmlXPathObjectPtr xpathObj = NULL;
- const c...
2003 Apr 16
1
pop3 coredump
...readonly = 0, allow_custom_flags = 0, inconsistent = 0},
expunge_locked = 0, index = 0x808c200, autosync_to = 0x0,
autosync_files = 0x0, autosync_type = MAILBOX_SYNC_NONE, sync_last_check = 0,
min_newmail_notify_interval = 0, fetch_mail = {mail = {seq = 0, uid = 0,
seen_updated = 0, get_flags = 0, get_parts = 0, get_received_date = 0,
get_date = 0, get_size = 0, get_header = 0, get_address = 0,
get_first_mailbox = 0, get_stream = 0, get_special = 0}, data = {flags = {
flags = 0, custom_flags = 0x0, custom_flags_count = 0},
received_date = 0, size = 0, sent_...
2007 Aug 17
0
Branch 'vivi' - 3 commits - player/Makefile.am player/swfdec_debug_movies.c player/swfdec_debug_movies.h vivified/core vivified/ui
...ibswfdec/swfdec_movie.h>
-#include <libswfdec/swfdec_player_internal.h>
-#include "swfdec_debug_movies.h"
-
-/*** GTK_TREE_MODEL ***/
-
-#if 0
-# define REPORT g_print ("%s\n", G_STRFUNC)
-#else
-# define REPORT
-#endif
-static GtkTreeModelFlags
-swfdec_debug_movies_get_flags (GtkTreeModel *tree_model)
-{
- REPORT;
- return 0;
-}
-
-static gint
-swfdec_debug_movies_get_n_columns (GtkTreeModel *tree_model)
-{
- REPORT;
- return SWFDEC_DEBUG_MOVIES_N_COLUMNS;
-}
-
-static GType
-swfdec_debug_movies_get_column_type (GtkTreeModel *tree_model, gint index_)
-{
- REPORT;...
2019 May 23
5
[PATCH libnbd 0/3] Prevent some misuse of multi-conn.
Per recent discussion here:
https://www.redhat.com/archives/libguestfs/2019-May/thread.html#00175
2007 May 05
0
[1012] trunk/wxruby2/doc/textile: Added docs for AUI Advanced User Interface classes
...+* "AuiManager#detach_pane":#AuiManager_detachpane
+* "AuiManager#get_all_panes":#AuiManager_getallpanes
+* "AuiManager#get_art_provider":#AuiManager_getartprovider
+* "AuiManager#get_dock_size_constraint":#AuiManager_getdocksizeconstraint
+* "AuiManager#get_flags":#AuiManager_getflags
+* "AuiManager#get_managed_window":#AuiManager_getmanagedwindow
+* "AuiManager#get_manager":#AuiManager_getmanager
+* "AuiManager#get_pane":#AuiManager_getpane
+* "AuiManager#hide_hint":#AuiManager_hidehint
+* "AuiManager#inse...
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...YPE,
+ gradient)
+ @mgr.update
+ end
+
+ def on_manager_flag(event)
+ e_id = event.get_id
+ if e_id == ID_TransparentHint or
+ e_id == ID_VenetianBlindsHint or
+ e_id == ID_RectangleHint or
+ e_id == ID_NoHint
+ flags = @mgr.get_flags
+ flags &= ~Wx::AUI_MGR_TRANSPARENT_HINT
+ flags &= ~Wx::AUI_MGR_VENETIAN_BLINDS_HINT
+ flags &= ~Wx::AUI_MGR_RECTANGLE_HINT
+ @mgr.set_flags(flags)
+ end
+
+ flag = nil
+ case e_id
+ when ID_AllowFloating
+ flag = Wx::AUI_MGR_ALLOW_FLOATING
+ w...