The api tag has no usage guidance.
0
votes
1answer
14 views
Not able to install Netlink Protocol Library Suite (libnl3)?
I was trying to install newer version of Aircrack-ng so I downloaded it from the official site and tried to install it, but it gave the following error:
/bin/sh: 1: pkg-config: not found
/bin/sh: 1: ...
0
votes
1answer
48 views
Minimum APIs for Linux
It seems that the Linux kernel (All POSIX OSs?) contains only 300+ system calls. Does this mean that any OS implementing those APIs (directly or by translation tables) can run software written for ...
0
votes
0answers
46 views
Cannot telnet outside network to open port on OEL 6 machine
I have an OEL 6 server that locally is assigned IP 10.200.15.79. It is hosting a business application that uses port 1031 to send and receive information through TCP/IP. To allow this on the OEL ...
0
votes
3answers
68 views
Filesystem kernel API
Assuming that all filesystems are specific, how tools like ls, touch, cat, etc interacting with them? I suppose that 'ls' doesn't know specifics about btrfs for example, but it reads directory entries ...
0
votes
2answers
51 views
Error in yaml - possibly due to wrong escape, but unable to identify the issue
The line below causes an error (...request body malformed."}).
It is part of a user-data.yml for use with cloud-init as part of the digital ocean api to bootstrap a server upon creation.
sed -ie '\$a\...
0
votes
0answers
42 views
Curl ebay multi page ebay api xml to a single text file
I am using the
curl -K url.txt > output.txt
command to transfer the xml output of an ebay api search to a text file.
The search I am performing is multi page, but I am unsure how to export ...
50
votes
8answers
6k views
On Unix systems, why do we have to explicitly `open()` and `close()` files to be able to `read()` or `write()` them?
Why do open() and close() exist in the Unix filesystem design?
Couldn't the OS just detect the first time read() or write() was called and do whatever open() would normally do?
0
votes
1answer
111 views
Proxmox OpenVZ /cluster/resources returning incomplete info
I have a few Proxmox nodes, yesterday, I upgraded them all to 3.4-11. Today I found one of the node is not showing OpenVZ node correctly in the Proxmox UI. Then I did a bit investigation and found ...
-1
votes
3answers
366 views
Why isn't there a Unix API?
Why isn't there the Unix API? I mean, as there is the Windows API.
I know a lot of things in the Unix world is modular, and those things put together creates a whole system. This sounds good but does ...
0
votes
1answer
98 views
Build log4cxx [DEBIAN]
Please help me from where to start when building log4cxx package, do I need some other packages for bulding this?
I can't find anything significant to help me to solve this problem.
I tried with ...
3
votes
1answer
155 views
Cocoa API implementation for Linux?
Is there any Wine-like project for running OS X apps on Linux? I mean an implementation of Cocoa API for standard Linux machine, as it is done with Wine.
0
votes
1answer
187 views
Can I use LXC library in my c program?
Currently, I am designing a c program that will create multiple container and put different applications into them separately to achieve isolation. Is it possible to leverage LXC library to it? I ...
3
votes
2answers
434 views
The «sh» being launched with execl() becomes a zombie
I am spent whole half a day, but still couldn't figure, why is the dash being launched with execl call just becomes a zombie.
Below is a minimal test case — I'm just fork a child, make a duplicate of ...
1
vote
0answers
322 views
Can't run php cli at webuser but will run as root
I am running a Magento application on a Nginx server.
nginx + php-fpm running as webuser:www
There are some function in the shell directory of Magento which run fine as root and the import run fine ...
1
vote
2answers
732 views
What is “fs” short for in kernel function “get_fs()”?
There are two Linux kernel functions:
get_ds() and get_fs()
According to this article, I know ds is short for data segment.
However, I cannot guess what "fs" is short for.
Any explanations?
1
vote
1answer
316 views
How does Gnome clock/calendar applet get weather, sunset and sunrise time information?
How and where does this Gnome applet get weather information? Same question for sunrise and sunset times.
I suppose there is a web API it queries but which one and can I use it?
(sorry for the ...
1
vote
0answers
42 views
Very strange issue, something is blocking specific links on local domain
I have a very strange issue and I ran out of ideas. The major problem is that the symptoms are not consistent.
I have a short link website hosted on 2 virtual machines, one with nginx+php-fpm and one ...
2
votes
0answers
386 views
API Monitoring and Hooking
I am currently reading the "Malware Analyst's Cookbook and DVD". There is a chapter "Dynamic Analysis" and there are also some recipes about hooking and monitoring API calls of process but it is for ...
12
votes
4answers
800 views
Why does *BSD uses driver specific names for network interfaces? Does it imply limitations?
I notice that depending on the brand of the network card, interface names differ (driver dependent I suppose).
Why does *BSD uses driver specific names for network interfaces?
Does it mean there is ...
1
vote
1answer
532 views
API for IPROUTE2 in any programming language
Is there any API that can be used to manipulate Linux routing table? I want to write a program that listens to sockets and then modifies routing table accordingly, just a simple code, but need an API.
4
votes
1answer
334 views
Use case of providing file-like API to terminal/console
It was explained in this Stack Overflow thread that each logical terminal has a "pseudo-terminal", and that writing to one:
$ cat some-file.txt > /dev/ttys002
will cause the data to appear in ...
0
votes
1answer
140 views
API for panel applets on eOS Pantheon?
Is there any API (esp python or bash) to append new applets on eOS Pantheon's panel?
I can't find proper documentation.
5
votes
1answer
506 views
Can I read and write to alternate HFS+ file forks or NTFS data streams from Linux?
It's possible to mount both Apple HFS+ and Microsoft NTFS filesystems under Linux.
Both filesystems support multiple content streams per file, though this is not widely used.
Apple uses the term ...
3
votes
2answers
3k views
Is there a faster interface for info from /proc/net/tcp?
Given a linux TCP socket's inode (obtained via /proc/<pid>/fd), is there a faster way to look up the information that I can get from /proc/net/tcp about this socket?
I have written a ...
19
votes
6answers
911 views
How stable are Unix shell “stdin/stdout APIs”?
grepping, awking, sedding, and piping are day-to-day routine of a user of any Unix-like operating system, may it be on the command line or inside a shell script (collectively called filters from now ...
4
votes
1answer
218 views
TWAIN API support on FreeBSD
Does FreeBSD support in any way the TWAIN API? If not, what is the API that could be used to read data from imaging devices (webcams) - preferably in a portable way.
2
votes
2answers
325 views
Retrieve countries timezones
What is the best way to retrieve the current time zones of a number of countries, on a daily basis? (that would take into account DST changes, of course)
Reliably
If possible the Linux way (i.e. ...
2
votes
2answers
462 views
stop pipe() opening stdin
I've currently got code that forks two processes. The first reads a http streaming radio and pushes the data down a pipe (opened with pipe() ) for the second process to read, decode and output to the ...
16
votes
4answers
10k views
After fork(), where does the child begin its execution?
I'm trying to learn UNIX programming and came across a question regarding fork(). I understand that fork() creates an identical process of the currently running process, but where does it start? For ...