Changing open() flag  FNDELAY via fcntl(). How to know new value?

When driver executes open (man -s9e open) entry program it knows open mode
"flags" such as FEXCL, FNDELAY, FREAD, WRITE. But after open was made these
parameters can be changed by user application via fcntl() (man -s2 fcntl)
call.
How to know from driver the new values of these parameters? How to know
the moment of changing?
Thank you.

Just I found that current mode is in uio_fmode field of uio structure (man -s9s uio).
But how to obtain the moment of changing?
Thank you.

Similar Messages

  • How to add new value to 'Partition by' from RPD

    HI..
    in the presentation services when queried my request.. i am getting query below like that.this time i am getting wrong values. if i include c8 in partition by for c13 then i able to get the correct values.
    Can you plz tell me how to include new value to the partion by ..from RPD.
    SAWITH0.c7 as c7,
    SAWITH0.c8 as c8,
    SAWITH0.c9 as c9,
    SAWITH0.c10 as c10,
    SAWITH0.c11 as c11,
    SAWITH0.c12 as c12,
    sum(SAWITH0.c13) over (partition by SAWITH0.c10, SAWITH0.c14, SAWITH0.c11, SAWITH0.c12) as c13,
    SAWITH0.c14 as c14
    Thank you.

    Hi,
    I guess you made a mistake in your business model. The c8 column should be coming from a separate dimension.
    Good Luck,
    Daan Bakboord
    http://obiee.nl

  • How to concatenate new values

    hi experts,
    i have query how to add new values through concatenate like
    concatenate ZCHILDDESC '->' CHILDDESC '->' test into desc.
    now this 'test' value is increase as new value is added.
    how to write the code for this.
    thanks
    vipul

    I think i understood the question though not exactly sure.
    As  the value of test increases, he may want to add additional nodes with -> based on the value of test.
    For Ex,
    If the value of test is 2,
    concatenate ZCHILDDESC '->' CHILDDESC '->' test1 -> test2 into desc.
    similarly if its 3,
    concatenate ZCHILDDESC '->' CHILDDESC '->' test1 '->' test2 '->' test3 into desc.
    @ Vipul: Kindly confirm if this is what your question is else please explain it clearly
    Vikranth

  • Changing the Registration point via AS3 . how?

    hello,
    is it posseple to change the Registration point via AS3 ?
    Best Regards,
    Crimson

    The Attach Code window isn't working for me on this so I
    pasted the code into the message. Hope the formatting remains
    reasonable.
    public class HomePage extends MovieClip {
    public var frenchieReal:Swimmer; //Swimmer extends
    MovieClip; contains image of French Angel
    public var frenchie:Sprite; //To offset regisration point of
    frenchieReal
    public function loadStage() {
    var timer:Timer;
    var wayPoints:Array;
    //Establish timer for swimmers
    timer = new Timer(100, 0);
    //Create new swimmer supplying: image path, width, heigth,
    and initial x and y location
    frenchieReal = new Swimmer("Photoshop/oceanswimmer.png", 57,
    41, -24, -28);
    frenchie = new Sprite();
    frenchie.x = 244;
    frenchie.y = 532;
    this.addChild(frenchie);
    frenchie.addChild(frenchieReal);
    frenchieReal.setTimerListener(timer);
    //Set waypoints for swimmers
    wayPoints = [[230, 530],
    [240, 520],
    [250, 500],
    [260, 480],
    [298, 480],
    [358, 540],
    [368, 544],
    [388, 520],
    [398, 495],
    [404, 475],
    [420, 500],
    [458, 545],
    [528, 550]];
    frenchieReal.setPath(wayPoints);
    package {
    import flash.display.MovieClip;
    import flash.events.*;
    import flash.utils.Timer;
    import flash.net.*;
    import flash.display.*;
    public class Swimmer extends MovieClip {
    private var path:Array;
    private var pathLength:uint;
    private var pathLocation:int;
    private var loader:Loader;
    private var intercept:int;
    public function Swimmer(imagePath:String, w:uint, h:uint,
    xx:uint, yy:uint) {
    var urlRequest:URLRequest;
    this.x = xx; //Transaltion offsets for image MovieClip (eg,
    -24 and -28)
    this.y = yy; //Image is visible if these two values are
    nonnegative
    this.loader = new Loader();
    this.addChild(this.loader);
    urlRequest = new URLRequest(imagePath);
    if (urlRequest != null) this.loader.load(urlRequest);
    //Sets an array of waypoints
    public function setPath(p:Array) {
    this.path = p;
    this.pathLength = p.length;
    this.pathLocation = 1;
    this.parent.x = this.path[0][0];
    this.parent.y = this.path[0][1];
    this.intercept = -this.parent.y;
    public function setTimerListener(t:Timer):void {
    t.addEventListener(TimerEvent.TIMER, timerListener);
    //this.parent in timerListener is the Sprite object to which
    image MovieClip is parented
    function timerListener(e:TimerEvent):void {
    var i:int;
    var iMinus1:int;
    var xx:int;
    var y1:int;
    var y2:int;
    var rise:int;
    var run:int;
    var rotationAngle:int;
    if (this.path != null) {
    //Move to next segment?
    if (this.parent.x >= this.path[this.pathLocation][0]) {
    this.pathLocation++;
    //Go back to first segment?
    if (this.pathLocation == this.pathLength) {
    this.pathLocation = 1;
    this.parent.x = this.path[0][0];
    this.parent.y = this.path[0][1];
    this.intercept = -this.parent.y; //Minus y to translate
    everything to lower quadrant
    //y = ax + b
    //y = ((path
    [1] - path[i-1][1]) / (path[0] - path[i-1][0])) * this.x +
    path[i-1][1]
    i = this.pathLocation;
    iMinus1 = i - 1;
    this.parent.x += 2;
    xx = this.parent.x - this.path[iMinus1][0];
    y1 = -this.path[iMinus1][1];
    y2 = -this.path
    [1];
    rise = y2 - y1;
    run = this.path[0] - this.path[iMinus1][0];
    this.parent.y = ((y2 - y1) / (this.path
    [0] - this.path[iMinus1][0])) * xx + intercept;
    this.parent.y = -this.parent.y;
    rotationAngle = -(180/Math.PI) * Math.atan2(rise, run);
    this.parent.rotation = rotationAngle;
    trace("rise = " + rise + " run = " + run + " rotationAngle =
    " + rotationAngle + " Intercept = " + this.intercept);
    trace("x = " + this.parent.x + " y = " + this.parent.y + "
    rotation = " + this.parent.rotation);

  • DATASET_WRITE_ERROR :How to know the value of a field at the time of error?

    Hi All,
    I have an ABAP code that write some records to a  flat file. Am getting a DATASET_WRITE_ERROR when this program is run.
    in ST22 i checked for any info that could be of help.
    The Error Text is: "No Space left on device"
    Error code: 28.
    Now i want to know after writing how many records did the program threw the error.
    I have a counter named WRITE_CTR. <b>Is there any way in the debug mode I can check for the value of WRITE-CTR just before the program terminated ?</b> checking the value of counter each time a record is written is not practical as there are almost 40k records in total.
    In ST22 i checked the section "Chosen Variables". unfortunately this counter's value is not listed there.
    Please let me know if there is any way i can see the contents of a field just before a short dump is generated.
    Otherwise is there any option during debug that i can set a breakpoint on a statement when the field WRITE-CTR=<some value> say when WRITE-CTR = 30000 ?
    Thanks in advance,
    Rit

    Ok. Havent used Try..Catch in ABAP. I'll try using that. That should be a better way. Thanks.
    I think it throws the error only after 20 or 30000 records are written. So its not possible to set a breakpoint where it writes to file and check which all records are written.
    I wanted to know if there's any way to know the value of a filed just before the error is thrown. In the 'Watch' feature i saw an option to select a field and then give a comparison operator and all. Do you know how to use that ? Will that help me to break the execution when a field value equals a limit ? Just wondering what the Watch option is for!!
    Regrads,
    rit

  • How to populate new values in JTable?

    hello swing experts!!!
    i have a problem plz i need your help. tnx.
    so here's the scenario.
    i have a program that retrieves information from the database and display it in the JTable. i have JTextBox to search users by "Name" and when i click JButton "search" it will populate all the users that has the "Name" in the JTable.
    i already know how to populate a JTable at first like giving a JTable(row,column) or a model = new DefaultTableModel(row,col). but
    i dont know how to *"Re-populate"* values in the JTable? an algorithm/steps/code snippets on how it will work will be a great help. tnx!

    Just a small example :
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.Vector;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableModel;
    public class Testing
         public static void main(String... args)
              final DefaultTableModel model = new DefaultTableModel()
                   @Override
                   public boolean isCellEditable(int row, int column)
                        return false;
              model.addColumn("One");
              model.addColumn("Two");
              final JTable table = new JTable(model);
              JButton button = new JButton("Click to add data to the table");
              //get your data in a vector from the list you are getting from the database
              final Vector<String> newRow = new Vector<String>();
              newRow.add("Value1");
              newRow.add("Value2");
              button.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        model.addRow(newRow);
              JFrame frame = new JFrame("Testing");
              frame.getContentPane().add(button, BorderLayout.NORTH);
              frame.getContentPane().add(table, BorderLayout.CENTER);
              frame.setSize(400, 200);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setLocationRelativeTo(null);
              frame.setVisible(true);
    }

  • How to get new value in inputtext

    Hi,
    my code is :
    <af:inputText value="#{bindings.StuId.inputValue}"
    id="it3" autoSubmit="true"
    clientComponent="true">
    <af:clientListener type="mouseDown" method="mousedown"/>
    </af:inputText>
    function mousedown(event)
    var source = event.getSource();
    alert(source.getValue());
    event.cancel();
    My problem is that I can't get the new value in inputtext if I don't move the focus away from the inputtext . For example , the old value is '1' and I change it to '2' . If I press mouse down on the inputtext without changing focus , it print '1' . If I change the focus and then press mouse down on the inputtext , it print '2' . I need it print the new value without changing focus or pressing a button . What should I do ? Please share your advice , thanks !
    Edited by: user8627873 on 2010-10-14 上午6:11

    Hi,
    can you try getSubmittedValue() ? get value represents the component server state
    Frank

  • How to change "open with" defaults via command line?!?

    folks,
    i know that if i get info on a file -- in this case, a filemaker 5.5 file -- i can choose the default "open with" settings and apply those settings to all files of that kind. see the attached image for what i mean.
    but how do i do that via the command line?
    thus far, here's what i've got: i know that i can open a document called "scrubbing shell.sh" on my desktop WITH either MS Word of TextEdit by calling:
    open -a textedit /Users/david/Desktop/scrubbing-shell.sh
    or
    open -a Microsoft\ Word /Users/david/Desktop/scrubbing-shell.sh
    no sweat. BUT....how do i set the defaults so that it ALWAYS opens with that app in the future when double-clicking via the GUI?
    many thanks, ya'll!
    david koff
    associate systems admin
    the j. paul getty trust
    dkoff AT getty DOT edu

    Hi David,
       OK, I investigated the new format and treatment. It appears that the first entry in the property list file that matches the file being opened wins. The Finder may still honor the new format; when I moved my old Panther file into Tiger it seemed to work. However, in other ways, the Finder doesn't recognize the old format, which is the format of the FileMaker entries you posted.
       The Finder puts all of the new format entries at the beginning of the property list file. If you change a preference that was controlled by an old format entry, the Finder won't edit that entry. What it will do is to create a new entry in the new format closer to the beginning of the file than any of the old-format entries. SInce the new entry comes first, the old one doesn't apply. If you then edit the preference and change it back to what it was before, the Finder will edit the new entry. Consider the following sequence of events and commands:
    % cp ~/Library/Preferences/com.apple.LaunchServices.plist ~/Library/Preferences/com.apple.LaunchServices_copy.plist
    I change all GIF files to be opened by GraphicConverter instead of Preview, which is an old setting in the old format.
    % plutil -convert xml1 ~/Library/Preferences/com.apple.LaunchServices.plist
    % diff --text ~/Library/Preferences/com.apple.LaunchServices.plist ~/Library/Preferences/com.apple.LaunchServices_copy.plist
    404,409d403
    <      <dict>
    <         <key>LSHandlerContentType</key>
    <         <string>com.compuserve.gif</string>
    <         <key>LSHandlerRoleAll</key>
    <         <string>com.lemkesoft.graphicconverter</string>
    <      </dict>
    Then I change all the GIF files to be opened by Preview again.
    % plutil -convert xml1 ~/Library/Preferences/com.apple.LaunchServices.plist
    % cp ~/Library/Preferences/com.apple.LaunchServices.plist ~/Library/Preferences/com.apple.LaunchServices_copy2.plist
    % diff --text ~/Library/Preferences/com.apple.LaunchServices.plist ~/Library/Preferences/com.apple.LaunchServices_copy.plist
    404,409d403
    <       <dict>
    <          <key>LSHandlerContentType</key>
    <          <string>com.compuserve.gif</string>
    <          <key>LSHandlerRoleAll</key>
    <          <string>com.apple.preview</string>
    <       </dict>
    % diff --text ~/Library/Preferences/com.apple.LaunchServices.plist ~/Library/Preferences/com.apple.LaunchServices_copy2.plist
    408c408
    <          <string>com.apple.preview</string>
              <string>com.lemkesoft.graphicconverter</string>
       Note that I had to change the file to text after every change because the Finder converted the file to binary format every time it edited it. I didn't have to logout or reboot; the property list file change less than a second after the preference was set. I'm guessing that because you were just looking at the old-format entry, you missed the real changes to your property list file. Did it change from text to binary format? Try the command line tools that I used above.
       Note that this means that it matters where you put your entries in the property list file if you edit it.
    Gary
    ~~~~
       There are only 10 kinds of people in the world. Those
       who understand binary numbers and those who don't.

  • Opening an URL via a button in a new browser window?

    Hello,
    I'm integrating now Oracle Reports in my HTML DB application.
    Everything work well. I have create a launching page with paremeter items and a button that call a branching of type "Branch to Function Returning a URL". This branching construct the Oracle Report URL with parameters as entered in the parameter page.
    The only thing missing is the possibility to open Report output in a different browser window. I don't know how to do it via the Branching specification. Normally, in HTML, I would use target="_new" .
    Thank you
    Jean

    you might want to try having your page submit as normal, doing your parameter manipulation in an after_submit pl/sql process, and popping up the report page from your next htmldb application page. let's say, for example, that you have an update form on page 4 that branches back to a report page 2 in your application. you'd like to use the P4_JOB value submitted from page 4 to pop up a google search for that job and the string "oracle". you could do it like this...
    --create an app-level (or page level) item called POP_ON_LOAD
    --have page 4 submit as normal and branch back to page 2
    --add a pl/sql process that fires when page 4 is submitted.  have that proc set the value of POP_ON_LOAD like so...
    begin
    :POP_ON_LOAD := 'OnLoad="popupURL(''http://www.google.com/search?q=oracle+&P4_JOB.'');"';
    end;
    --enter &POP_ON_LOAD. into the "Page HTML Body Attribute" attribute of the "On Load JavaScript..." region on the page-level attributes page for page 2.
    this way, when POP_ON_LOAD is populated, htmldb will make the onLoad call to popupURL passing in whatever url you set from your after_submit process on page 4. and just remember to clear your POP_ON_LOAD item when you don't want page 2 to pop up those extra windows.
    hope this helps,
    raj

  • How to add new value in Classification under General tab via MM02.

    Hello Experts,
    I've a requirement where I need to add a new material variant configuration value via MM02 as highlighted below. I've also attached the screen shot of CL02, the two characteristics which I need to add (highlighted in red).
    Can please anybody tell me the steps to add value in Classification under General tab via MM02.
    Many thanks in advance.

    zero cool,
    Use transaction CL02 , open class in PCL_222_PURO_BOX with class type 300
    add characterstic
    PCH_COSTING_WGT_DETERM
    PCH_COSTING_WGT_A_DETERM
    save it.
    Now use MM02 and go to classification view , now you would be able to see these characterstic there.
    Check and come back.
    Thanks
    Ritesh

  • Open BW webreport via button on form in (new) popup window possible ?

    Hi,
    We need to give the opportunity to the end-users to launch a BW webreport to make a detailed analysis. I know how to do this via a button and a html iview but then the result is displayed in the same window overwriting the current content of the VC application.
    I thought to solve this by using a popup iview but I have just learned that this is not supported ?
    Can anyone give me a hint how to achieve this ? I searched for a "add hyperlink" function but didn't find that neither.

    Hi Double U,
    Ok i see, what do you mean. I thought I did a workaround and use a nested iView with a html view in a popup iView.
    Best Regards,
    Marcel
    Message was edited by:
            Marcel Salein
    A colleague told me that this is with this workaround not possible.

  • Cannot open one folder via my harddrive on my new macbook air, but opens find on old macbook. It says "can't be opened because you don't have permission to see its contents."

    Hey guys,
    trying to open a folder on my harddrive full of photos but it comes up with "can’t be opened because you don’t have permission to see its contents."
    ive tried making all permissions 'read & write' on both computers and ive also tried clicking the lock in get info section on both computers.
    all the other folders on the harddrive containing photos are fine to open just this one for some reason
    help please
    cheeeeers

    Hey elmsy,
    Here is an article with some helpful information about troubleshooting permissions issues in OS X:
    Troubleshooting permissions issues in Mac OS X
    http://support.apple.com/kb/HT2963
    Thanks for coming to the Apple Support Communities!
    Cheers,
    Braden

  • How to get new value from VO through CO?

    Hi,
    I have several tab in Po page. In the Lines Tab I change some values that I want to get in Distribution tab. This values aren't in the DB. How can I get it?
    I tried the following code but it didn't work
                             OAViewObject PoLineMergeVO = (OAViewObject)rootAM.findViewObject ("PoLinesMergeVO");
                             oracle.jbo.Row PoLineMergeRow =  PoLineMergeVO.first(); 
                             String s_category_id = PoLineMergeRow.getAttribute("CategoryId").toString();
    any idea?
    Best Regards Mayte

    Hi Shobhit,
    I'm new in OAF and I'm not sure if I know how to do it.
    Could you tell how to store in collection object and store in session parameter????
    I tried
    CO 1
                  OAViewObject PoLineMergeVO = (OAViewObject)rootAM.findViewObject ("PoLinesMergeVO");
                  oracle.jbo.Row PoLineMergeRow =  PoLineMergeVO.first();
                  int num_row =   PoLineMergeVO.getRowCount();
                  String s_num_row = Integer.toString(num_row);
                  oapagecontext.writeDiagnostics(this,"Index Row--> "+s_num_row,1 );
                  for (int i=0;i<5;i++)
                    String s_category_id = PoLineMergeRow.getAttribute("CategoryId").toString();
                   //How to store in collection object --> XXXXXXXX
                    PoLineMergeRow =  PoLineMergeVO.next();
    CO2
    How I get Collection object??
    Thanks a lot for your help.
    Best Regards Mayte

  • Change UI configuration dynamically when ever user selects a new value in a drop down field in WebUI

    I enhanced the standard activity component (i.e BT126S_APPT ). In this component, in BT126S_APPT/ApptSQ view there is a field 'PROCESS_TYPE' which is a dropdown. I have created a server event for this dropdown. So that whenever user selects a value in that dropdown, a event is called and after that DO_CONFIG_DETERMINATION is called. In DO_CONFIG_DETERMINATION, I am checking the value of 'PROCESS_TYPE' and based on that i am setting different config keys, by calling SET_CONFIG_KEYS( ). But the configuration is not changing in WebUI. When I press F2 in WebUI its showing the config keys( searched for ) as I set, but the found config keys are same as before. I have created the configuration with the new configuration keys. Please help, I am new to crm.

    Hello Shakthi,
    The easier option would be to convert the DropDownByKey to DropDownByIndex. If you still want to proceed with DropDownByKey then you need to initialise the ALV data again.  do the following
    1. after changing the attribute-value_set, call the ALV interface controller method SET_DATA and pass the instance of the context node.
    2. reintiliase all the ALV settings like edit mode, converting the column editor to DropDownByKey etc....
    This will ensure the new attribute value set is reflected in the ALV component.
    BR, Saravanan

  • How to add new value in operator in search parameter in web ui

    Hi,
    I have a requirement to add values (equal ,not equal ) in operator drop-down field of
    search parameter in search of web ui page.
    Can someone guide me to proceed on this.
    Thanks
    Viren

    Hi,
    here an example how to add operator "contains pattern" to attribute prospect name in the opportunity search.
    Hopefully it will work similar for your issue:
    1) Launch transaction 'sm34'
    2) Enter view cluster name as 'CRMVC_DQ' and click on 'Maintain'
    3) Find DQuery Object Name for example 'BTQOpp' under Comp Name 'BT' and click on'exceptions per attribute.'
    4) Find the Attribute Name for example 'PROSPECT_NAME'
    5) Check the box 'CP' to enable to 'contains' operator.
    Kind regards
    Manfred

Maybe you are looking for

  • PDF Report generation and email it from a DB trigger

    Dear all Is it possible to run a report in PDF format ad email it to some clients after a specific envent through Database Trigger. For example whenever a client makes an entry into order entry table (through entry form), a trigger should execute on

  • Problem with Versions - where can I Download Oracle BPEL PM 10.1.3

    Dear Experts, I have to develop my Oracle BPEL Process in JDeveloper 10.1.3 & I couldn't see corresponding Oracle BPEL PM server 10.1.3 instead I am having 10.1.3.1. Is it right way of use. Or please suggest me from where I can download Oracle BPEL P

  • HT201270 Since I've updated my iPad mini wifi + 3 G, I am loosing all internet connection

    HHave iPad mini 3G, since updated to iOS 7.1.1, I have no internet connection further than 150 kms from my house in GOA. it used to be working non stop from GOA to Kerala before this update.  What to do to be able to have internet all over India ? Th

  • Auto collapse SVG tags (or other tags) to clean up HTML structure

    I am usong SVG for icons and logos in the my HTML. I know Dreamweaver CC allow collapsing of code sections highlited, but I would like to be able to set a setting to auto collapse certain tags to help make the HTML more readable. Is there and option/

  • R/3(DB tables) and BW cube reconciliation

    1)  SOURCE 3 tables are there GLPCA , BSEG , BKPF .We are getting company code , GL , Local Currency and Group Currency from these tables . TARGET BW cube (Profit center cube) Can please somebody suggest how to reconcile the datas between the SOURCE