Click here to Skip to main content
15,887,821 members
Home / Discussions / Linux Programming
   

Linux Programming

 
QuestionHow to Use SCP Command to Transfer Files/Folders in Linux Pin
Akash Kulkarni20-Jan-20 1:52
Akash Kulkarni20-Jan-20 1:52 
SuggestionRe: How to Use SCP Command to Transfer Files/Folders in Linux Pin
User 275346914-Mar-23 13:57
User 275346914-Mar-23 13:57 
QuestionCross compiling for Raspberry PI from windows host using GTK2.0 library Pin
fd975015-Jan-20 3:37
professionalfd975015-Jan-20 3:37 
AnswerRe: Cross compiling for Raspberry PI from windows host using GTK2.0 library Pin
Eddy Vluggen15-Jan-20 3:45
professionalEddy Vluggen15-Jan-20 3:45 
GeneralRe: Cross compiling for Raspberry PI from windows host using GTK2.0 library Pin
fd975015-Jan-20 4:01
professionalfd975015-Jan-20 4:01 
GeneralRe: Cross compiling for Raspberry PI from windows host using GTK2.0 library Pin
Eddy Vluggen15-Jan-20 6:08
professionalEddy Vluggen15-Jan-20 6:08 
GeneralRe: Cross compiling for Raspberry PI from windows host using GTK2.0 library Pin
k505415-Jan-20 7:52
mvek505415-Jan-20 7:52 
GeneralRe: Cross compiling for Raspberry PI from windows host using GTK2.0 library Pin
fd975015-Jan-20 20:42
professionalfd975015-Jan-20 20:42 
GeneralRe: Cross compiling for Raspberry PI from windows host using GTK2.0 library Pin
fd975022-Jan-20 3:30
professionalfd975022-Jan-20 3:30 
GeneralRe: Cross compiling for Raspberry PI from windows host using GTK2.0 library Pin
k505424-Jan-20 6:37
mvek505424-Jan-20 6:37 
GeneralOT Pin
Richard MacCutchan24-Jan-20 9:09
mveRichard MacCutchan24-Jan-20 9:09 
GeneralRe: OT Pin
k505425-Jan-20 5:27
mvek505425-Jan-20 5:27 
GeneralRe: OT Pin
Richard MacCutchan25-Jan-20 5:55
mveRichard MacCutchan25-Jan-20 5:55 
GeneralRe: OT Pin
k505425-Jan-20 6:29
mvek505425-Jan-20 6:29 
AnswerRe: Cross compiling for Raspberry PI from windows host using GTK2.0 library Pin
Vaclav_4-Mar-20 5:29
Vaclav_4-Mar-20 5:29 
QuestionHow add LD_LIBRARY_PATH before PostgreSQL 10.6 service start Pin
Ngoc tuan nguyen18-Dec-19 17:29
Ngoc tuan nguyen18-Dec-19 17:29 
AnswerRe: How add LD_LIBRARY_PATH before PostgreSQL 10.6 service start Pin
Richard MacCutchan18-Dec-19 21:33
mveRichard MacCutchan18-Dec-19 21:33 
AnswerRe: How add LD_LIBRARY_PATH before PostgreSQL 10.6 service start Pin
k505419-Dec-19 4:43
mvek505419-Dec-19 4:43 
SuggestionAn interactive cheatsheet tool for the command-line Pin
denisidoro14-Dec-19 4:08
denisidoro14-Dec-19 4:08 
Questionbluetooth hci function fails to execute hci_read_class_of_dev Pin
Vaclav_2-Dec-19 8:27
Vaclav_2-Dec-19 8:27 
I need a small help finding my bluetooth hci problem.
The attached snippet fails to execute when all passed parameters are correct.

Execution stops at function like wrong parameters are being passed.
But it compiles / links.

For troubleshooting purposes I added 1 to device descriptor parameter and the function run and returns an error as expected.

I am not sure what is the purpose of "to" - time-out parameter?

Here is function prototype

int hci_read_class_of_dev(int dd, uint8_t *cls, int to);


What is odd - to write class I need uint32_t, but read wants only uint8_t.



C++
<pre>#ifdef DEBUG

// verify default hci0 
			system("hciconfig hci0 class");
			cout << "device descriptor " << dev_descriptor << endl;
#endif
			uint8_t *device_class = {0};
			int timeout = 0;
			if (hci_read_class_of_dev(dev_descriptor+1, device_class, timeout)) {
				perror("FAILURE");

			} else {
#ifdef DEBUG
				perror("SUCCESS");
				cout << "@line " << __LINE__ << endl;
#endif
			}



Thanks
Cheers
AnswerRe: bluetooth hci function fails to execute hci_read_class_of_dev Pin
Richard MacCutchan3-Dec-19 23:25
mveRichard MacCutchan3-Dec-19 23:25 
QuestionGit pre-commit hook in #!/bin/sh programming language that requires a file to part of all commits? Pin
arnold_w8-Nov-19 5:26
arnold_w8-Nov-19 5:26 
AnswerRe: Git pre-commit hook in #!/bin/sh programming language that requires a file to part of all commits? Pin
Afzaal Ahmad Zeeshan8-Nov-19 12:24
professionalAfzaal Ahmad Zeeshan8-Nov-19 12:24 
GeneralRe: Git pre-commit hook in #!/bin/sh programming language that requires a file to part of all commits? Pin
arnold_w8-Nov-19 21:56
arnold_w8-Nov-19 21:56 
GeneralRe: Git pre-commit hook in #!/bin/sh programming language that requires a file to part of all commits? Pin
arnold_w9-Nov-19 3:23
arnold_w9-Nov-19 3:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.