POSIX is an acronym for "Portable Operating System Interface", a family of standards specified by the IEEE for maintaining compatibility between operating systems.

learn more… | top users | synonyms

2
votes
2answers
73 views

How can we obtain a temporary filename in a standard-conforming IEEE 1003.1 script?

How can we obtain a temporary file name in a standard-conforming shell script (using no commands or extensions which are not described the 2013 edition of IEEE 1003.1). There doesn't appear to be any ...
1
vote
1answer
46 views

How reliable/portable are Nix built-ins/commands (echo, ps, sort, uniq) from Debian to other distros

I've coded a script and am wondering about it's reliability / portability. #!/bin/bash threadsPlease() { ps -mo lwp,c -p $1 | sort -gk 2 | uniq -f 1 } THREAD_LINE=$( threadsPlease $1 | grep -v - ...
0
votes
1answer
404 views

/bin/sh script error “arithmetic expression: expecting primary: ” + “ ”

ERROR: ./client-disconnect.sh: 22: ./client-disconnect.sh: arithmetic expression: expecting primary: " + " I just need to know how to fix it. It's for user accounting with OpenVPN. Script ...
0
votes
1answer
42 views

Is there such a scheduler and is it feasible?

I read about a scheduling algorithm called EDD which always works on the next deadline and that is feasible. Would it also be feasible to within each time windows or slice, work on all processor or ...
3
votes
0answers
20 views

How to get filesystem info for a specific file?

What is the best way to find out file system information about a file. For example, if I have a file /media/xyz/path/to/file.ext And /etc/fstab contains //server1/Share1 /media/xyz cifs ...
3
votes
0answers
78 views

find printf switch POSIX alternative

I'd like to rewrite these 2 command so they will use only POSIX-complaint switches: find "$TARGET_DIR" -maxdepth 1 -type d -printf '(DIR) %f\n' find "$TARGET_DIR" -maxdepth 1 -type f -printf '%s %f ...
1
vote
0answers
16 views

Why are there no LSM hooks in the POSIX IPC APIs?

As I understand it, the Linux Security Module (LSM) framework has many hooks which are callbacks for security modules to register functions performing additional security checks before ...
1
vote
0answers
40 views

When using linux acl mkdir and mkdir -p do different things

I have a directory bar: # file: bar/ # owner: root # group: root user::rwx user:little-jonny:rwx group::r-x mask::rwx other::r-x default:user::rwx default:user:little-jonny:rwx default:group::r-x ...
1
vote
0answers
174 views

What happens to a multithreaded Linux process if it gets a signal?

If a Unix (Posix) process receives a signal, a signal handler will run. What will happen to it in a multithreaded process? Which thread receives the signal? On my opinion, the signal API should be ...
1
vote
0answers
68 views

OS X Yosemite is SUS - Single Unix Specification 3 certified. But what posix standard is it compliant to? the latest one is 2008

I'm confused. Is SUS compliance the same as POSIX compliance? Is yosemite compliant to the latest standards, what years exactly?
1
vote
0answers
52 views

POSIX description of cp -R

I just became really confused by the implementation of bash's cp -R command compared to how POSIX words what should happen Given the posix definition, I would expect cp -R srcDir existingDestDir to ...
0
votes
0answers
20 views

`getaddrinfo`: what specifies its data source in the POSIX standard?

I wanted to check getaddrinfo is expected to use Unbound when it's installed. Unless I overlooked something in this specification, it does not refer to any data sources it is required to check: ex. no ...
0
votes
0answers
19 views

The SUS v4 would not be able to certify Bell Labs unix v8 because unix has changed right?

I am not an an expert, so I would appreciate it if someone would clarify to me about how UNIX v8 from Bell Labs might not be able to certify with the Single Unix Specification v4 because UNIX has ...
0
votes
0answers
142 views

Getting CRC mismatch warnings in gdb on cygwin

When I run any program under gdb in cygwin shell I get following warnings... warning: the debug information found in "/usr/lib/debug//usr/bin/cyggcc_s-seh-1.dll.dbg" does not match ...