09-12-2014
Thank you! I will be more careful with parentheses next time.
This User Gave Thanks to Sir_Tomasz For This Post:
10 More Discussions You Might Find Interesting
1. Programming
sir,
i used lssek as this
lseek(fp,-10,2);
i am not getting any output i dont now why can you explan sir..
Thanks in advance,
Arunkumar (4 Replies)
Discussion started by: arunkumar_mca
4 Replies
2. Programming
Dear Friends,
I write a c program to list the directories recursively. For this I write a function called my_readdir to read the content of directory. For this I use read system call it returns -1, then I use readdir system call it gives comment terminated error or segmentation... (1 Reply)
Discussion started by: spmlingam
1 Replies
3. UNIX for Advanced & Expert Users
hi all
I want to make a kernel call which takes as input an integer x and prints 2*x
Anyone who knows how could i do that? (1 Reply)
Discussion started by: sasa
1 Replies
4. Linux
hi,
where can I find the detail information about the syscall in binary instructions of linux/mips.
for example, in linux/mips:
li v0, 4140
syscall
it's a syacall of "lseek" , but how can I find that which registers will be used in this syscall , and the meaning of the arguments in the... (2 Replies)
Discussion started by: zerocool_08
2 Replies
5. Programming
recently my project needs me to lseek a position over 4G size....
i found in linux or unix the parameters are all ulong 32 bits...the limit dooms the movement of a position over 4G
I was told that i should lseek64 to meet my need... but i have no idea where i can get the function neither by "man... (8 Replies)
Discussion started by: macroideal
8 Replies
6. UNIX for Dummies Questions & Answers
I know there is lseek() function that will allow to write or read from certain position in the file. Is there similar function that will let do same but for array rather then file? (9 Replies)
Discussion started by: joker40
9 Replies
7. UNIX for Dummies Questions & Answers
Hi everybody,
i've been googling for ages now and gotten kinda desperate... The question, however, might be rather trivial for the experts: What is it exactly, i.e. physically, the POSIX function (for a file) "lseek" does? Does it trigger some kind of synchronization on disk? Is it just for the... (4 Replies)
Discussion started by: Humudituu
4 Replies
8. UNIX for Dummies Questions & Answers
I tried to use lseek system call to determine the number of bytes in a file. To do so, I used open system call with O_APPEND flag to open a file. As lseek returns the current offset so I called lseek for opened file with offset as zero and whence as SEEK_CUR. So I guess it must return the number of... (3 Replies)
Discussion started by: Deepak Raj
3 Replies
9. AIX
Hi,
We are facing issues while backing up our 1205 GB filesystem on LTO5 Tape. During backup the "backup: The lseek call failed." messages were generated, I want to know why these messages were generating
AIX version is: 6100-08-00-0000
backup: The date of this level 0 backup is Mon Mar 11... (4 Replies)
Discussion started by: m_raheelahmed
4 Replies
10. OS X (Apple)
Hi all...
I am trying to create a shell project purely for this Macbook Pro.
I do NOT want to use SOX as the sampling _source_ but Quicktime
instead, the idea being that NO third party installs will be needed.
The code below works fine except the commented out Applescript line
does not do... (2 Replies)
Discussion started by: wisecracker
2 Replies
LEARN ABOUT PHP
ng_bluetooth
NG_BLUETOOTH(4) BSD Kernel Interfaces Manual NG_BLUETOOTH(4)
NAME
ng_bluetooth -- placeholder for global Bluetooth variables
SYNOPSIS
#include <sys/types.h>
#include <netgraph/bluetooth/include/ng_bluetooth.h>
DESCRIPTION
The ng_bluetooth module is a placeholder for global Bluetooth variables. All Bluetooth variables can be examined and changed via sysctl(8).
Bluetooth Variables
Below is the description of default variables. Each Bluetooth module might add its own variables to the tree.
net.bluetooth.version
A read-only integer variable that shows the current version of the Bluetooth stack.
net.bluetooth.hci.command_timeout
A read-write integer variable that controls the Host Controller Interface (HCI) command timeout (in seconds), i.e., how long the HCI
layer will wait for the Command_Complete or Command_Status event from a Bluetooth device.
net.bluetooth.hci.connection_timeout
A read-write integer variable that controls the HCI connection timeout, i.e. how long the HCI layer will wait for the
Connection_Complete event. Normally this should not be required as Bluetooth devices have connection timeout of their own and will
send event back. This timeout is required to ensure that no connection will stall in case when the HCI transport layer is broken.
Be careful when changing this variable. Make sure you understand what you are doing.
net.bluetooth.hci.max_neighbor_age
A read-write integer variable that controls time-to-live (in seconds) for entries in the HCI neighbor cache. Every time a Bluetooth
device performs an Inquiry operation, the results will be put in cache. Later when a Bluetooth device establishes a baseband connec-
tion, it will try to find the matching entry in the cache and use it. This might speed up establishment of the baseband connection.
net.bluetooth.l2cap.rtx_timeout
A read-write integer variable that controls the Link Layer Control and Adaptation Protocol (L2CAP) Retransmission Timeout (RTX) (in
seconds). Every time the L2CAP layer submits a control command, the RTX timeout is set. The value of the RTX timeout should be
greater or equal to the value of the HCI connection timeout. Be careful when changing this variable. Make sure you understand what
you are doing.
net.bluetooth.l2cap.ertx_timeout
A read-write integer variable that controls the L2CAP Extended Retransmission Timeout (ERTX) (in seconds). In some cases remote peer
may respond with PENDING status to the L2CAP control command. In this case the L2CAP command timeout is reset to the ERTX timeout
value. The value of the ERTX timeout should be greater or equal to the value of the RTX timeout. Be careful when changing this
variable. Make sure you understand what you are doing.
SEE ALSO
ng_btsocket(4), ng_hci(4), ng_l2cap(4), sysctl(8)
HISTORY
The ng_bluetooth module was implemented in FreeBSD 5.0.
AUTHORS
Maksim Yevmenkin <m_evmenkin@yahoo.com>
BSD
November 9, 2002 BSD