File: NOTES-POSIX.md

package info (click to toggle)
openssl 3.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 143,220 kB
  • sloc: ansic: 632,585; perl: 234,372; asm: 6,546; sh: 1,643; pascal: 975; python: 596; makefile: 538; lisp: 35; ruby: 16; cpp: 10; sed: 6
file content (20 lines) | stat: -rw-r--r-- 748 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Notes on POSIX
==============

There are few instances where OpenSSL requires a POSIX C library, at least
version 1-2008, or compatible enough functionality.

There are exceptions, though, for platforms that do not have a POSIX
library, or where there are quirks that need working around.  A notable
platform is Windows, where POSIX functionality may be available, but where
the function names are prefixed with an underscore, and where some POSIX
types are not present (such as `ssize_t`).

Platforms that do have a POSIX library may still not have them accessible
unless the following macros are defined:

    _POSIX_C_SOURCE=200809L
    _XOPEN_SOURCE=1

This is, for example, the case when building with gcc or clang and using the
flag `-ansi`.