Skip to content

Commit

Permalink
Add kcmp(2) userspace bits
Browse files Browse the repository at this point in the history
Unlike Linux, we do provide libc wrapper.  All definitions and
prototypes are available from <unistd.h>

Tested by:	manu
Reviewed by:	brooks, markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D43518
  • Loading branch information
kostikbel committed Jan 24, 2024
1 parent d8decc9 commit 211bdd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ int iruserok(unsigned long, int, const char *, const char *);
int iruserok_sa(const void *, int, int, const char *, const char *);
int issetugid(void);
void __FreeBSD_libc_enter_restricted_mode(void);
int kcmp(pid_t pid1, pid_t pid2, int type, uintptr_t idx1, uintptr_t idx2);
long lpathconf(const char *, int);
#ifndef _MKDTEMP_DECLARED
char *mkdtemp(char *);
Expand Down
4 changes: 4 additions & 0 deletions lib/libc/sys/Symbol.map
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,10 @@ FBSD_1.7 {
timerfd_settime;
};

FBSD_1.8 {
kcmp;
};

FBSDprivate_1.0 {
/* System call stubs */
___acl_aclcheck_fd;
Expand Down

0 comments on commit 211bdd6

Please sign in to comment.